Help - Apache/PHP wont compile on a new server

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
I have a brand new xeon server with RHE and running R149 of CPanel

everyitng setup correctly apart from apache

Ive recompiled 6 times now and every time i get a fail message.

Ive even tried option 1 in desperation.

Im compiling with php4.3.10 and all easyapache options except phpsuexec and mod_gzip as it kept throwing an error

ive managed to get html pages to load ok now but whenever i open a php page it teies to save it to my PC rather than executing it

anyone have any ideas on what the problem could be?

The best the datacentre could come up with was to tell me i was using an unsupported version of cpanel and that i should downgrade to the 9.9.9 S version.... quite funny seeing that they installed the R version....
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
Do you have these lines in /usr/local/apache/conf/httpd.conf ?

LoadModule php4_module libexec/libphp4.so

AddModule mod_php4.c


<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
</IfModule>

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml

Also what does

# php -v

Tell you?

Is your /usr partition full ? (maybe full of core files and can't install apache)

Any errors in the logs ?
 

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
php -v is showing the cpanel php version:

PHP 4.3.8 (cgi) (built: Mar 25 2005 14:04:10)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

All entries in httpd.onf are correct.

Looking thru the compiler it seeems as if easyapache is lookign in the wrong folder for libphp4.so which we found to be quite weird.

Talking to my datacentre techs they say they have seen a couple of servers do this in the past 48 hours os yes there may be a problem somewhere, but we evenremoved everythign ad setup with 9.9.9 S and the same issue occured.
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
I'd just try and install apache/php manually - If you are unable to do that then contacting your cPanel distributor or hiring a sysadmin would be the best thing to do and get the issue resolved.

Hard to say if there are any similarities between yours and the other posters problems with not much information to work with on either case, needs someone who knows what they are looking for to look into it :)
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
You can compile Php without rebuilding Apache, and include whatever Php extension/module you need. PM me if you need help!