Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

0
votes
0answers
7 views

Trying to update PHP servers to PHP7-cgi (7.2)

I'm Trying to update PHP servers to php7-cgi (7.2) in my .htaccess file. Just not sure how exactly to edit the code, haven't been able to get it to work. Here is the code in the .htaccess file: ...
0
votes
0answers
15 views

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 ...
1
vote
0answers
23 views

Browser downloading PHP files instead of executing them. Webmin + NGinx

The Problem I attempted to upgrade from PHP 7.0 to 7.2 today and it resulted in websites on the server downloading through the browser instead of executing like normal. sudo add-apt-repository ppa:...
3
votes
1answer
209 views

How can I remove EPEL 7.0 repo from CentOS 6.5 install?

While trying to update PHP 5.4 to 7.2, libcurl package update showing epel 7 is installed. How can I remove this from centos 6 and install epel 6.8?
0
votes
1answer
19 views

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 ...
1
vote
2answers
94 views

understand correctly pm.max_children tuning

I have done some investigations and I have found this to calculate and adjust pm.max_children value https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/ but for example : ...
0
votes
0answers
28 views

how to install PHP-FPM Intl extension on Linux CentOS 6.9

I'm trying to install php "intl" extension using SSH commands, can anybody help please? My server is Linux, CentOS 6.9, Nginx, php-fpm 7.0.19, MariaDB # yum list php*intl Loaded plugins: ...
0
votes
2answers
31 views

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 ...
0
votes
0answers
26 views

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 ...
0
votes
1answer
157 views

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 ...
1
vote
1answer
18 views

Let PHP-FPM report the script's current line number on timeout

My website is running successfully on PHP-FPM with NGINX on Debian. Timeout period is set at 300 seconds for NGINX. This is enough for most pages, but some scripts get stuck. I can't reproduce the ...
-1
votes
0answers
25 views

apache automatically changes php version

