Nginx+PHP-FPM構成でmax_execution_timeを変更するなら、 NginxとPHP-FPMも対応させないと意味がない max_execution_time = 300に変更する例
1 2 3 |
# vi php.ini max_execution_time = 300 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
$ sudo vi /etc/nginx/sites-available/default ・・・ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { include snippets/fastcgi-php.conf; # # # With php7.0-cgi alone: # fastcgi_pass 127.0.0.1:9000; # # With php7.0-fpm: fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_param HOSTNAME $client; fastcgi_connect_timeout 300; ←●追加 fastcgi_read_timeout 300; ←●追加 proxy_set_header X-Real-IP $remote_addr; } ・・・ |
[cray …