Results 1 to 3 of 3

Thread: PHP5 help

  1. #1
    Join Date
    Jun 2007
    Location
    In Heaven with Lucid
    Beans
    200
    Distro
    Ubuntu 10.04 Lucid Lynx

    PHP5 help

    I installed apache2.2.20 using -prefix=/usr/local/apache2 from source i.e all files of apache2 are in /usr/local/apache2.

    Then I installed php5 with sudo apt-get install php5. That has got installed in /etc I think. To test php5 installation I created a file phpinfo.php in the local host containing the following:


    PHP Code:
    <?php phpinfo() ?>
    After saving I chmod it to a+rx.

    Now when I run http://localhost/phpinfo.php, the page shows

    PHP Code:
    You are forbidden to access this site on this server
    Can any one help me to solve the issue? Maybe the config is wrong? Or installation of php is wrong. Thanks in advance.
    Winners are too busy to be sad, too positive to be doubtful, too
    optimistic to be fearful and too determined to be defeated!

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: PHP5 help

    Is there a reason you didn't install apache2 from the repositories? If it was just because of security updates, apache2 is updated without incrementing the version number. Php5 probably isn't working because you installed apache2 to a non-default location, you may have to check the various php.ini files to see it it is pointing to the correct location.

  3. #3
    Join Date
    Jun 2007
    Location
    In Heaven with Lucid
    Beans
    200
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: PHP5 help (Solved)

    Thank you very much. I reinstalled apache2 from repos. Now everything is working fine.
    Winners are too busy to be sad, too positive to be doubtful, too
    optimistic to be fearful and too determined to be defeated!

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
  •