Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
1
vote
1 answer
Centos 7.7 remove dupplicate php 7.2 version
I'm working with centos 7.7 and the client has provided me with a vm where they unawarely installed the same version of PHP, which is 7.2, two times in two different ways, one of which is by remi's repository, the other I'm not sure about probably…

Sukhdev Mohan
- 13
- 3
1
vote
0 answers
Passing REQUEST_URI php-fm after a rewrite in Apache
We are trying to migrate an installation to Apache event engine replacing mod_php for PHP-FPM.
We have a large an complex list of rewrites performed by apache from old urls and also to produce SEO friendly URLs as in:
#Ej:…

luison
- 282
- 1
- 7
- 22
1
vote
0 answers
install php5 but keep php7
I have upgraded, built a new one, my server (Ubuntu 18.04.6) which is running PHP Version 7.2.
I would like to install PHP5 and keep PHP7 and have the option to switch back and forth. Have a site that runs php5 that I only need up for a short time,…

tpage
- 11
- 2
1
vote
2 answers
PHP files displayed as text
When I want to execute a php file it's displayed as text in my browser.
I have a VPS at Hostinger I installed Ubuntu 18.04 with Webmin and LAMP(installed automatically).
I checked the installation see below.
apache2 - v and php -v gives me:…

adamanyn
- 11
- 1
- 2
- 5
1
vote
1 answer
How to enable argon2 for php from centos software collections?
I moved a nextcloud installation from one server to another. On the new server I want to use another version of PHP. The problem is that the passwords are hashed with the argon2 algorithm (in the tables oc_users and oc_share in the nextcloud…

Lucas
- 193
- 1
- 10
1
vote
1 answer
Constant problems with php-fpm, CPU usage 100% non-stop (No visitors even)
We are running two servers one for the application and one for the DB and some other software to keep the load off from the application's server, we are running CentOS and the latest version of PHP (7.3), Nginx (1.17.9), Percona MySQL (5.7), Redis,…

Ibrahim S
- 11
- 1
- 3
0
votes
1 answer
Fail2ban - apache-noscript.conf Filter not working
Every night bots try to penetrate my Apache Server:
/var/log/apache2/error.log
Output:
[Mon Dec 30 02:55:39.098671 2019] [php7:error] [pid 14930] [client xxx.xxx.xxx.xxx:62420] script '/var/www/html/test.php' not found or unable to stat
I would…

Gill-Bates
- 585
- 2
- 8
- 23
0
votes
1 answer
Passing environment variables to httpd in centos 7
In my previous Centos 6.10 server , I have been able to pass some environment variables to httpd by adding to /etc/sysconfig/httpd
. ~/.envvars
.envvars content is
export MY_PASSWORD='somepassword'
and then in http.conf
SetEnv MY_PASSWORD…

elarichi.y
- 1
- 3
0
votes
1 answer
can php-fpm restart processes based on memory use?
The max_requests setting is often used to remove processes that may end up using more memory than usual.
Is it possible to configure php-fpm so it will remove the processes that use the most memory first?
Without doing that it may be necessary to…

user29745
- 159
- 1
- 7
0
votes
1 answer
Entering non-existent folders in Ubuntu (Apache)
I have a Ubuntu server with Apache installed on it.
When I login to my site:
mysite.com/folder/index.php
It works as expected.
Then, by chance I discovered that I could enter:
mysite.com/folder/index.php/anythinghere
And get the same page…

alex555
- 3
- 1
0
votes
0 answers
nginx php7.3 files download instead of execute - no .sock file to pass to php-fpm
I've already tried multiple configurations in the nginx.conf.default file as referenced here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them
Here is what my nginx.conf.default looks…

Anthony Spano
- 41
- 1
- 3
0
votes
0 answers
PHP and Nginx won't show index.php
I tried to host WordPress Directory but it didn't work.
So i tried to get a simple index.php with phpinfo() in it to run.
But if i try to access it, i get a blank site with the Words "File not found."
My Nginx Error Log says:
*12 FastCGI sent in…

Subby
- 13
- 1
- 4
0
votes
1 answer
Restrict browser access to one IP address in httpd.conf for PHP scripts
My objective is for only IP 1.2.3.4 to be allowed to run the /dir1/hello-php.php script.
'Out-of-the-box' AWS EC2 linux 2 apache 2.4.39 (with only the changes below), PHP 5.7.26, and using Firefox 70.0 64-bit on Windows 10. php.conf also has default…

krot
- 13
- 1
- 5
0
votes
0 answers
PHP / x64 Windows Core Error 16 / E_CORE_ERROR
Using Xdebug on Windows x64 with both versions 7.2.6 and 7.3.10 of PHP on my local development machine I'm receiving a vague E_CORE_ERROR in certain situations. The error_get_last() function returns nothing. According to PHP's Predefined Constants…

John
- 134
- 10
0
votes
0 answers
How to install PHP 7 on Oracle Linux?
I have Oracle Linux 7.7 instance on Oracle cloud.
I want to install PHP 7.2 on it.
Previously I have installed PHP 7 on different Linux flavors but I could not find proper documentation, tutorial or how to guide for Oracle Linux.
I have installed…

Silkograph
- 197
- 3
- 14