I installed LAMP (http, php, mariadb, phpmyadmin) following this guide:
When I try to import a large DB via phpMyAdmin, instead of getting the “reload the same file to continue” screen, I get a 504 timeout error.
My virtual host for phpMyAdmin:
<VirtualHost *:80>
ServerAdmin webmaster@domainname1.dom
DocumentRoot "/srv/http"
ServerName localhost
ServerAlias localhost
ErrorLog "/var/log/httpd/localhost-error_log"
CustomLog "/var/log/httpd/localhost-access_log" common
<Directory "/srv/http">
Require all granted
</Directory>
#phpMyAdmin
Alias /phpmyadmin "/usr/share/webapps/phpMyAdmin"
<Directory "/usr/share/webapps/phpMyAdmin">
DirectoryIndex index.php
AllowOverride All
Options FollowSymlinks
Require all granted
</Directory>
DirectoryIndex index.php index.html
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost/"
</FilesMatch>
</VirtualHost>