What are best practices for configuring phpMyAdmin access on a server to avoid "403 Forbidden" errors in the future?

When configuring phpMyAdmin access on a server, it is important to ensure that the correct permissions are set for the directory where phpMyAdmin is installed. To avoid "403 Forbidden" errors in the future, you should make sure that the directory permissions are set to allow access to the web server user. Additionally, you can configure phpMyAdmin to use authentication to restrict access to authorized users only.

<Directory /path/to/phpmyadmin>
    Options Indexes FollowSymLinks
    DirectoryIndex index.php

    AllowOverride All
    Require all granted
</Directory>