How to access /localhost/?

Asked

Viewed 697 times

0

I installed Apache2 with Mysql and Phpadmin in a notebook with Ubuntu 15.10.

I did this using an administrator profile user.

Now, I’m wanting to access the /localhost/ with another user but I’m not getting the following answer:

Forbidden

You don’t have permission to access / on this server. Apache/2.4.12 (Ubuntu) Server at localhost Port 80

How do I access the files on the /localhost/ by all users on the local computer?

  • Where the www(or htdocs folder is located)?

  • Is in /var/www

  • 1

    Why not switch to /home/seuuser/www? So you won’t have problems with system folder permissions.

  • Sorry, Diego, but in Apache2, how do I set up this change? Remembering that Apache2 was installed on the admin user. Now I want to access it by user without the same profile.

  • Are you using some virtual host or are you just using the default setup?

  • Only the default installation, so I edited the Documentroot but it didn’t work.

  • What is the permission of the folder /var/www, something appears in the file /var/log/apache2/error_log ? Have you thought about activating the module "mod_userdir"? It allows you to serve http pages straight from your user directory (here, in opensuse, the files are in ~/public_html) accessing as http://localhost/~[USERNAME].

  • Post the contents of virtualhost. The codes in the httpd.conf. Something like that <virtualhost> bla bla bla </virtualhost>

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.