Results 1 to 10 of 18

Thread: PHP not working after 10.04 upgrade

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Beans
    16
    Distro
    Kubuntu

    PHP not working after 10.04 upgrade

    Hi

    Today I upgraded to 10.04 but now PHP isn't working anymore on my localhost. Apache is running and it serves static HTML pages but PHP file are just being downloaded by the browser, unparsed.

    In the error.log I can see this:
    Code:
    [Fri Apr 30 15:15:23 2010] [notice] caught SIGTERM, shutting down
    [Fri Apr 30 15:15:23 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4 with Suhosin-Patch configured -- resuming normal operations
    How can I fix this?

    Regards,
    Aries-Belgium

  2. #2
    Join Date
    Jun 2007
    Location
    /
    Beans
    824
    Distro
    Kubuntu 13.04 Raring Ringtail

    Re: PHP not working after 10.04 upgrade

    Quote Originally Posted by Aries-Belgium View Post
    Hi

    Today I upgraded to 10.04 but now PHP isn't working anymore on my localhost. Apache is running and it serves static HTML pages but PHP file are just being downloaded by the browser, unparsed.

    In the error.log I can see this:
    Code:
    [Fri Apr 30 15:15:23 2010] [notice] caught SIGTERM, shutting down
    [Fri Apr 30 15:15:23 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4 with Suhosin-Patch configured -- resuming normal operations
    How can I fix this?

    Regards,
    Aries-Belgium

    What you see in the error looks perfectly normal. You will see that message anytime apache is restarted. What does the access log look like for the PHP requests.
    VI Cheat Sheet
    Ubuntu Counter Project-user#21143

  3. #3
    Join Date
    Mar 2009
    Beans
    16
    Distro
    Kubuntu

    Re: PHP not working after 10.04 upgrade

    Solved it.
    The problem was the user_dir module for Apache2.

    For those who have the same problem:
    1) sudo vim /etc/apache2/mods-enabled/php5.conf
    2) comment all lines from <IfModule mod_userdir.c> to the next </IfModule>
    3) sudo service apache2 reload

    If your browser has an aggressive cache you may have to clear it.

  4. #4
    Join Date
    Oct 2005
    Beans
    22

    Re: PHP not working after 10.04 upgrade

    Thanks a lot. Helped me in not losing much time in search for a solution.

  5. #5
    Join Date
    Jun 2008
    Beans
    18

    Re: PHP not working after 10.04 upgrade

    my problem don't fixed with this solution. do you have another idea?

  6. #6
    Join Date
    Sep 2006
    Location
    Romania
    Beans
    41
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: PHP not working after 10.04 upgrade

    Quote Originally Posted by ms.shams View Post
    my problem don't fixed with this solution. do you have another idea?
    I've had this problem and after I've fixed it on the server, I needed to clear the browser's cache. If you use Firefox, see Tools -> Clear Recent History..., check 'Cache' from the list and make sure you select 'Everything' at 'Time range to clear'. Then refresh the page using CTRL+F5.
    Notebook: ASUS F5SL, 1.83GHz Intel Core 2 Duo T5550, 2GB RAM, 160GB HDD SATA, ATI Radeon HD3470 graphics card, 15.4" WXGA+ screen
    Desktop: 1.7GHz Celeron CPU, 1GB RAM, 40GB HDD, nVidia FX5200 graphics card, BenQ T201WA 20'' LCD monitor.

  7. #7
    Join Date
    Jun 2010
    Location
    Florida
    Beans
    30
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PHP not working after 10.04 upgrade

    Quote Originally Posted by Aries-Belgium View Post
    Solved it.
    The problem was the user_dir module for Apache2.

    For those who have the same problem:
    1) sudo vim /etc/apache2/mods-enabled/php5.conf
    2) comment all lines from <IfModule mod_userdir.c> to the next </IfModule>
    3) sudo service apache2 reload

    If your browser has an aggressive cache you may have to clear it.
    Hey thanks this helped me too

  8. #8
    Join Date
    Jun 2010
    Beans
    5

    Re: PHP not working after 10.04 upgrade

    Nothing is working - this is driving me nuts.

    I've tried installing Umbuntu server and I get the same problem.

    I've commented the lines,
    added the associations
    changed the options in the various conf files
    everything that's listed on the net for this problem

    other then umbuntu, what distribution would you suggest to do LAMP?

  9. #9
    Join Date
    Jun 2010
    Beans
    5

    Re: PHP not working after 10.04 upgrade

    OK!

    sudo apt-get install lamp-server^

    is the only thing that works. (after commenting out the mod-libc tag in php5.conf)

Tags for this Thread

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
  •