Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

350 questions
5
votes
3 answers

How to set date.timezone and what is the correct place to do it

(I'm trying to deploy an open source php project to nginx. The project itself does not matter.) I need to set date.timezone to my local timezone because the project uses a global setting. I found a line in my php.ini (at /etc/php/7.0/fpm/php.ini…
nosh
  • 153
  • 1
  • 1
  • 4
5
votes
3 answers

PHP 7.2.8 PDO Fails to Connect to MySQL 8.0.12 (GA) in AWS EC2 LEMP Stack

I'm testing a new LEMP webserver built with Ubuntu Server 18.04 LTS, NGINX 1.14, PHP 7.2.8, and MySQL 8.0.12. It is an AWS EC2 instance using the official Canonical AMI. Web and PHP work as intended aside from database connection. But I cannot…
HumanJHawkins
  • 450
  • 1
  • 4
  • 11
5
votes
2 answers

How to test php-fpm configuration (PHP7.0)

I am running a webserver with Ubuntu 16 and php-fpm to process PHP requests. php-fpm has been installed via apt-get from the default Ubuntu repositories. According to this reference I should be able to run php-fpm -t to test the configuration.…
BurninLeo
  • 900
  • 3
  • 12
  • 30
5
votes
3 answers

How do I start php7.0-fpm with supervisord?

I am trying to build a dockerized ubuntu 16.04lts with apache2 and nginx with php7.0-fpm Commands I have used but did not work [program:php-fpm7.0] command = /usr/sbin/php-fpm7.0 --daemonize --fpm-config…
uberrebu
  • 503
  • 6
  • 17
  • 36
5
votes
1 answer

Php 7 opcache v php 5.6 xcache

We're provisioning a new server and are deciding between (php7 / opcache) and (php5.6 / xcache). We run a few chunky ecommerce sites and want the best possible performance. I'm looking for comparative results between the two, but cant find any…
Tim
  • 53
  • 1
  • 4
4
votes
0 answers

Getting error “PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException” on AWS server

I am getting following error in error_log after moving the site (developed in Magento ver. 2.3.2) on new server (AWS Server): PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException: Host "[IP ADDRESS]" is not valid or is not…
4
votes
1 answer

grant PHP permission to allocate executable memory

I received this message during an iTop installation. If you google this, it appears on commercial websites above their content. Warning: filter_var(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely because of security…
Anthony Spano
  • 41
  • 1
  • 3
4
votes
1 answer

PHP 7.2 yum installation on Centos 7 misses libargon2.so

Command: yum install php php-cli php-gd php-curl php-mysql php-zip php-fileinfo php-mbstring Gives following error: Error: Package: php-cli-7.2.12-1.el7.remi.x86_64 (remi-php72) Requires: libargon2.so.0()(64bit) Error: Package:…
Rauli Rajande
  • 153
  • 1
  • 2
  • 6
4
votes
1 answer

Apache2 + Varnish 5 + phpmyadmin causes Segmentation fault (11) - ERR_EMPTY_RESPONSE

I setup up everything the varnish book recommends for a webserver (Debian 8 (jessie), 8 GB Memory, 100GB SSD, Mysql 5.7, PHP 70.13, Apache2, opcache (256M)). Varnish uses 256 MB of RAM, Apache has no restrictions in how many workers should be used…
Steve
  • 61
  • 6
4
votes
5 answers

PHP "mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0"

I have been trying to get PHP CLI (7.0.7 on Ubuntu) working together with mysqli, but without success. I keep getting the same error message when starting it: mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0 This is some of the…
fgblomqvist
  • 151
  • 1
  • 1
  • 5
4
votes
2 answers

PHP/FPM/Nginx Issue: Runs fine for a hours, then maxes FPM children in a matter of seconds, resulting in 502 errors

We recently migrated a long running (without issue) Ubuntu 16.04 / nginx (1.10.3) / PHP 7.0 stack over to an Ubuntu 18.04 / nginx (1.14.0) / PHP 7.2 stack. The result has caused instability at the PHP-FPM level which never existed before, and hours…
Slickrick12
  • 141
  • 1
  • 5
4
votes
1 answer

MediaWiki Issue - PHP Notice: Trying to access array offset on value of type null in .../SectionProfiler.php

I'm using: MediaWiki 1.30.0 PHP 7.4.1 (apache2handler) MariaDB 10.3.21-MariaDB-1:10.3.21+maria~jessie I get this error a lot on the log: -PHP Notice: Trying to access array offset on value of type null in…
3
votes
1 answer

"phpsessionclean" systemd service won't run on Ubuntu 18.04 (after update from Ubuntu 14.04)

After we updated all of our legacy Ubuntu 14 servers to Ubuntu 18, the PHP session files stopped getting cleaned up. I am not sure this is caused by the upgrade itself, but all of our other servers that were either created as Ubuntu 18, or upgraded…
Vojta Hejda
  • 41
  • 1
  • 3
3
votes
1 answer

PHP7.3-FPM with Apache: Unknown script request execution timed out

I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows: Timeout 90 ProxySet disablereuse=on timeout=90 SetHandler…
3
votes
1 answer

PHP's MemcacheD extension DLL for Windows

On my PHP 5.6 site I have been using the Memcache extension to interface with the memcached daemon. As the extension has a matching DLL, it meant I could deploy it on my Windows dev machine as well and all was good. This extension has been abandoned…
BeetleJuice
  • 411
  • 2
  • 4
  • 12
1
2
3
23 24