The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help - Apache/PHP wont compile on a new server

Discussion in 'EasyApache' started by Snowman30, Mar 24, 2005.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    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....
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    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 ?
     
  3. btrieve

    btrieve Well-Known Member
    PartnerNOC

    Joined:
    Mar 20, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
  4. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  5. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    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 :)
     
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You can compile Php without rebuilding Apache, and include whatever Php extension/module you need. PM me if you need help!
     
Loading...

Share This Page