Results 1 to 8 of 8

Thread: apache with php5 stop working

  1. #1
    Join Date
    Mar 2006
    Location
    Slovenija
    Beans
    260
    Distro
    Ubuntu 8.04 Hardy Heron

    apache with php5 stop working

    I update system and apache stop working.

    http://82.149.25.222:8080/

    but

    http://82.149.25.222:10000 still works. Can anyone help me or give me an advice why and how to fix that?

    I already try

    sudo apt-get install --reinstall apache2, libapache2-mod-php5 and php5 with no help


    regards
    Juventus the champion

  2. #2
    Join Date
    Nov 2009
    Beans
    47

    Re: apache with php5 stop working

    Looks like your server is presenting the .phtml file without processing it first? Is the .phtml file for PHP or SSI (Server Side Includes)? If so you need to declare that in your http.conf. The installer should have moved your old configuration to http.conf.bak I believe. You can always reference that vs. what Apache is currently loading.

    Tim

  3. #3
    Join Date
    Mar 2006
    Location
    Slovenija
    Beans
    260
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apache with php5 stop working

    LOG:
    [Tue Dec 15 18:26:00 2009] [alert] [client 82.149.25.222] /home/mitjab/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

    where can i find httpd.conf?

    mitjab@server:/etc/apache2$ dir
    apache2.conf apache2.conf.orig conf.d envvars httpd.conf mods-available ports.conf README sites-enabled workers.properties
    apache2.conf.dpkg-dist auth-files dav_svn.passwd flyspray magic mods-enabled ports.conf.dpkg-dist sites-available ssl
    mitjab@server:/etc/apache2$ cd /etc/php5/apache2/
    mitjab@server:/etc/php5/apache2$ dir
    conf.d php.ini php.ini.ucf-dist
    mitjab@server:/etc/php5/apache2$


    I can not find it.
    Juventus the champion

  4. #4
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: apache with php5 stop working

    Moved to server platforms. You should get more help here.

    Edit:
    In Ubuntu, httpd.conf = apache2.conf

    Edit 2:
    Code:
    /etc/apache2$ dir
    apache2.conf apache2.conf.orig conf.d envvars httpd.conf mods-available ports.conf README sites-enabled workers.properties
    apache2.conf.dpkg-dist auth-files dav_svn.passwd flyspray magic mods-enabled ports.conf.dpkg-dist sites-available ssl
    Looks like I was mistaken.
    Last edited by dmizer; December 15th, 2009 at 06:51 PM.

  5. #5
    Join Date
    Mar 2006
    Location
    Slovenija
    Beans
    260
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apache with php5 stop working

    i copy apache2.conf.dpkg-dist to apache2.conf but it is the same. Here is also no data fo rphp in apache2.conf
    Juventus the champion

  6. #6
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: apache with php5 stop working

    Code:
    sudo a2enmod php5
    sudo /etc/init.d/apache2 restart

  7. #7
    Join Date
    Sep 2008
    Location
    CyberSpace
    Beans
    240
    Distro
    Kubuntu 22.10 Kinetic Kudu

    Re: apache with php5 stop working

    Quote Originally Posted by cdenley View Post
    Code:
    sudo a2enmod php5
    sudo /etc/init.d/apache2 restart
    The easiest and most functional way in Ubuntu. Lol, dir.
    I am now back to help the Proton Gaming phase!
    OS: Kubuntu 22.10

  8. #8
    Join Date
    Apr 2008
    Beans
    332
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: apache with php5 stop working

    Quote Originally Posted by cdenley View Post
    Code:
    sudo a2enmod php5
    sudo /etc/init.d/apache2 restart
    That should fix you up. If not. You need a few extra packages.

    https://help.ubuntu.com/9.10/serverguide/C/php5.html

    sudo apt-get install php5-cli
    or one of the others listed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •