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

Thread: Lamp all installed added website folder but cannot access website localhost/web ??

  1. #1
    Join Date
    Mar 2013
    Beans
    13

    Lamp all installed added website folder but cannot access website localhost/web ??

    So installed everything lamp etc and my database

    Added my website folder to var/www/web

    Myfolder containing all website related stuff is web, now when i point localhost/web in my browser it cannot find it?

    any ideas the website is a drupal website that i want to upgrade.

    Heres a lamp tutorial i created along the way quick http://chrisbaker556.blogspot.com/p/lamp-install.html

    -Chris

  2. #2
    Join Date
    Mar 2010
    Location
    Metro-ATL
    Beans
    Hidden!
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Lamp all installed added website folder but cannot access website localhost/web

    var/www/web or /var/www/web?
    What do the log files show?
    http://blog.jdpfu.com/2013/02/11/lin...-101-log-files

    Is apache running? Are you using apache?
    Is apache configured to allow php?
    Is the DB running and you have specified the credentials correctly?

    I would expect these things to be mostly pre-configured during the install.

    Checking the log files is the first step for any Linux troubleshooting.
    Last edited by TheFu; March 4th, 2013 at 05:29 PM.

  3. #3
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    Thanks for the reply let me explain..

    var/www/web or /var/www/web - Yes this is where the website is stored in web and in that correct order of directorys

    Checking the log files did not work in terminal within root/su using
    $ sudo egrep -i ‘error|warning’ /var/log/*log
    Using Apache and is all working..




    Apache is configure to allow php i think its allowed and confgured with mysql

    Database all correct

    okay i am going to look into this php to apache config file could you point me in the right direction

    Thanks
    -Chris

  4. #4
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Lamp all installed added website folder but cannot access website localhost/web

    "It works" usually goes into /var/www by default, which is not necessarily the same as var/www.

    Do you see your website when you browse to localhost/web?
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  5. #5
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    This is my php test page..


  6. #6
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    Thanks for the reply lisati

    I have copied the 'web' folder into /var/www/web

    When i browse to localhost/web i get the following..

    Not Found

    The requested URL /web/ was not found on this server.

    Apache/2.2.22 (Ubuntu) Server at localhost Port 80

  7. #7
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    The /var/www/web folder i have used also has other file in their such as phpmyadmin index.htmk and testphp.php i think this is the correct directory

    -Chris

  8. #8
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    Actually sorry i get this message

    I actually changed the folder name from web to icm so /var/www/icm

    just pointed browser to icm to get this message

    Server error

    The website encountered an error while retrieving http://localhost/icm/. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:



    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

  9. #9
    Join Date
    Mar 2013
    Beans
    13

    Re: Lamp all installed added website folder but cannot access website localhost/web

    Anyone have any more ideas I'm pretty stuck..

  10. #10
    Join Date
    Mar 2010
    Location
    Metro-ATL
    Beans
    Hidden!
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Lamp all installed added website folder but cannot access website localhost/web

    Quote Originally Posted by baker556 View Post
    Anyone have any more ideas I'm pretty stuck..
    Which user is running apache and do your file and directory permissions allow that user the needed access?

    Have you verified that Apache is configured to allow php in your /var/www/* area? The config files are usually under /etc/apache*/ somewhere.
    Last edited by TheFu; March 5th, 2013 at 01:37 PM.

Page 1 of 2 12 LastLast

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
  •