Use this tag for questions specific to PHP version 7.
Questions tagged [php7]
350 questions
1
vote
1 answer
IIS8 PHP7 multiple php websites
I'm running PHP7 on IIS8 on Windows Server 2012 R2. Up to yesterday everything was fine as I only had 1 PHP website hosted, I started to host a second website and now php works on only one website at a time.
If I restart IIS and visit one website…

James
- 203
- 1
- 8
1
vote
1 answer
502 Bad Gateway when trying to write session with PHP and nginx on a debian vagrant box
I'm using a Vagrant box with Debian 8.5 with the following stuff packages.
tmux curl wget nginx php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-memcached memcached php-mbstring php-xml mariadb-server nodejs git unzip…

Musterknabe
- 71
- 1
- 9
1
vote
2 answers
pecl install pecl_http fails - upgrading to php7 and http.so makes trouble
Similar issue: pecl_http failed to load
So I wanted to upgrade to PHP7.0 and I believed all was fine. But I think I was missing somepages packages because i.e. I was not able to login into my ownCloud. So I wanted to install pecl_http with:
pecl…

kwoxer
- 150
- 1
- 2
- 10
1
vote
0 answers
Apache returns 404 on folder with non-ascii characters
When trying to access images that are in folders that contains non-ascii characters, server returns with 404.
Weird thing is that if I do:
mv /path/to/dir/ščž /path/to/dir/scz
and then do reverse thing:
mv /path/to/dir/scz /path/to/dir/ščž
It's…

c4rrt3r
- 111
- 1
1
vote
1 answer
Install apache 2.4 and php7 on centos 6
I would need to install / compile apache 2.4 and PHP7 to work together on Centos 6 (specifically on 6.5). I've tried the ius packages, but while apache 2.4 works correctly, it seems that php7 still depends on apache 2.2. By trying to compile php7 by…

Bertuz
- 125
- 1
- 6
1
vote
1 answer
PHP 7 and 5.6 parallel in Nginx
I want to use PHP 7 with newer apps and PHP 5.6 with apps, that doesn't work with PHP 7. So I try to configure Nginx to enable different PHP versions for different pathes. But it doesn't work:
# should enable PHP5 for all PHP-scripts under /vexim/…

Michael
- 345
- 6
- 19
1
vote
1 answer
Zend Framework on PHP 7
I've recently upgraded my server to use PHP 7.0. However following this upgrade, I noticed that my web application wasn't working. I looked in my apache2 error.log file and found this error:
PHP Fatal error: Uncaught Error: Class…

T Smith
- 31
- 4
1
vote
1 answer
php -v returns command not found after installation
I downloaded the latest stable php 7 release.
installed all dependencies
then:
./buildconf
./configure \
--prefix=$HOME/php7/usr \
--with-config-file-path=$HOME/php7/usr/etc \
--enable-mbstring \
--enable-zip \
--enable-bcmath…

Abel
- 21
- 1
- 1
- 3
1
vote
1 answer
Service php-fpm does not get user permissions
I have an issue with php-fpm. It is actually the php7 version. I have drupal and it will complain that some directory is not writtable. Only if I start php-fpm as a service like that:
#service php-fpm start
I am using nginx as web server and…

Cesc
- 191
- 9
1
vote
0 answers
Ondřej Surý's PPA - php7.4-xdebug also installs php8
OS: Ubuntu 20.04 focal (on the Windows Subsystem for Linux)
Kernel: x86_64 Linux 5.10.102.1-microsoft-standard-WSL2
Uptime: 1h 20m
Packages: 1612
Shell: bash 5.0.17
WM:
GTK Theme: Adwaita [GTK3]
Disk: 819G / 2.8T (30%)
CPU: Intel Celeron N5105 @ 4x…

Sylvester DeMouser
- 13
- 4
1
vote
0 answers
CentOS 7 with php-fpm renders raw PHP
Summary: My CentOS 7 server with PHP 7.4 fpm is not executing PHP files instead they provide a raw PHP file to the client. In the next section, I will explain the environment.
I have set up a minimal CentOS in a virtualbox.
The server has no apt,…

mercury
- 23
- 5
1
vote
0 answers
Upstream prematurely closed FastCGI stdout while reading response header from
I have a setup of nginx1.20.1 + php7.3.3 on Centos7. We run those VMs beneath google cloud load balancer. Sometimes, randomly there is 502 returned to the end client. I traced one of those error sources to the Nginx error log saying "upstream…

Tim
- 31
- 1
- 4
1
vote
0 answers
Octopus deployment causes 100% CPU usage in PHP-FPM
Environment: AWS
OS: GoldenImage-amazonLinuxV2-2021-01-04_19.43.07
Nginx: 1.20.0
PHP-FPM: 7.3.33
Octopus tentacle: 6.1.1351
The old method
So we currently use a simple push script to deploy a PHP site to 14 AWS EC2 instances. This script simply…

WeaponX86
- 33
- 3
1
vote
0 answers
unable to upgrade php in ubuntu 18.04
I am trying to update php from 7.2 to 7.4, but getting error. I am trying with the following command as root:
add-apt-repository ppa:ondrej/php
the error:
Error reading https://launchpad.net/api/1.0/~ondrej/ppas: [SSL: CERTIFICATE_VERIFY_FAILED]…

mk0222
- 11
- 1
1
vote
0 answers
PHP PDO Very Slow on Fetch
I have a problem with a couple of queries running in PDO on PHP connecting to MSSQL server 2019.
I have checked the time in SSMS and its fast.
I have also added some timers into my code so I can see the time to execute the query and the time to…

Charlie
- 21
- 4