我在使用CentOS 7的Plesk服务器(版本17.8)上有一个域。Prestashop已安装在该域上,并且产品是通过自编程模块导入的。 当我开始导入时,我收到消息: 服务暂时不可用 由于停机或容量问题,服务器无法满足您的请求。请稍后再试。 Web服务器位于sportsams.ch
在日志中,我收到以下消息:(70007)已指定超时:AH01075:将请求分发到以下错误:
PHP setting for the domain:
PHP version: 7.2.18 with FPM
Memory_limit: 256M
max_execution_time: 1000
max_input_time: 1000
post_max_size: 16M
upload_max_filesize:16M
Plesk的支持告诉我,这必须进行调整:
Plesk>域> sportsams.ch> Apache和nginx设置。
HTTP的附加指令和HTTPS的附加指令:
FcgidIdleTimeout 1200
FcgidProcessLifeTime 1200
FcgidConnectTimeout 1200
FcgidIOTimeout 1200
Timeout 1200
ProxyTimeout 120
单击“确定”按钮以应用更改
不幸的是,这些设置没有成功。
我希望其他人能给我一个主意。
如果您需要更多信息,请告诉我。
Centos 7 Server with Plesk 17.8.
PHP-Version 7.2.18 With FPM
答案 0 :(得分:0)
不确定这是否适用于您的Plesk配置,但是我一直在使用以下配置通过PrestaShop&Nginx正确设置超时:
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.*)$;
fastcgi_keep_conn on;
include /etc/nginx/fastcgi_params;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 3600;
fastcgi_param PHP_VALUE open_basedir="/var/www/myshop.com/:/tmp/";
}
如果fastcgi_read_timeout
对您不起作用,则可能与主机提供商的限制有关,即检测到您正在消耗过多资源。
我希望这会有所帮助!