H
H
hotpants2015-05-03 18:01:42
LAMP
hotpants, 2015-05-03 18:01:42

Forbidden You don't have permission to access /info.php on this server. Apache/2.4.7 (Ubuntu) Server at testsite Port 80?

I recently installed Linux Mint and found information about installing a local server
here: senokosov.info/lamp/install-lamp
But the trouble is, I can't access my testsite. It gives an
error:

Forbidden
You don't have permission to access /info.php on this server.
Apache/2.4.7 (Ubuntu) Server at testsite Port 80

....................................
As I understand it, I do not have enough rights to access this page, so ?
How to fix it?
help me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Akmal Kadirov, 2015-05-04
@kadirov

I had the same problem. Everything was fine before. After updating Apache to version 2.4.10, I met such a problem. As I understand it, now by default there is no access to the /home folder.
I solved it very simply, opened the file /etc/apache2/apache2.conf, in line 164 the following text begins:

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

I duplicated it by replacing /var/www/ with /home/my_home_folder.
As a result, it turned out like this:
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

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

Restarted apache
everything works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question