Page 1 of 1

[SOLVED] Location of PHP Executable

PostPosted: Feb 9th, '12, 18:26
by Will94
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

Re: Location of PHP Executable

PostPosted: Feb 9th, '12, 19:17
by djennings
Open a terminal and type
Code: Select all
urpmf /usr/bin/php


There is your answer

Re: Location of PHP Executable

PostPosted: Feb 9th, '12, 19:25
by eonwir
It seems the /usr/bin/php executable is in the package php-cli:
"This package contains a command-line (CLI) version of php."

Re: Location of PHP Executable

PostPosted: Feb 9th, '12, 19:59
by Will94
'php-cli' was what I needed ...

Thank you!