No access permission for Apache 2.4.6

1

I made an update from Ubuntu 13.04 to 13.10, but when I checked Apache using localhost/ I'm getting the following message:

  

Forbidden

     

You do not have permission to access / on this server.

     

Apache / 2.4.6 (Ubuntu) Server at localhost Port 80

    
asked by anonymous 24.07.2014 / 23:24

4 answers

1

When this happened to me, I went to the archive:

/etc/apache2/conf-available/php5-fpm.conf

Replaces all:

Order Deny,Allow
Deny from all

By:

Require all granted

And deletei in apache2.conf:

<Directory />     AllowOverride none     Require all denied </Directory>
    
25.07.2014 / 15:02
0

As of Apache version 2.4, its root has been changed to /var/www/html/ .

1 - You can place your projects within /var/www/html/ instead of /var/www/ . And usually access them in localhost/seuProjeto .

2 - Or you can change the root setting to /var/www/ by modifying the DocumentRoot in the /etc/apache2/sites-available/000-default.conf file.

    
25.07.2014 / 13:55
0

Try chmod a+rw index.html in the root directory of your apache and watch the error log for the command tail -f /var/log/apache2/error.log and post the log if you can not.

    
25.07.2014 / 15:12
0

Friend, check the permissions on your apache configuration file. This depends on which service you use for the local webserver, but it is a file with the .conf extension. In packages like WAMP on the menu itself you get the path to edit it, you will need to find the line

Order Deny,Allow

And then provide the order to allow in localhost:

Allow from 127.0.0.1

NOTE: As I am not a Linux user, I do not know the location of the file.

I hope to have helped, any doubt is available.

    
25.07.2014 / 20:15