Web Hosting Talk







View Full Version : PHP Catastrophe!


sbrad
02-26-2002, 11:37 AM
Well, maybe it's not *quite* that bad, but it is pretty bad.

We setup a new RH 7.2 server yesterday with Cpanel/WHM. We moved about 150 customers over, and now notice that php doesn't work. It won't parse a page.
So I reinstall buildapache, and that didn't do any good.

Customers aren't too happy right now, so any help would be appreciated. :)

ffeingol
02-26-2002, 11:52 AM
sbrad,

I'm not a Cpanel/WHM expert, but check your httpd.conf and make sure the following lines (or similar ones) are there:

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c

Those two lines tell Apache to bring in the mod_php4 module.

AddType application/x-httpd-php .php

That line tells Apache to process .php files a PHP. You might need several copies of that line for .php3, .phtml etc.

DirectoryIndex index.html index.php

That line tells Apache to process index.html and index.php as index pages. There may be others on that line as well.

I hope this helps.

Frank

sbrad
02-26-2002, 12:30 PM
Yeah, all that was there. I checked before I panicked.
In any case, Nick @darkorb fixed it for me. I didn't ask what it was. ;)