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.

-1
votes
0answers
8 views

PHP script not working if file contains html [on hold]

I got a file called download.php that automatically downloads a file: <?php function startDownload() { $downloadpath = "/var/www/files/file1.txt"; header('Content-Description: File ...
0
votes
0answers
7 views

Getting PHP to execute unoconv on linux machine [closed]

I'm trying to convert word documents into PDF using unoconv in PHP. When I run the following command in CLI it works properly without any error: export HOME=/tmp/converts && unoconv -f pdf -o ...
1
vote
0answers
57 views

PHP 7.2 - Apache 2.4 memory limit issue

We are running Ubuntu 16.04 LTS with Apache 2.4 and PHP 7.2. 9 times out of 10, the web app works well, but at a random interval, we come across this error message. "Allowed memory of 134217728 bytes ...
0
votes
1answer
55 views

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

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

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

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

How big of an impact requests per second and memory consumption can have on costs [duplicate]

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

Lost permission to sites on Debian 8, Apache2, VPS

I'm hoping someone can help me. I installed a default server installatin using Debian 8 and Apache2. It has PHP5.6, 7.0, 7.1, and I just added 7.2. I realized that php-zip wasn't installed so I ...
0
votes
1answer
65 views

What is PHP7 error “not found or unable to stat”?

I am receiving the following error log on my apache2 server: [Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to ...
0
votes
2answers
488 views

Unable to install PHP 7.3 on Centos 7

I have a server currently running CentOS 7.6 and PHP 7.1.25. I want to update my PHP version to 7.3 (released on 6 Dec) but I'm having some troubles. I followed this guide but when I run yum update, ...
2
votes
1answer
111 views

What is causing Google App Engine 504 Gateway Timeout Every 10 minutes or so?

I just migrated our production website over to Google App Engine last night, and now the app starts giving a 504 Gateway Timeout after about 10-15 minutes of inactivity. But I've been running a test ...
0
votes
0answers
27 views

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

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

Nginx serving PHP file as download [duplicate]

I have a website with an index.php file (rhys.ddns.net/php/index.php). Whenever I try to access said file in my browser it is getting served as a download. I have checked my sites-enabled/default file ...
0
votes
0answers
42 views

Amazon Linux ODBC driver not working

I've installed the ODBC driver and the sqlsrv regular and PDO PHP extension versions on my Amazon Linux machine. When I execute the following command, I get a confirmation that the driver is installed....
1
vote
0answers
37 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
32 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
1answer
141 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
270 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
163 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
231 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 : ...
-1
votes
0answers
72 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
36 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
46 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
546 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
22 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 ...
2
votes
1answer
685 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
72 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
1k 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
11 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
126 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
47 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
27 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
563 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
143 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
44 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
431 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
54 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
219 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 ...
2
votes
2answers
1k 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
249 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
70 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
164 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
34 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
631 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
205 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
49 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
187 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 ...