TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-FPM)
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Then I don't have idea.
Check error log?
P.S. Yes, nginx should connect to Apache in order to .htaccess works.
I wanted just to be sure you didn't avoid Apache.
Check error log?
P.S. Yes, nginx should connect to Apache in order to .htaccess works.
I wanted just to be sure you didn't avoid Apache.
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
@dpeca,
It's probably my fault. My script say me "you don't have mod_rewirte" but mod_rewrite is working properly :)
Can you tell me how I can edit additional parametr like a max_exection_time in .sh file's in template? For example max_input_time - I must add the following line in the .sh or edit php.ini?
It's probably my fault. My script say me "you don't have mod_rewirte" but mod_rewrite is working properly :)
Can you tell me how I can edit additional parametr like a max_exection_time in .sh file's in template? For example max_input_time - I must add the following line in the .sh or edit php.ini?
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Edit conf file in /etc/php/7.*/fpm/pool.d/ folder and then restart php-fpm service, for example: service php7.2-fpm restart
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Yes, thats Ok, but here dont have for example max_input_time - so how Its properly way to add this?
Also I have the small problem - I use PHP-FPM on my cloud service. After the user start 4 download files server return the 503 code, and then 500. When I restart the Apache or php fpm it start work again. Can you any idea where is the problem on the config ? I change the pm.max-children to 75 because default is only 4.
Also I have the small problem - I use PHP-FPM on my cloud service. After the user start 4 download files server return the 503 code, and then 500. When I restart the Apache or php fpm it start work again. Can you any idea where is the problem on the config ? I change the pm.max-children to 75 because default is only 4.
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Add:
php_admin_value[max_input_time] = 60
or whatever number of seconds...
Not sure what is going on.maniek015 wrote: ↑Tue Nov 27, 2018 5:56 pmAlso I have the small problem - I use PHP-FPM on my cloud service. After the user start 4 download files server return the 503 code, and then 500. When I restart the Apache or php fpm it start work again. Can you any idea where is the problem on the config ? I change the pm.max-children to 75 because default is only 4.
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Ok I try explain.
I have storage service - when 4 users start download files server return the 503 error, the (after the one minute) return the 500 code (internat server error). If I change to default VestaCP PHP (7.0) the problem not appear. Seems like a limit ? I don’t know what limit on PHP FPM Can handle this ..
I noticed this only in PHP-FPM.
I have storage service - when 4 users start download files server return the 503 error, the (after the one minute) return the 500 code (internat server error). If I change to default VestaCP PHP (7.0) the problem not appear. Seems like a limit ? I don’t know what limit on PHP FPM Can handle this ..
I noticed this only in PHP-FPM.
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
i'm just watching fpm template, it's based on hosting.tpl except <FilesMatch \.php$> block, which handle only php files.maniek015 wrote: ↑Tue Nov 27, 2018 7:14 pmOk I try explain.
I have storage service - when 4 users start download files server return the 503 error, the (after the one minute) return the 500 code (internat server error). If I change to default VestaCP PHP (7.0) the problem not appear. Seems like a limit ? I don’t know what limit on PHP FPM Can handle this ..
I noticed this only in PHP-FPM.
maybe your downloads goes through php scrpt?
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
Hmm yes, but as I say if I switch the PHP to "default" (PHP 7.0 from Vesta) the problem not appear.
The problem was only PHP-FPM - maybe is there in config some limits to change about which I don't know?
UPDATE :
I increase in config this parametr :
pm.max_children = 4
to
pm.max_children = 75
and user's can download more than 4 files.
What it's safely amount of pm.max_children ? Now with the pm.max_children = 75 i have in one time 20 connections to download and server is stuck. On the default PHP again problem not appear.
The problem was only PHP-FPM - maybe is there in config some limits to change about which I don't know?
UPDATE :
I increase in config this parametr :
pm.max_children = 4
to
pm.max_children = 75
and user's can download more than 4 files.
What it's safely amount of pm.max_children ? Now with the pm.max_children = 75 i have in one time 20 connections to download and server is stuck. On the default PHP again problem not appear.