I tell ya, I'm going to owe a few people a number of drinks... Well Trevor - tried out your suggestions. Here's the results:
1) /etc/php4/php.ini existed, but was empty. I added the "expose_php = On" line, saved the file, then restarted Apache2 2) telnet from the local box is pausing for quite some time. So I did a telnet session from my windows box. Here's the output I got: HTTP/1.1 200 OK Date: Fri, 20 Jun 2003 07:07:19 GMT Server: Apache/2.0.46 (Gentoo/Linux) Last-Modified: Sat, 14 Jun 2003 08:50:34 GMT ETag: "195b6-264-84b8aa80" Accept-Ranges: bytes Content-Length: 612 Connection: close Content-Type: text/html; charset=ISO-8859-1 Connection to host lost. - I notice the lack of any modules listed, but have exhausted my knowledge on what to do about it (short of dropping Apache2 and returning to Apache 1.x. 3) The error_log didn't show anything other than Apache restarting (SIGHUP received, then normal Digest, and resuming operations messages) 4) I do have a libphp4.so file in /etc/apache2/extramodules. However, I had to manually copy the file there at one point in my efforts. I've done a recompile of mod_php since then, so I don't think this is the latest - but I just did "find / | grep libphp4" and only found the one file. 5) The 70_mod_php.conf file is attached. I think it might be time for me to try something radical - like find and remove any reference to mod_php and Apache/Apache2, then reinstall with Apache 1.x. But, I'll wait on this till after the installfest - maybe someone there will see the issues if they can work at the box directly. I'll keep searching the web and trying out stuff in the mean time. Once again. Thank you all for your support. Shawn -----Original Message----- From: Trevor Lauder [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:53 PM To: [EMAIL PROTECTED] Subject: RE: (clug-talk) Apache 2 and PHP Shawn said: > My configuration files are attached. (watch for the unix style line feeds > if you are viewing them on a Windows box...) > > Here's the output from the command "apache2 -l" > > Compiled in modules: > core.c > prefork.c > http_core.c > mod_so.c PHP won't show up here. In Apache 2, you don't compile in support for PHP.... it's a DSO. In /etc/php4/php.ini, check to see if this line is set to On: expose_php = On If it's not, change it to On and restart apache2 Then telnet to the webserver on port 80, once connected type in 'HEAD / HTML/1.0' (no quotes) followed by a blank line. You should get something like: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. HEAD / HTML/1.0 HTTP/1.1 200 OK Date: Fri, 20 Jun 2003 04:44:53 GMT Server: Apache/2.0.46 (Gentoo/Linux) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.6i PHP/4.3.2 X-Powered-By: PHP/4.3.2 Set-Cookie: newsflashcookie=NA%3D%3D Set-Cookie: sessioncookie=mqPknvpqe0dzHPLfoL0uCg1056084294 Set-Cookie: detection=detected Connection: close Content-Type: text/html; charset=ISO-8859-1 Connection closed by foreign host. The important part is seeing PHP/4.3.2 listed there, which it should be if you set 'expose_php = On' in php.ini and 'ServerTokens Full' in commonapache2.conf (You already did from the file you posted). You should also see something similar in /var/log/apache2/error_log right after you (re)start apache2. Could you post your /etc/apache2/conf/modules.d/70_mod_php.conf file? Also do you have libphp4.so in /etc/apache2/extramodules/ ? Cheers, -- Trevor Lauder Web: http://www.thelauders.net E-Mail: [EMAIL PROTECTED] Resume: http://www.thelauders.net/resume/ Gentoo Linux Powered "Any intelligent fool can make things bigger and more complex... It takes a touch of genius -- and a lot of courage to move in the opposite direction." -- Albert Einstein
70_mod_php.conf
Description: Binary data
