: Phpmyadmin error 403 - No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive I installed phpmyadmin over a year ago. I use MAC OS 10.10.4.
I installed phpmyadmin over a year ago.
I use MAC OS 10.10.4.
I don't use Xampp.
My installation Folder is /Library/Webserver/Documents/phpmyadmin.
Now when I try to access phpmyadmin with that url, localhost/phpmyadmin/, i have:
403 Forbiden error You don't have permission to access /phpmyadmin/ on this server.
in /var/log/apache2:
[Sat Oct 03 15:42:53.773654 2015] [autoindex:error] [pid 10682] [client 127.0.0.1:57694] AH01276: Cannot serve directory /Library/WebServer/Documents/phpmyadmin/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
My question is how can i fix it and have an access to phpmyadmin again?
Ok, the answer of Rishi has solved the acces denied problem.
For the rest of the problem (index.php was downloaded but not executed), i had to (on httpd.conf):
Uncomment LoadModule php5_module libexec/apache2/libphp5.so
and add:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType text/html .php (maybe the only one really necessary??)
see stackoverflow.com/questions/18422140/apache-is-downloading-php-files-instead-of-displaying-them
More posts by @Annie201
1 Comments
Sorted by latest first Latest Oldest Best
Depending on your setup, you need to locate the correct .conf file (like apache-xampp.conf or httpd.conf or apache.conf or phpmyadmin.conf) in your web server installation directory for below lines and then Ctrl+F for phpmyadmin to find something like below:
<Directory /usr/share/phpmyadmin> ## The path here will vary depending on your setup and you don't have to change it
Options FollowSymLinks
DirectoryIndex index.php
order deny,allow
#deny from all
allow from all
and change it to
<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AllowOverride all
Require all granted
If you are going to access phpmyadmin from localhost only then you may use Allow from 127.0.0.1 instead of Require all granted above.
Restart apache service once you are done.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.