Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
0
votes
0 answers
Segmentation fault detected in apache error log
I have this problem on my Ubuntu Server:
Problem
Some time my sites are not reachable from the browser and I can see a "Time Out Error", however the server replies to PING requests. I checked the error.log file ~ 50MB of data similar to the…

Nick
- 1
- 2
0
votes
0 answers
php 7 on Fedora 27: Uncaught Error: Call to undefined function sqlsrv_connect()
I have installed sqlsrv & pdo_sqlsrv per
https://github.com/Microsoft/msphpsql/tree/PHP-7.0-Linux
I created a test program that works perfectly from the command line but not when viewed in a web page.
If I put…

faultintolerant
- 23
- 3
0
votes
2 answers
php -v command not found but getting phpinfo();
I have installed php and in cmd on doing
sudo /usr/local/php7/bin/php -v
it shows the php version but on doing
php -v
its not showing getting us command not my phpinfo() also workd
how can I point to get php version on simply doing php -v
I…

fernandus
- 143
- 1
- 9
0
votes
1 answer
Upgrading simply from php 5.6.x to 7.x on CentOS 7 with Nginx and php-fpm
I am trying to upgrade the PHP version on a Digital Ocean server from 5.6.19 to the latest PHP 7.2. A lot of instructions found online point to "php72", which makes me wonder if 5.6.19 will be seamlessly replaced with a yum update php. I doubt it.…

Khom Nazid
- 146
- 1
- 9
0
votes
1 answer
Combine 2 spf records into 1
I have 2 spf records for my email example.com
The first one is from my hosting provider. I DO send and receive email through my hosting provider. Emails from here do not go to spam.
"v=spf1 ?include:custspf.register.com"
Second SPF is for my digital…

Mike Meidl
- 115
- 1
- 8
0
votes
2 answers
PHP Upload_max_filesize for different domains?
I have various domains hosted on one server - however they all seem to load from the same PHP.ini. I want the different domains to be able to upload different filesizes, for instance, our public facing website should have a very low filesize as…

Chud37
- 123
- 1
- 7
0
votes
1 answer
Error: Package: libmemcached-opt-libs Requires: libevent2
When I try to run yum update it says libmemcached-opt-libs requires libevent2 but I couldn't find how to install libevent2. When I try yum install libevent2 I get No package libevent2 available message.
Does Anyone has similiar issue on libmemcache…

freedom_mine
- 3
- 2
0
votes
1 answer
httpd24 by scl doesn't render php
I have installed httpd24 with php72 by scl in a CentOS 6.10 x86-64 environment. But Apache doesn't render php files and display them as text.
Installed php using,
yum install php72-php php72-php-iconv php72-php-mbstring php72-php-curl…

Damith
- 109
- 7
0
votes
0 answers
php-fpm status shows listen queue 0 when it is delaying requests
I have a php-fpm server running on a high-traffic website (behind nginx). It is frequently reaching a point where the active processes are equal to the maximum number of processes, which is the most that the server's memory will allow.
When this…

user29745
- 159
- 1
- 7
0
votes
0 answers
Change source file still leads to crash even with cache
Setup: Wordpress with WordFence on Nginx with FastCGI enabled + PHP7.0 with opcache enabled (validate timestamps is false)
Story: With the above setup and confirmed that both FastCGI has HTML cached and PHP Opcache have all PHP files cached or so I…

Kalman
- 71
- 1
- 4
0
votes
1 answer
How big of an impact requests per second and memory consumption can have on costs
Gentlemen,
We are in a bit of a debate here. An old one, php framework or no framework. We ran some tests and core php clearly takes the lead in handing requests per second and better memory consumption.
We are building an enterprise level micro…

Shahzaib
- 1
0
votes
0 answers
Increase in memory utilization after upgrading to httpd 2.4.34 from 2.4.23 for 7.2
We upgraded from httpd 2.4.23 to 2.4.32 . After upgrade, we noticed mpm module got changed from preforx to event in 2.4.23
$ /apps/httpd.2.4.23/bin/httpd -M | grep mpm
mpm_prefork_module (static
$ /apps/httpd-2.4.34/bin/httpd -M | grep…

Zama Ques
- 523
- 1
- 9
- 24
0
votes
0 answers
Increase amount of PHP processes executed by Apache from the same client
We have an apache server setup with PHP 7.1 on it.
It's sole job is to receive and process requests from another server that is sending XML files for processing. This server can send upwards of 20 XML's per second in parallel.
However our receiving…

Mark Cameron
- 101
- 1
0
votes
1 answer
Cannot find php-fpm to for PHP 7.2 to install on Centos 7.5
Have created a new VM server for a project, it is running Centos 7.5. After following a large number of different articles online to try and get nginx and PHP 7.2 running on this box I cannot get the correct version of PHP or the PHP-FPM module to…

tip2tail
- 103
- 5
0
votes
2 answers
Nginx - How to do two layers of GEO Redirection?
I am trying to redirect visitors based on two conditions, one based on the continent, and then based on their country, here are the current maps that I came up with eventually:
## GeoIP Redirection
map $geoip_city_continent_code $closest_server {
…

Ibrahim S
- 11
- 1
- 3