Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
0
votes
0 answers
Nginx IP address www redirection happening on LEMP server without having a c-name or redirect entry in DNS records. Virus or misconfiguration?
On Oracle Cloud server, I have set up a Wireguard VPN Server running Ubuntu Server 20.04. Then, I have set up a Raspberry Pi LEMP Web server as the VPN client to the Oracle Wireguard server. My Raspberry Pi LEMP Server successfully obtains the exact…

DanRan
- 73
- 1
- 3
- 22
0
votes
0 answers
Way to implement ramdom DIR in php
is there a way for redirect a user to a Ramdom Directory and that ramdom directory always go to a same page?
Example:
user 1 reach my site so he is redirected to https://mysite/abcdef/index.php
user 2 reach my site so he is redirected to…

Diego
- 1
- 2
0
votes
0 answers
PHP way to show a page depending of user PC or mobile?
i have 2 versions of a page, PC and mobile, how do a show one or other depending on User Agent?
I know that using INCLUDE but i'm a little confused so maybe a example can help me.
TY

Diego
- 1
- 2
0
votes
0 answers
Ubuntu 20.04 - PHP 7 not executing when run from Web App
I have a Web App that's running on a LAMP Stack and it's been working fine until yesterday when a script responsible for sending OTPs via email no longer worked. Upon further investigation, it seemed that PHP wasn't running at all.
When I hit the…

Razgriz
- 113
- 1
- 6
0
votes
0 answers
Apache2 not working with PHP
I have Apache2 running on a Debian 11 box (x64). It was installed with an Openmediavault ISO, with nginx and PHP 7.4 installed already (for the web UI) I try to install the PHP connector for apache2 (libapache2-mod-php7.4), and it installs fine, but…

EnderSlayer7692
- 1
- 1
0
votes
1 answer
apache2 with PHP-FPM truncating error_log messages
I have an apache2 server configured to serve multiple websites with php-fpm.
Each websites has a custom error_log file
ErrorLog "/var/log/apache2/error_log-example.com"
using the following php code

Luca Ricci
- 65
- 1
- 6
0
votes
0 answers
Wincache stops running, with PHP and IIS
I'm running PHP 7.2.22, with Wincache 2.0.0.8 on IIS 8.5, Windows Server 2012 R2. Everything runs well most of the time. But about every few days, Wincache stops running. PHP and everything else keeps running fine, and I only notice Wincache has…
0
votes
1 answer
php memory_limity = -1 not respected?
Debian bullseye, php 7.4. One of my cron jobs has the line:
30 1 * * * www-data /usr/bin/php /my/script.php > /dev/null
I'm getting the error
PHP Fatal error: Allowed memory size of 157286400 bytes exhausted (tried to allocate 49152 bytes) in…

Paolo Benvenuto
- 241
- 5
- 13
0
votes
1 answer
After upgrading Debian Buster to Bullseye, Wordpress sites no longer updating
Today I upgraded my webserver from Debian Buster to Bullseye and it was in fact a pretty straightforward upgrade. Everything seemed to work until I tried to reach a few WordPress sites on the server. At first I got some error about a missing MySQL…

Zippy1970
- 247
- 1
- 4
- 12
0
votes
1 answer
apache 2.4.6 site works on Debian 10 but not on CentOS - php 7 code
I have a bootstrap website that runs on Debian 10 - php 7.4.25, httpd 2.4.52, mysqld 15.1 Distrib 10.5.12 which works perfectly.
I copied it to my CentOS 7 box, which has selinux running as permissive (temporarily). Php version is 7.4.26, Apache…

kathyl
- 1
- 1
0
votes
0 answers
HTTPS POST-Request fails in connection with Content-Length
A PHP application posts XML data with curl; nothing fancy, the output looking like (c/p, but identifiers and passwords changed):
Host: foreign.host.example
Authorization: Basic dGVzdDpnZWhlaW0=
User-Agent: ourhost HTTP-connector/1.0
Accept:…

SlowFox
- 11
- 2
0
votes
1 answer
Nginx php-fpm 1 of 3 pools not working: returns stat() failed (13: Permission denied)
I have nginx with 3 pools for php7.4-fpm - one for each of 3 users on the system as they have their own apps and files. The setup of all 3 is completely identical, but the recently added one has some permission problem.
Browser returns error 404 -…

lion
- 13
- 6
0
votes
0 answers
AWS Lightsail LAMP PHP7 mod-rewrite
I just installed a fresh AWS Lightsail LAMP stack with php7.4 and a lets encrypt ssl
Docs say Mod-rewrite is installed/enabled by default however I get a 404 when I go to any url on my site that is domain.com/contact but of course…

Jayreis
- 145
- 15
0
votes
0 answers
Page Loads Error
In my production Environment I'm observing a sporadic issue where pages are taking a long time to load. In the error logs we are seeing:
PHP Fatal error: Maximum execution time of 30 seconds exceeded
The affected line is where a session is being…

Santosh Baruah
- 21
- 6
0
votes
1 answer
PHP5 to PHP7 unexpected increase in memory usage inside container
Last week we updated several wordpress sites which are running Alpine Linux as containers inside a host (Ubuntu 20.04) through LXD.
A summary of the update is as follows:
Alpine Linux v3.8 -> 3.14
PHP 5.3.6 -> 7.4.24
Wordpress 5.0.3 ->…

lepe
- 469
- 2
- 6
- 25