Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
1
vote
1 answer
Malicious Code detected generated error page
We started getting an error page when we post iframes or scripts on our sites. Whether it's from the admin or a test script on a "test.php" page.
The problem is we don't know what is generating this page. From all my research it seems like it's the…

Melonheadjr44
- 21
- 2
1
vote
2 answers
Installation of pecl_http on PHP 7.3 / Debian 9 Stretch fails
I am trying to install pecl_http in PHP 7.3, however, there is an error:
root@dev:/etc/php/7.3/mods-available# pecl install pecl_http
downloading pecl_http-3.2.0.tgz ...
Starting to download pecl_http-3.2.0.tgz (218,829…

Pinke Helga
- 141
- 2
- 8
1
vote
0 answers
MBString Segfault with apache2 ubuntu 18.04 Laravel 5.7
I am working on a script API with Laravel 5.7. When I try and run a command on the API, I get the following segfault
segfault at 7ffc466e9ee8 ip 00007f2adb4144ed sp 00007ffc466e9ef0 error
6 in mbstring.so[7f2adb3a7000+176000]
The error I am…

ArcticMediaRyan
- 111
- 2
1
vote
0 answers
PHP 7.2 - Apache 2.4 memory limit issue
We are running Ubuntu 16.04 LTS with Apache 2.4 and PHP 7.2. 9 times out of 10, the web app works well, but at a random interval, we come across this error message.
"Allowed memory of 134217728 bytes exhausted(tried to allocate 135168 bytes) in…

Sunil Shenoy
- 111
- 3
1
vote
2 answers
Unable to install PHP 7.3 on Centos 7
I have a server currently running CentOS 7.6 and PHP 7.1.25. I want to update my PHP version to 7.3 (released on 6 Dec) but I'm having some troubles.
I followed this guide but when I run yum update, it throws the following error:
# yum update
Loaded…

Bird87 ZA
- 113
- 1
- 5
1
vote
0 answers
Nginx serving PHP file as download
I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file and made changes suggested by others about…

Rhys Perry
- 11
- 2
1
vote
0 answers
Trying to update PHP servers to PHP7-cgi (7.2)
I'm Trying to update PHP servers to php7-cgi (7.2) in my .htaccess file. Just not sure how exactly to edit the code, haven't been able to get it to work.
Here is the code in the .htaccess file:
Options +FollowSymLinks
RewriteEngine On
Redirect…

jessica
- 11
- 1
1
vote
1 answer
Let PHP-FPM report the script's current line number on timeout
My website is running successfully on PHP-FPM with NGINX on Debian. Timeout period is set at 300 seconds for NGINX. This is enough for most pages, but some scripts get stuck. I can't reproduce the issue in testing, so I would like to know where the…

i.amniels
- 325
- 1
- 4
- 9
1
vote
1 answer
CentOS 7 + PHP7 — php not rendering in browser
I have a clean install of apache/httpd and php7.1.0 running on CentOS 7.
When I execute from the command line:
httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Jun 27 2018 13:48:59
and
php -v
I get the expected response
PHP 7.1.22…

Kishore
- 221
- 2
- 7
1
vote
2 answers
Upgrading PHP 5.3 to 7.x on CentOS 6.10 (final) - Unmet Dependencies
I am a bit rusty these days and could use some help. I've cracked opened a few old servers and have started the process of dusting them off. In the process I'm updating things like PHP. I regret to inform you I'm running 5.3.3. I would like to…

Pedro Salazar
- 11
- 1
- 2
1
vote
2 answers
PHP 7 FPM slow log file location
In my www.conf file, there is this line:
slowlog = log/$pool.log.slow
Where is that on Ubuntu?

Steven
- 113
- 1
- 6
1
vote
2 answers
PHP 7.2 session path does not change on Windows Server 2016
I tried to changed the session path for PHP 7.2 on a Windows Server 2016 but the phpinfo shows only the default path to the windows temp folder.
PHP 7.2 was installed by the webplatform installer.
What I have tried so far:
created a new folder…

JohnDoe
- 21
- 4
1
vote
1 answer
HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occured
I am trying to make PHP 7.2.9 run with IIS7 on my Windows 7 Service Pack 1 OS and I keep getting the following error whenever I try to run http://localhost/phpinfo.php. I can see the IIS running with this URL : http://localhost. Saw a similar 7…

Tan
- 139
- 1
- 3
- 8
1
vote
0 answers
Laravel app usages more than 90% CPU resources for only 100 concurrent users
I have migrated the existing application from core php to laravel framework. But the laravel application usage more than 90% cpu for the 100 concurrent users but the same application developed in core php usages the 5% cpu load only for the same…

CP Soni
- 111
- 4
1
vote
1 answer
Apache2 php_admin_flag opcache.enable on is ignored
I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server.
When I try to enable opcache in a vhost the changed setting isn't applied.
If I enable opcache globally in the php.ini everything is working as expected.
I also checked that php settings…

oivlis111
- 21
- 4