| Article: |
Introduction to Socket Programming with PHP | |
| Subject: | Re: unable to run this script | |
| Date: | 2003-01-29 02:45:00 | |
| From: | manjay_dwivedi | |
|
Response to: Re: unable to run this script
|
||
|
how i find where is the binary of php on my linux server. Is the default path is --/usr/local/bin/
|
||
Showing messages 1 through 1 of 1.
-
Re: unable to run this script
2003-01-29 02:51:12 dsolin [View]



Did you compile and install PHP from source? If so, recompile it but this time run the configure-script without the --with-apxs switch:
cd <php-src-dir>
./configure --prefix=/usr/local
make
This should generate a php binary (a file called 'php') in your <php-src-dir>. Simply copy this file to /usr/local/bin:
cp php /usr/local/bin
If you installed PHP from a binary package, try to find a CGI-version of the package, and install that one. What Linux distribution do you use?
Best,
Daniel