W
W
wusudewama2016-06-01 16:02:12
linux
wusudewama, 2016-06-01 16:02:12

Why can php7 slow down periodically?

We have a server on FreeBSD 9.1 running ispmanager lite 4.4 on which we urgently needed to install php 7
We did it this way:
1. Installed php 7.0.5 in the /usr/local/php7/ folder
2. In ispmanager in the config of a separate site set the option "php as FastCGI" and in the apache config for this site added the line Alias ​​/php-fcgi/ /home/user/data/php7-bin/
3. Put the file in the /home/user/data/php7-bin/ folder php inside which the following was written - #!/usr/local/php7/bin/php-cgi
It seems that everything worked, but a strange problem arose:
For example, we create a test.php file with the content <? phpinfo(); ?>
and start refreshing the page - the first few (2-10) requests go fine
Then a very long request (about a second), then everything is fine again. We
tried to calculate the execution time of the script - everything is fine, it runs quickly.
That is, it's either nginx or apache or php itself starts for a long time.
Without Alias ​​/php-fcgi/ /home/user/data/php7-bin/ in the config (when running php 5.2) this problem does not occur.
Tell me, please, in which direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CodeKeeper, 2016-06-03
@CodeKeeper

First, update to 7.0.6, since many vendors had problems with 7.0.5, which is why they removed this release from the dependency. Many problems have been fixed in 7.0.6, it is possible that this problem has also been fixed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question