every time I use phpinfo() on my website it shows me different versions of php. the versions are: 7.0.30 7.0.32 when it shows 7.0.30 website is using an expired ssl certificate (I have deleted this ...
1
vote
1answer
190 views

Docker - PHP 7.2 FPM Alpine - Imagick

I'm using Docker image php:7.2-fpm-alpine as base image with following command to install Imagick: RUN apk add --update --no-cache autoconf g++ imagemagick-dev libtool make pcre-dev \ && ...
0
votes
0answers
43 views

How to tell Apache 2.4 / PHP 7 where php.ini is

I am setting up an Apache 2.4 server and PHP 7 on a Windows 10 laptop to migrate some websites from PHP 5.6 to 7.x. Apache is in c:\apache24, PHP is in c:\php (running as a module). php.ini is also ...
0
votes
1answer
478 views

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 * ...
0
votes
0answers
10 views

Apache ErrorLog - files are empty

I've set up a new CentOS server recently running Apache 2.4. I've installed PHP 7.2 but I'm unable to get errors to log to the locations specified in my Apache config file: <VirtualHost *:80> ...
0
votes
0answers
39 views

Upgraded PHP 7.2 successfully but issue with Cache Refresh / Memacache in Centos

As I have upgraded upgraded PHP 5.4 to PHP 7.2 in centos by using following commands. I have successfully upgrade to php 7.2 Due to some reason cache is not updating. I have custom clear cache ...
1
vote
1answer
24 views

CentOS 7 + PHP7 — php not rendering in browser

I have a clean install of apache/httpd and php7.1.0 running on CentOS 7. When I execute from the command line: httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Jun 27 2018 13:48:59 ...
0
votes
1answer
11 views

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: $ ...
0
votes
2answers
182 views

Upgrading PHP 5.3 to 7.x on CentOS 6.10 (final) - Unmet Dependencies

I am a bit rusty these days and could use some help. I've cracked opened a few old servers and have started the process of dusting them off. In the process I'm updating things like PHP. I regret to ...
0
votes
1answer
53 views

PHP 7 FPM slow log file location

In my www.conf file, there is this line: slowlog = log/$pool.log.slow Where is that on Ubuntu?
1
vote
2answers
30 views

PHP 7.2 session path does not change on Windows Server 2016

I tried to changed the session path for PHP 7.2 on a Windows Server 2016 but the phpinfo shows only the default path to the windows temp folder. PHP 7.2 was installed by the webplatform installer. ...
-2
votes
1answer
233 views

Centos 7 curl HTTPS error (1)

I start listing my specs: CentOS Linux release 7.5.1804 (Core) # curl -V curl 7.61.1 (x86_64-pc-linux-gnu) libcurl/7.61.1 Release-Date: 2018-09-05 Protocols: dict file ftp gopher http imap pop3 rtsp ...
0
votes
0answers
45 views

how to have index.php on root and subdirectory with nginx

I have two index.php files that I want to serve on my nginx server. One of them is in the root directory and the other one is in a subdirectory under root. The root one works just fine but nginx only ...
0
votes
3answers
115 views

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 ...
-1
votes
0answers
17 views

'error_prepend_string' and 'error_append_string' ignored in PHP 7 (with display_errors = On)?

Am I missing something? Here is part of my php.ini file: error_reporting = E_ALL display_errors = On html_errors = Off error_prepend_string = "<div style=""background-color:red;color:white"">" ...
2
votes
2answers
464 views

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 ...
-1
votes
1answer
126 views

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 ...
0
votes
1answer
12 views

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 found. PHP.ini: cgifix_pathinfo=1 ...
0
votes
1answer
38 views

HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occured

I am trying to make PHP 7.2.9 run with IIS7 on my Windows 7 Service Pack 1 OS and I keep getting the following error whenever I try to run http://localhost/phpinfo.php. I can see the IIS running with ...
0
votes
0answers
62 views

How to install actual php7's fast-cgi for apache2

Following a couple of tutorials to achieve the main goal -setting up PHP-FPM on Ubuntu 16 - I also had to install the FastCgi-Module for Apache 2.4.18 with apt-get install libapache2-mod-fastcgi. ...
-1
votes
1answer
28 views

Will apt-get upgrade modify symlinks? For example libphp7 symlinked instead of libphp5 under /etc/alternatives

I performed sudo apt-get upgrade. $ sudo apt-get upgrade After the upgrade, I noticed some php 5.7 files and folders in the etc directory For example: I saw /usr/bin/php7.1 and /etc/php/7.0, 7.1, 7....
0
votes
2answers
292 views

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 ...
0
votes
1answer
176 views

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 ...
0
votes
1answer
33 views

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 ...
0
votes
0answers
136 views

Laravel app usages more than 90% CPU resources for only 100 concurrent users

I have migrated the existing application from core php to laravel framework. But the laravel application usage more than 90% cpu for the 100 concurrent users but the same application developed in core ...
0
votes
0answers
118 views

PHP for redis not loading

Trying to get REDIS client installed correctly for use on a debian linux install. I installed redis client with PECL. When I run PHP -m from the command line it shows that the redis client is loaded ...
-1
votes
1answer
51 views

Redirect Incoming Request to Specific Servers Based on Incoming IP Address

Load Balancing: My question is related to this but provides very little info: How to redirect to different servers based on login username? I have three (3) cloud servers at the same data center. The ...
0
votes
1answer
19 views

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 ...
2
votes
3answers
1k views

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 ...
0
votes
0answers
9 views

php takes load of resources loading php.ini [duplicate]

I have weird issue in my server. php takes a lot of resources when trying to open php.ini (CPU 197%) the php process is triggered by apache when apache trying to load configuration files (i.e. ...
0
votes
0answers
671 views

PHP - Ubuntu 18.04: maximum upload limit is always 10Mo

I have a Moodle 3.5 (based on php) website and I want to increase the size of files I can upload. I updated the values of php.ini serttings file but when I try to upload any file bigger then 10Mo I ...
0
votes
1answer
32 views

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 ...
0
votes
0answers
92 views

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 ...
0
votes
0answers
65 views

Windows apache service cannot find PHP modules, while httpd can

I'm installing apache on a Windows environment and have gotten httpd.exe installed, and I have set up apache as a service. When I run httpd.exe I'm getting no problems, but when I use net start apache,...
2
votes
1answer
128 views

Servers crash with 3000 concurrent clients - how to config it right? PHP & Apache

I've 4 web servers, 2 database servers (read & write), Redis and a load balancer. I'm using PHP 7.0 & Apache2 & MySQL 5.7, however when I do load tests with 3000 users which surf at the ...
0
votes
0answers
263 views

Apache 2.4 + PHP - mod_php not installed

I am building a new LAMP server on a fresh Centos 7 box. I installed PHP 7.2 then Apache 2. mod_php was not automatically installed. Do you have to install Apache first and then PHP to ensure this ...
0
votes
1answer
1k views

Enabling sqlite3 in php7

I want to enable sqlite3 in php.ini but when I try to load a PHP script this error happens: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/sqlite.so' - /usr/lib/php/...
1
vote
0answers
96 views

php.net discourages the use of threaded MPM in production with Apache 2

php.net discourages the use of threaded MPM in production with Apache 2. Use the prefork MPM, which is the default MPM with Apache 2.0 and 2.2. It doesn't mention anything about apache 2.4, I ...
1
vote
1answer
71 views

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is ...