Web Hosting Talk







View Full Version : How to install PHP as cgi


Starhost
05-21-2001, 04:23 AM
How do I install php as cgi?

I thought it was the same as with apache but without make install. And there was something else I had to copy php to another dir.

Who can tell me how to do it exactly?

Thanx.

nexzt
05-23-2001, 09:59 PM
Very easy! all you have to do is download the latest version of php, then do a ./configure --with-My_Other_Options then do a make and you will notice a file called php. this is the executable i.e the cgi version. so from their all you have to do is cp /usr/local/bin or wherever you want to put it.. and remember its location then in your files that you want to use it as a cgi use #!/usr/local/bin/php -q and its now a cgi!

:cool: