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)?
– user28595
Is in /var/www
– Edmar Roberto Prandini
Why not switch to /home/seuuser/www? So you won’t have problems with system folder permissions.
– user28595
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.
– Edmar Roberto Prandini
Are you using some virtual host or are you just using the default setup?
– rzani
Only the default installation, so I edited the Documentroot but it didn’t work.
– Edmar Roberto Prandini
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].
– PerryWerneck
Post the contents of
virtualhost
. The codes in thehttpd.conf
. Something like that<virtualhost> bla bla bla </virtualhost>
– Daniel Omine