...
| Code Block | ||||
|---|---|---|---|---|
| ||||
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 3000;
} |
(Increase request time out to 3000 seconds). Just add this line fastcgi_read_timeout 3000; keep default other configurations. You can preference this tutorial Install phpFox on nginx server for more detail
By Default, the path of nginx config is saved in /etc/nginx/nginx.conf (CentOS) or /etc/nginx/sites-available/default (Ubuntu)
Reload
...
NginX and PHP
Run these commands:
| Code Block | ||||
|---|---|---|---|---|
| ||||
systemctl restart nginx #CentOS systemctl restart php-fpm #Ubuntu (which 8.1 is php version) systemctl restart php8.1-fpm |
...