PDA

View Full Version : Cpanel 11 problems



Jordan Mclay
June 17th, 2007, 06:27
After hours of research on how to fix the httpd problem , i have found out many users using cpanel 11 are having the same problem as it is a bug in cpanel 11 , some servers will and wont have the same problem.

Anyone else having a problem starting apache

Richard
June 17th, 2007, 07:17
Yup, this is a common problem on most cPanel 11 installs, and upgrading does not fix the problem (It's another of cPanel's *bad* updates that they have not released a patch for yet)

Log into SSH and run the following commands:


cd /usr/local/cpanel/apache
/usr/local/apache/bin/apxs -iac mod_log_bytes.c
service httpd start

Jordan Mclay
June 17th, 2007, 12:05
Cheers mate , also ill state the obvious turn auto updates off :p to avoid the hastle

Jordan Mclay
June 17th, 2007, 12:10
Ahh dear yet more problems with cpanel :| downgraded the box to cpanel 10.9 i think it is and all the forums on the server dont load up for eg www.domain.com/forum/index.php , it doesnt load that but instead tries to download the file.
Anyone know whats up

Yun
June 17th, 2007, 12:32
Apache settings - make sure they're set to handle PHP files correctly.

You probably have to add these lines in your httpd.conf file:

"LoadModule php5_module "D:\Web Server\PHP5\php5apache2.dll"
AddType application/x-httpd-php .php"

This is for PHP5 and Windows, just change the instructions for the modules accordingly for your server and restart apache - sorry, no idea what does a path to linux one looks like ;)

But my guess would be something like just adding:

"AddType application/x-httpd-php .php" into the httpd.conf file if the module has already been loaded but it's downloading as a text file..

Richard
June 17th, 2007, 15:56
Just recompile apache with PHP support in WHM, that fixs that error.

Jordan Mclay
June 17th, 2007, 16:15
thanks buddy , + rep :)


PHP suEXEC Support < that one you mean yeah ?

Richard
June 17th, 2007, 16:50
Just make sure one of the radio buttons is selected with the PHP and version number.

Sometimes on a downgrade, apache is recompiled without PHP.

Jordan Mclay
June 17th, 2007, 17:10
Sorted mate thanks , it kept doing it even after adding php support , but it was down to my error and i deleted my cache on firefox which solved it fully