Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2028  / 2 Years ago, mon, may 30, 2022, 3:41:41

I have just installed Ubuntu 13.10. I followed this guide (most of it) to setup LAMP. Then I was getting this error about




Could not reliably determine the server's fully qualified domain name




Which I solved by adding a line ServerName localhost to the httpd.conf file. After that I installed phpmyadmin using



sudo apt-get install phpmyadmin


Everything was working fine (i.e. phpmyadmin, mysql etc) After that I copied one of my projects to /var/www/ and when I try to access this I keep getting this error:




You don't have permission to access /AfaqTraders on this server.




I have tried



chmod -R o+w /var/www


to provide it the required (read write) permissions but I am still having this error and unable to get rid of it. Can any one please tell me what am I missing here. I am new to Ubuntu and don't know much about it, so apologize if any of this seems noob to you.



P.S. I have tried almost all of the questions here at askubuntu but wasn't able to get this to work.



Below is how my /etc/apache2/apache.conf file looks:



<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

<Directory /*>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

More From » server

 Answers
4

I don't know what the following command did, but it solved the problem for me:



sudo chmod -R 755 /var/www

[#27526] Monday, May 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
percol

Total Points: 493
Total Questions: 116
Total Answers: 107

Location: Taiwan
Member since Mon, Sep 6, 2021
3 Years ago
percol questions
Thu, Sep 29, 22, 07:42, 2 Years ago
Sat, Jul 16, 22, 21:00, 2 Years ago
Tue, May 30, 23, 19:16, 1 Year ago
Wed, Aug 18, 21, 02:15, 3 Years ago
;