Results 1 to 3 of 3

Thread: LAMP troubleshooting

  1. #1
    Join Date
    Oct 2013
    Beans
    2

    Question LAMP troubleshooting

    I've installed LAMP using 1 command (2 actually) like was written here https://help.ubuntu.com/community/ApacheMySQLPHP but, using NET Beans IDE 8.0.1 in PHP, created index.php (<?php phpinfo(); ?>) saved it in .\var\www\index.php Runned it as localhost\index.php .............. I get


    URL: http://localhost/index.php

    Not Found

    The requested URL /index.php was not found on this server.

    Apache/2.4.7 (Ubuntu) Server at localhost Port 80


    What the hell I'm doing wrong?

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: LAMP troubleshooting

    Hello and welcome to the forums

    If you are running Ubuntu 14.04 then I believe the correct location should be

    Code:
    /var/www/html/index.php
    i.e. the default apache2 DocumentRoot is /var/www/html instead of just /var/www

  3. #3
    Join Date
    Oct 2013
    Beans
    2

    Re: LAMP troubleshooting

    Quote Originally Posted by steeldriver View Post
    Hello and welcome to the forums

    If you are running Ubuntu 14.04 then I believe the correct location should be

    Code:
    /var/www/html/index.php
    i.e. the default apache2 DocumentRoot is /var/www/html instead of just /var/www
    TY!! I should check it in apache cfg!!!-)

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
  •