|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Wed Aug 23, 2006 11:01 pm Post subject: PHP Executable and how to locate it? |
|
|
|
|
|
|
|
|
|
|
Any software from CWS that requires the PHP executable, must be supplied with the full internal system path to the php executable to work properly.
By default the software tries to determine by itself the location to the php executable, by looking at the default locations for it:
/usr/bin/php
/usr/local/bin/php
However, in some cases and on different server setups and operating systems, the software can't locate the php executable location by itself, due to absense of permissions or just the php executable is not located at the default locations stated above.
The first simple way to determine the location is doing the following:
Copy this php code:
<? passthru("whereis php");?>
Put that code in a tmp.php file and upload to your site, and run the tmp.php through your browser. If you see any output, the first couple of words will be possible locations of the php executable. Try to set them in the script. If it doesn't work, then you should refer to your host support by asking them for the full internal location to the php executable and making sure php scripts can execute it. |
|
|
|
|
|
|