Answer the question
In order to leave comments, you need to log in
How to increase the execution time of a PHP-FPM nginx script (debian 9)?
I am using debian 9, PHP-FPM, MySql, phpmyadmin.
I need to import a db file via phpmyadmin .
In phpmyadmin writes Maximum size: 1,000MB (I made changes to the config)
Maximum rights.
What I did:
Increase the script execution time
nano /etc/php/7.0/fpm/php.ini
max_execution_time = 300
max_input_time = 600
memory_limit = 512M
nano /etc/php/7.0/fpm/pool.d/www.conf
request_terminate_timeout = 300
nano /etc/nginx/nginx.conf
добавим в секцию http {
fastcgi_read_timeout 300;
service nginx restart
systemctl restart php7.0-fpm
Answer the question
In order to leave comments, you need to log in
Do you have the ability to import data via the command line? mysql -u username -p password -h host db_name < dump.sql
Or normal software like MySQL Workbench.
It is better to import large dumps directly through the database client (mysql or remotely HeidiSQL, for example).
phpmyadmin in this regard is an extremely slow tool and is suitable for loading the schema in order to prepare an empty database for use by the software.
is this a 504 error? check the logs.
Google the ERR_CONNECTION_ABORTED error - it looks like something from Windows and all sorts of antiviruses.
and also increase the timeout of the database server
[mysqld]
connect_timeout=100
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question