Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: PHP not working after 10.04 upgrade

  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
    Beans
    Hidden!

    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.

  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 2008
    Beans
    18

    Wink Re: PHP not working after 10.04 upgrade

    yes, its true
    my problem fixed too. thank you for your help.

  8. #8
    Join Date
    Feb 2007
    Beans
    143
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: PHP not working after 10.04 upgrade

    This *feature* is stupid. It took one day to solve this issue, for old ubuntu user like me. I was stressed until reading this thread. damn ubuntu!

  9. #9
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,741

    Re: PHP not working after 10.04 upgrade

    I installed 10.04 clean and I have not had problems. I tested an upgrade and it was no good.

  10. #10
    Join Date
    Feb 2007
    Beans
    143
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: PHP not working after 10.04 upgrade

    You probably not using public_html for your php.

Page 1 of 2 12 LastLast

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
  •