I think that my php server crashed. Need help

Discussion in 'Server Operation' started by Heeter, Mar 13, 2012.

  1. Heeter

    Heeter Member

    Hi all,

    I am running LAMP using Ubuntu 11.04 with postfix (with 5 virtual host domains). Everything has been working fine.

    I did take some security updates yesterday. Now I think that my php is not working

    My main apache test page is there (http://50.18.190.196/), but my php info page is not working (http://50.18.190.196/info.php)

    All my virtual domains just download a file when I try to access it.

    Please help.

    Heeter
     
  2. sjau

    sjau Local Meanie Moderator

    try:

    Code:
    sudo a2enmod php5
    
     
  3. Heeter

    Heeter Member

    I will try that,,,

    Thanks, sjau, will report back in a bit,


    Heeter
     
  4. Heeter

    Heeter Member

    This is what I am getting

    Code:
    > sudo a2enmod php5
    Enabling module php5.
    Run '/etc/init.d/apache2 restart' to activate new configuration!
    > /etc/init.d/apache2 restart
    apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
    Action 'configtest' failed.
    The Apache error log may have more information.
       ...fail!
    
    Heeter
     
  5. sjau

    sjau Local Meanie Moderator

    uninstall and reinstall php5....

    Code:
    sudo apt-get remove libapache2-mod-php5
    
    Code:
    sudo apt-get install libapache2-mod-php5
    
     
  6. Heeter

    Heeter Member

    Thanks, sjau, that fixed it....

    Thanks again,

    Heeter
     

Share This Page