Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

350 questions
0
votes
0 answers

PHP-FPM pools of a domain are working non stop

My server OS is centOS. I use Apache for httpd. Every site runs PHP by own user. One of my sites (let's say that 504domain.com) gives 504 gateway error constantly. Restarting Apache makes the site available for a day. Rarely all the other sites…
borayeris
  • 213
  • 1
  • 9
0
votes
1 answer

Unable to locate package php7.2-gd

I'm trying to install php7.2-gd on my production server. I have 2 servers -- one for dev and one for prod. When I run this installation in our dev server, everything is fine. When I tried doing this in our prod server, I'm getting the following…
primerg
  • 11
  • 2
  • 5
0
votes
1 answer

Error: php71w-common conflicts with php-common-5.4.16-45.el7.x86_64

I cant install php-bcmath via yum install php-bcmath because got this error message Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.netonboard.com * epel:…
Nurdin
  • 103
  • 1
  • 4
0
votes
1 answer

PHP 7 FPM checkconf is throwing invalid user: ‘www-data:www-data’, but I'm not using a www-data user

I'm using a different user for my web services. Screw convention. I don't have www-data set in any php config files: $ grep -rnw /etc -e 'www-data' $ But I'm still getting this error: $ journalctl -u php7.0-fpm php7.0-fpm-checkconf[19642]:…
ki9
  • 1,243
  • 1
  • 13
  • 19
0
votes
3 answers

nginx downloads php files instead of rendering them

I found a similar question here: https://stackoverflow.com/questions/25591040/nginx-serves-php-files-as-downloads-instead-of-executing-them But unfortunately the answer there doesn't help me. So here goes my story. What Works When I navigate to…
dot
  • 187
  • 2
  • 5
  • 11
0
votes
1 answer

PHP.ini custom session.save_path Permission denied

I use Centos 7 (latest update) Apache 2.4.6 PHP 7.2 I would like to change the directory where sessions stored on the server, the default directory is /var/lib/php/session/, I can use this directory without any problem, but when I change the…
Sinf
  • 43
  • 2
  • 7
0
votes
1 answer

IIS10 PHP 7.04 pass through and show everything

I'm using internet information server 10,and I have an error in php. I can't debug using "echo", because IIS10 cancel all the html render if an error has been…
NTalaM
  • 1
  • 1
0
votes
2 answers

Install multiple PHP on CentOS 6.10

I have PHP 7.0 on my VPS with CentOS 6.10 and there is an application that needs PHP 7.1 and above. Also, there's a separate application that uses a php function that is deprecated in PHP 7.1, so I need both PHP 7.0 and 7.1 I have the remi-php70 and…
NetworkNewbie
  • 135
  • 3
  • 9
0
votes
1 answer

CentOS 7 mysqli works on php apache but not on php-cli

I have php7.2 installed(from remi repository) in CentOS 7.5. I want to access mysqli from command line php. When trying, it shows the error: Call to undefined function mysqli_connect() The php running with apache works fine with mysqli. All…
sariDon
  • 101
  • 4
0
votes
1 answer

Can't upload larger files to server

I have a Ubuntu 16.04 server with apache 2.4 and php 7.1. The php.ini has the following settings: max_file_uploads 20 memory_limit 512M post_max_size 256M upload_max_filesize 128M Folder permissions are alright, plenty of free space on the…
0
votes
1 answer

PHP7 extensions aren't reading correctly from config file

I'm setting up a WordPress installation on my Windows server. I have an IIS site set up to look at the correct folder. Right now, in the folder is a php_info file so that I can see which PHP is installed. I personally installed PHP 7.2.8. However,…
drethedevjs
  • 101
  • 1
0
votes
1 answer

Raised PHP7.0-fpm capacity, still overloads

I'm at a loss here. I run a few dozen servers with all different amounts of traffic. As the traffic increased over time, some servers started crashing (502/503 errors) and I figured it was due the php configuration which was unchanged from…
Asitis
  • 97
  • 8
0
votes
0 answers

MSSQL Integration RHEL with Apache 2 and PHP Version 7.0.30

This was working correctly until my client decided to yum update everything without asking me. I've installed sqlsrv.so and pdo_sqlsrv.so to /etc/php.d/ PHP -m shows both modules loaded as does command line phpinfo.php Command line php works great…
0
votes
2 answers

How to reduce server load with Apache PHP

Our Linode server load has increased in the last month running CentOS 7. I have upgraded to MariaDB 10.3 with PHP 7.2 now on CentOS 7.5 with 16GB of ram and 6 cores. MariaDB also on the server using 5372.81 MB according to apache2buddy perl script.…
rwfitzy
  • 233
  • 5
  • 16
0
votes
1 answer

apache php7 session.save_path always point to /path

I configured correctly in /etc/php/7.0/apache2/php.ini session.save_path = "/tmp/N;MODE;/" But I am always getting the same error Warning: session_start(): open(/path/sess_1ev4h097ni146fk3uuog5otpa1, O_RDWR) failed: Permission denied Whatever i…