[SOLVED] Location of PHP Executable

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Location of PHP Executable

Postby Will94 » Feb 9th, '12, 18:26

I've been working this morning on installing a piece of software and have run into a problem that has me feeling somewhat feeble-minded. The system that I am using runs the 32-bit version of Mageia 1.

I am editing a configuration file to provide file locations. One of the locations that I need to provide is 'PHPEXECUTABLE'. It is set by default to /usr/bin/php. I've searched my hard drive, and I can't find it. Everything named 'php' seems to be a library or a folder. I've installed php, php-cgi, php-devel, php-debug... more packages than I can list, but none of them have provided a php executable. What do I need to install?

Thank you in advance!

Will N.
Bryan, Texas USA
User avatar
Will94
 
Posts: 44
Joined: Sep 2nd, '11, 18:36
Location: Missouri - USA

Re: Location of PHP Executable

Postby djennings » Feb 9th, '12, 19:17

Open a terminal and type
Code: Select all
urpmf /usr/bin/php


There is your answer
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Location of PHP Executable

Postby eonwir » Feb 9th, '12, 19:25

It seems the /usr/bin/php executable is in the package php-cli:
"This package contains a command-line (CLI) version of php."
eonwir
 
Posts: 16
Joined: Sep 15th, '11, 22:06

Re: Location of PHP Executable

Postby Will94 » Feb 9th, '12, 19:59

'php-cli' was what I needed ...

Thank you!
User avatar
Will94
 
Posts: 44
Joined: Sep 2nd, '11, 18:36
Location: Missouri - USA


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron