Thursday, April 18, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 34962  / 3 Years ago, wed, may 12, 2021, 11:50:47

I recently reinstalled Ubuntu and then installed the lamp-server bundle via tasksel and the installation went fine.


I had backed up the files from the /var/www/ folder and planned to just place them back once the server was back online (or in my case, accesible from my computer only - it's a test server.)


The installation completed and so I tried to copy the files over from the backup directory. This went fine.


However, when I try to access the server via localhost from Firefox I get a 403 Forbidden error, which I never had before. HELP!!


EDIT: 9/2/2013 Added info about file happenings


So, I followed what @Andrew said, but I still can't access any .html files. Strangely enough, I can access the .php files (nothing displayed of course, as they only display the info pulled from a previously completed form.) But no html access, just the



Forbidden


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



page


More From » server

 Answers
1

Well, found the answer to my problem, albeit trying to help another user with a similar problem!



This question https://askubuntu.com/questions/343172/add-apache2-vhost-at-home gave a link that gave me a solution! I just had to run sudo chmod -R 755 /var/www and now I can access it fine! Thanks for the help @Andrew, but I got this one myself!


[#29650] Friday, May 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iriousutur

Total Points: 321
Total Questions: 112
Total Answers: 106

Location: Sweden
Member since Mon, Dec 7, 2020
3 Years ago
iriousutur questions
Sun, Apr 9, 23, 02:48, 1 Year ago
Tue, May 23, 23, 00:41, 12 Months ago
Fri, Oct 21, 22, 02:47, 2 Years ago
Mon, May 9, 22, 00:01, 2 Years ago
;