PDA

View Full Version : PHP as cgi or apache module ?


Sharg
Sat 28th Oct '00, 12:11pm
Hi, Got my server :)
It has php4 installed, now how do I know if its installed as a cgi or apache module ?

Also, when I run TOP, I see nothing related to PHP loaded, is this normal ?

Thanks,
Benj

Chris Schreiber
Sat 28th Oct '00, 2:10pm
Originally posted by Benj
It has php4 installed, now how do I know if its installed as a cgi or apache module ?

Two ways.... either look at your Apache configuration files for a LoadModule statement for php. Or you can view the output of phpinfo(); and either --with-axps or --with-apache should be listed at the top in the configure command box.

Also, when I run TOP, I see nothing related to PHP loaded, is this normal ?

Perfectly normal, since if you have PHP running as a module, it won't be listed (it's part the the httpd process). However if it was listed, then php is running as a CGI.

-Chris

Sharg
Sat 28th Oct '00, 2:18pm
Got LoadModule php4_module /usr/lib/apache/1.3/libphp4.so in httpd.conf :)

I guess its definetely as a module.
Thanks chirs

Benj

zap
Thu 2nd Nov '00, 7:15am
Can anyone say me if my host has installed PHP4 as cgi or apache module ??
here is my phpinfo: http://www.plauderforum.com/info.php4

Thank you for a short and right answer :)

Mike Sullivan
Thu 2nd Nov '00, 5:18pm
"Server API - CGI"

zap
Thu 2nd Nov '00, 5:57pm
doh but thank you for the answer :)