What is the right way to get the browser to trust phpMyAdmin?
I have not touched /etc/phpmyadmin/config.php.
This is the contents of /etc/httpd/conf/sites.d/phpmyadmin.conf, which I slightly amended:
- Code: Select all
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
#Require local granted
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168
ErrorDocument 403 "Access denied per /etc/httpd/conf/sites.d/phpmyadmin.c$
php_flag session.auto_start 0
</Directory>
<Location "/phpmyadmin">
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</Location>
<Directory /usr/share/phpmyadmin/libraries>
#Require all denied
Order deny,allow
Deny from all
</Directory>
MariaDB has a password and Apache itself works fine.