Page 1 of 1

[SOLVED] PHP Executable

PostPosted: Dec 11th, '12, 15:44
by laidlaws
Several supposedly OS-insensitive programs want the path to my PHP executable. I have never seen one in Linux. Does it exist?

Re: PHP Executable

PostPosted: Dec 11th, '12, 16:34
by djennings
If you want to run php as a script you will need the php-cli package installed

Code: Select all
Name        : php-cli
Version     : 5.3.15
Release     : 1.mga2
Group       : Development/Other
Size        : 36224                        Architecture: x86_64
Source RPM  : php-5.3.15-1.mga2.src.rpm
URL         : http://www.php.net
Summary     : PHP5 CLI interface
Description :
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP5 is fairly simple. The
most common use of PHP5 coding is probably as a replacement for CGI scripts.

This package contains a command-line (CLI) version of php.

This version of php has the suhosin patch 0.9.10 applied. Please
report bugs here: http://bugs.mageia.org/ so that the official maintainer of
this Mageia package can help you. More information regarding the
suhosin patch 0.9.10 here: http://www.suhosin.org/


The path to the executable is /usr/bin/php

Re: PHP Executable

PostPosted: Dec 12th, '12, 06:48
by laidlaws
Thanks. That was what I needed. Strangely, a file search for /usr/bin/php in rpmdrake had produced nothing.