Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
2
votes
1 answer
Servers crash with 3000 concurrent clients - how to config it right? PHP & Apache
I've 4 web servers, 2 database servers (read & write), Redis and a load balancer. I'm using PHP 7.0 & Apache2 & MySQL 5.7, however when I do load tests with 3000 users which surf at the same time, the servers crash one by one.
The Apache servers are…

MyLibary
- 121
- 2
2
votes
0 answers
php.net discourages the use of threaded MPM in production with Apache 2
php.net discourages the use of
threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2.
It doesn't mention anything about apache 2.4, I have apache 2.4, ubuntu 18.04, php 7.2
I would like to…

YesItsMe
- 191
- 1
- 5
2
votes
2 answers
504 Gateway Timeout even when Timeout is set to 600
I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in /server-process, I can see that the request is still going on. Before…

ariefbayu
- 229
- 2
- 5
- 13
2
votes
1 answer
Blank Page Nginx 1.10 Wordpress PHP7.0-FPM
I've been searching for hours. I've found so many similar cases and can't figure out why mine doesn't match. When I go to my web address I was getting a 502 Bad Gateway error. Now with the current setup, it's just a blank page. I'm guessing a file…

Mac Zoller
- 21
- 4
2
votes
1 answer
PHP-FPM pool user in load balancing
we know processing part is separate from database in load balancing.
in processing i use php-fpm. i have to select a linux user and group in php-fpm pool.
If I use root as user and group for php-fpm pool, is there any security issue?
These servers…

Moin Uddin
- 65
- 1
- 5
2
votes
1 answer
Cant install php-zip on Ubuntu 16.04 server
I'm trying to install php7.0-zip on my server so I can make use of it in a PHP script, but I get a big error:
sudo apt-get install php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following…

Andrew Newby
- 1,102
- 2
- 25
- 58
2
votes
0 answers
Can't get php7 to work on apache2
this question also exist of SFO but I was recommended to ask here since it is more a server configuration issue.
I have a major problem.
My apache2 does not process php7 code but instead shows the codes straight in the browser(chrome) or blank…

IgorLopez
- 39
- 1
- 4
2
votes
1 answer
Receiving a 404 after posting a large file via PHP on IIS
I have a form where you can upload an XML file and my PHP file parses and imports the file into a database. When I post a 50 mb or less file, it works. But when I post something a bit higher, it returns a "404 Page not found" from IIS. Why is this?…

Jared Dunham
- 222
- 2
- 11
2
votes
2 answers
Php 7.1 / Apache 2.4 / Windows - Openssl load error
I want to upgrade my local server to php 7.1. When I try to do this everythings go fine except openssl.
With php <= 5.30 openssl works perfect but if I switch to php 7.1 openssl is disabled.
I think every settings is ok (http.conf, php.ini) because…

Pippo Fresta
- 21
- 4
2
votes
1 answer
Server Reached MaxRequestWorkers Setting
New 8 GB Dedicated Server stopped working during peak time and in Apache error.log, I found following errors:
[mpm_prefork:error] [pid 7565] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers…

Ulugbek Khalilov
- 21
- 1
- 1
- 4
2
votes
0 answers
Why is Ubuntu's default PHP 7.0.13 almost twice as fast as ppa:ondrej/php PHP 7.0.15?
So my intent was really to benchmark how our current app generates reports on php5, php7, and php7-fpm.
I did this by launching a 2gb instance on DigitalOcean with Ubuntu 16.04 and installing apache2 and php7. The test ran in about 9 seconds and…

Sarke
- 411
- 1
- 5
- 12
2
votes
4 answers
Prestashop 1.7 too many redirects on frontend shop
I keep getting ERR_TOO_MANY_REDIRECTS when trying to navigate to the frontend shop of a Prestashop 1.7 site. However it is fine when going to the admin backend.
Any suggestions would be helpful.
Site is running with Nginx, PHP-FPM7, MariaDB.
Nginx…

Adam Birds
- 187
- 2
- 3
- 13
2
votes
1 answer
WARNING: pool www seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers)
I am trying to solve this problem on a VPS Debian based 8GB RAM, 2v Cores, using nginx and php7-fpm.
Checking /var/log/php7.0-fpm.log I have a lot of these warnings:
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or…

Augusto Murri
- 39
- 1
- 3
- 10
2
votes
3 answers
PHP7.0-FPM and Nginx don't work using unix sockets
I have a trouble that is not described in the web. I am using VPS Debian 8 Nginx + PHP7.0-FPM. My server gives php-files in a source code and does not compile them when I configure Nginx and PHP7.0-FPM to use unix sockets (I do it cause I've read it…

tlito
- 131
- 1
- 3
2
votes
1 answer
Apache with PHP-FPM - PHP doesn't execute
I have compiled PHP 7 with FPM support using this tutorial on CentOS 7.x environment.
I was able to test the php through CLI by running.
cd /opt/php7/bin
./php --version
Which outputs
PHP 7.0.6 (cli) (built: May 22 2016 07:20:48) ( NTS )
Copyright…

Sisir
- 131
- 1
- 8