Results 1 to 4 of 4

Thread: PHP does not work after Apache Update

  1. #1
    Registered Member
    Join Date
    May 2005
    Posts
    8

    Default PHP does not work after Apache Update

    I did an apache upate as i wanted to install GD. After the update ran all the pages on my server that were php did not run, normal static html pages run fine but no php.
    Here is the output of my Update
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Building Apache Config.....Done
    Downloading and compiling apache+modules....


    Fetching http://layer1.cpanel.net/buildapache.sea (0)....@69.90.250.34......connected......receiving...2%...5%...8%...11%...14%...17%...19%...22%...25%...28%...31%...34%...37%...39%...42%...45%...48%...51%...54%...57%...59%...62%...65%...68%...71%...74%...77%...79%...82%...85%...88%...91%...94%...97%...99%...100%......Done
    Verifying archive integrity... All good.
    Uncompressing buildapache.....................................................................................................................................
    Verifying compiler and libs....Verifying installation....Using newyum support...
    http://mirror.switch.ch/ftp/mirror/f...ta/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
    Trying other mirror.
    Setting up Install Process
    Setting up Repos
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
    Using newyum support...
    Setting up Install Process
    Setting up Repos
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
    Done
    Done
    ********************************
    This is buildapache version 10.8.2
    ********************************
    buildapache configured from Web Host Manager
    Apache configured from Web Host Manager!
    /etc/rc.d/init.d/httpd start: httpd started
    Setting /home permissions to 0711......Done
    Setting permissions for.....admindia...admexcl...infinita...admmura...admbmis...admstyle...admtriar...admdelmo...admcsa...admcorn......Done

    configure libxml2-2.6.22...(--prefix=/usr).... . . . . . . . . . . . . . . . . . . Done

    make -j 1 libxml2-2.6.22....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make libxml2-2.6.22...(install).... . . Done
    Untarring php....Done
    Running configure:
    LDFLAGS="-L/usr/X11R6/lib64" /home/cpapachebuild/buildapache/callbacklog --prog configure --dir /home/cpapachebuild/buildapache/build-log --last 0 --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib

    configure php-5.1.4...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make -j 1 php-5.1.4...(clean).... Done

    make -j 1 php-5.1.4....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
    make: *** [libphp5.la] Error 1

    make php-5.1.4...(install).... . . . . Done
    make: *** [libphp5.la] Error 1
    /etc/rc.d/init.d/httpd start: httpd started

    configure php-5.1.4...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... . . . . . . . . . . . . . . . . . Done

    make -j 1 php-5.1.4...(clean).... Done

    make -j 1 php-5.1.4....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
    make: *** [sapi/cgi/php] Error 1

    make php-5.1.4...(install).... . . . . Done
    make: *** [sapi/cgi/php] Error 1
    initfpsuexec: using apache 1.x support
    PHP version file is up to date
    Executing /scripts/postbuildapache (if exists)...Done
    /etc/rc.d/init.d/httpd start: httpd started
    Attempting to restart httpd
    Waiting for httpd to restart....
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    finished.


    httpd status
    root 20471 0.0 0.5 5416 2796 ? Ss 23:38 0:00 /usr/local/apache/bin/httpd -DSSL



    httpd started ok
    Build Complete
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Please help

    Im in over my head here

    Regards

    Damian

  2. #2
    Registered Member cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,222

    Default

    Quote Originally Posted by Stylissimo
    I did an apache upate as i wanted to install GD. After the update ran all the pages on my server that were php did not run, normal static html pages run fine but no php.
    Here is the output of my Update
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    make -j 1 php-5.1.4...(clean).... Done

    make -j 1 php-5.1.4

    make: *** [libphp5.la] Error 1

    make php-5.1.4...(install).... . . . . Done
    make: *** [libphp5.la] Error 1
    /etc/rc.d/init.d/httpd start: httpd started
    Are you trying to upgrade from Php v4.x to v5.x? Unless you know how to compile Php from source, manually, otherwise re-compile Apache with the working version of Php you had.
    Andy Reed
    CCNA, RHCE, and Ubuntu Technologist
    ServerTune.com

  3. #3
    Registered Member
    Join Date
    Jul 2005
    Posts
    12

    Default

    php-5.1.4 does not compile cleanly on cpanel. Try 5.0.4 if you want php5 easilly. 5.1.2 fails with the same error.

  4. #4
    Registered Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    789
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by Stylissimo
    make php-5.1.4...(install).... . . . . Done
    make: *** [libphp5.la] Error 1

    make: *** [sapi/cgi/php] Error 1

    Please help

    Im in over my head here

    Regards

    Damian
    We had a similiar problem (We only had the make: *** [libphp5.la] Error 1) and after search in here our fix was:

    Before the compile

    cd /usr/lib/mysql
    rename .a .a_old *.a
    rename .la .la_old *.la
    Adns the error was gone

    After the compile

    cd /usr/lib/mysql
    rename .a_old .a *.a_old
    rename .la_old .la *.la_old
    Hope it helps you.
    Regards,
    Randy
    Okie.Net Affordable Web Hosting
    _________________________

Similar Threads

  1. Replies: 4
    Last Post: 12-15-2007, 03:26 PM
  2. GD In Update Apache Dont Work...
    By desihost in forum EasyApache
    Replies: 11
    Last Post: 05-13-2005, 10:53 AM
  3. php won't work after updating apache
    By Secret Agent in forum EasyApache
    Replies: 0
    Last Post: 10-23-2004, 12:21 AM
  4. Help with PHP, PERL, APACHE will not work I'm lost!
    By openhouse in forum EasyApache
    Replies: 1
    Last Post: 08-09-2004, 12:58 PM
  5. Replies: 7
    Last Post: 06-27-2003, 04:48 PM
bargain