Apache Forbidden 403 on Elementary OS

0

After updating my PHP / APACHE I can no longer access my projects through the browser, it returns the error Forbidden 403 .

Environment Information:

  • PHP 5.5.12-1 + deb.sury.org ~ need + 1 (cli) (built: May 8 2014 21:14:40)
  • Server version: Apache / 2.4.9 (Ubuntu)
  • Server built: Apr 1 2014 08:52:12 **
asked by anonymous 11.05.2014 / 22:01

2 answers

1

This looks like permission problems for the root folder, I had the same problems with ubuntu and mint linux.

Review the permissions.

    
13.05.2014 / 17:59
0

Look in the /etc/apache2/apache2.conf file for a line that reads

Require all denied

Make sure this command is being used for the directory where your site is located. If so, switch to

Require all granted

Caution: Do not make this edition for all directories, only for the directories where you know you want to give permission to access.

If this is the problem, it must have been caused by updating the Apache configuration files. Note that when updating Apache (or any other similar software) the updater asks if it should replace the configuration files. If this question is asked, it is worth analyzing what changes have occurred in the configuration file. Eventually it may be worth keeping the old configuration file. If you want to use the new file it is important to redo the settings that existed in the previous one.

    
02.10.2015 / 01:56