Question

PHPmyadmin forbidden 403 after installation on Raspberry Pi

Posted September 28, 2021 77 views
UbuntuApachePHP

Hello
I have installed apache, php8.0 and phpmyadmin 5.1.1 using this guide.
I have run into error and can’t access web interface of phpmyadmin
Here’s an error log from apache.

[Tue Sep 28 19:43:17.899598 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:18.381236 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:18.724726 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:18.906255 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:19.222869 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:19.349047 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:20.926539 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:21.591112 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:21.800444 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:21.960588 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:22.137396 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in>
[Tue Sep 28 19:43:22.425259 2021] [autoindex:error] [pid 21700] [client 192.168.1.100:57885] AH01276: Cannot serve directory /usr/share/phpmyadmin/: No matching DirectoryIndex (index.html,index.cgi,in

How to get access to it?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @zwyciezki,

To fix this you could try editing the Apache configuration file, which involves adding index.php to the directive of the DirectoryIndex.

By default, Apache will be configured as below

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

Try changing it as below and then restart apache.

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

I hope this helps!

Regards,
Rajkishore