Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
0
votes
1 answer
Apache Link to PHP run application/x-httpd-php *
For example: I create a Link to PHP script file to file.php . When I open file online I get the PHP script not exaple. If I open file.php I get exaple.
I have tried if .htaccess works. I made file.html

Wobbo
- 1
- 2
0
votes
1 answer
Apache - Loading is very slow after inactivity. Most states of connections are in K - KeepAlive
I enabled the apache status module, and saw that most of the connections on the apache scoreboard are showing a "K" value.
On my server, when I enable KeepAlive, during inactivity it takes a while to access the pages, then it gets fast.
I checked…
0
votes
1 answer
Accidently deleted opt/ folder missing lib librh-php72-php7.so
I accidentally deleted my opt folder. By reinstalling the missing software, i get most of the stuff running. However /opt/rh/httpd24/root/etc/httpd/modules/librh-php72-php7.so is still missing for httpd and reinstalling rh-php72-php doesn't help.

Yann
- 25
- 7
0
votes
2 answers
Why a PHP module is not loaded into PHP?
Showing my case how to debug the problem, that a PHP module is not loaded into PHP.
I use OpenSUSE v42.2 Linux OS, with Apache webserver, PHP v7.1, Mysql.
Because it does not provide PHP v7.1 I need, I built PHP v7.1 from source.
Using PHP-FPM.
I…

klor
- 344
- 4
- 8
- 25
0
votes
1 answer
Trying to install php 7.3 with httpd 2.4 on centos 6
I have CentOS6-equivalent systems (Amazon Linux original, not Linux 2) that I upgraded to Apache httpd 2.4.
Now I want to upgrade PHP from 7.1 to 7.3.
As far as I can tell, the Remi repo only provides an httpd libphp for 2.2, not 2.4.
Attempting to…

DanF
- 1
- 1
0
votes
1 answer
How can I set PHP 7.2 under Debian 10?
I'm trying to install phpBB and am getting that PHP 7.3 is too new to be supported, with a suggestion of downgrading to 7.2.
Am I correct that I want to downgrade PHP to 7.2, and if so, what are the preferred methods? aptitude does not appear to…

Christos Hayward
- 1,162
- 3
- 16
- 35
0
votes
2 answers
Uploads failing with no reason
I've been trying to discover a problem on my webserver which simply makes the upload of files fail. I also created a simply php script to test the upload, and when uploading it fails but I don't get any sort error or log message. The file I've been…

Claudio
- 111
- 3
0
votes
0 answers
Unable to install mbstring for php7.1 on server running multiple PHP versions
My Centos6 webserver is running php 5.6 and php 7.1 (webmin/virtualmin). I already have mbstring installed for php 5.6, but I also need it for 7.1.
When I do yum install php71w-mbstring I get the following error:
Error: php71w-common conflicts with…

Ryan Griggs
- 963
- 2
- 14
- 29
0
votes
1 answer
Install php extension for php 7.3 on centos 6
I have used,
yum install php-pecl-zip
Im getting the following error,
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.snu.edu.in
* epel: epel.dionipe.id
*…

Saravanan
- 123
- 1
- 2
- 9
0
votes
0 answers
Wordpress website hosted on nginx ubuntu isn't loading anymore
I just found out the Wordpress website isn't running anymore. When opening example.in, it simply shows the text Error establishing a database connection. The wp website is the folder /var/www/examplewp
I have other non-PHP based websites running…

Nikita Gupta
- 113
- 4
0
votes
0 answers
PHP not loading specific extension if relative path is specified
I have a specific extension that won't load if I specific a relative path in the extension_dir parameter. If I specify an absolute path it gets loaded. I can't use absolute path because I often need to move the webserver location and would be…

Mark
- 111
- 3
0
votes
0 answers
continous session error messages on fresh cacti 1.2.12 install
I've just installed cacti-1.2.12 from source on a Centos 8.
After completed the installation, always that I change among tabs, cacti logs show:
2020-05-07 19:28:17 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(),…

Fredegar
- 1
- 1
0
votes
2 answers
Apache logs HTTP 408 error, client seems to lose PHP session
I'm struggling with a strange issue that "logs out" users and seems to happen about ten times a day.
The application is an old PHP project. Clients log in; a PHP session is established. Sometimes if a client does nothing for e.g. 2 hours and…

Daniel
- 3,047
- 5
- 22
- 27
0
votes
0 answers
php and ssl on ubuntu 18.04
When running $fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30); I get a 500 internal server error and it fails completely.
When running $fp = fsockopen ('https://www.sandbox.paypal.com', 443, $errno, $errstr, 30); I get an…

Amos
- 257
- 3
- 4
- 10
0
votes
1 answer
php 7.4 mysqli pointing to wrong path
I recently updated to php 7.4 from php 7.3 on Debian and it seems apache is pointing mysqli to older path. How do I figure out from where it's causing issue?
Error -
[Mon Apr 06 07:22:13.384517 2020] [mpm_prefork:notice] [pid 17446] AH00169:…

Alex
- 1