Questions tagged [php7]

Use this tag for questions specific to PHP version 7.

350 questions
3
votes
1 answer

How to downgrade PHP from 7.2 to 7.0

I am running CentOS 7.4 and HTTP 2.4.6 I installed PHP 7.2.3 I know need to downgrade to 7.0 (reason is software company initially told me to install latest/stable for PHP and now they tell me 7.2 won't work I need 7.0 -- ugh) How do I go from 7.2…
Vic
  • 31
  • 1
  • 2
  • 6
3
votes
1 answer

PHP slowlog empty even though PHP-FPM says it's logging

I have PHP-FPM listening on a Unix domain socket and I've configured the www pool (the only one present) with the following values: slowlog = /$pool.log.slow request_slowlog_timeout = 10s and just for testing I've set max_execution_time in php.ini…
Bratchley
  • 231
  • 3
  • 15
3
votes
3 answers

check an average memory usage by single PHP-FPM process

I have tried the following command to check the an average memory usage by single PHP-FPM process ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }' and I got an error awk: cmd. line:1: fatal:…
Berlin
  • 402
  • 1
  • 7
  • 14
3
votes
1 answer

Prestashop + Google Cloud SQL

I am currently trying to setup a Prestashop 1.7 instance using Google Cloud Compute Engine and Google Cloud SQL (MySQL 5.7). I managed to get to the installation page of Prestashop, but when I try to connect it to Cloud SQL, I get the following…
Thien42
  • 31
  • 2
3
votes
0 answers

How does apache2.4 maintains php7.0 opcache in prefork model

Does each apache2.4 child processes maintain their own opcache or is there a global opcache shared by all children?
kalyan
  • 249
  • 1
  • 3
  • 11
3
votes
2 answers

Nginx is running but not serving php files

I am trying to setup up Nginx and php 7 on ubuntu 16.0 , prior to this I have only worked with WAMP on windows , I have successfully installed nginx and php , when i run this command on the terminal : curl -I -v http://localhost/ It shows that the…
ebuoe
  • 31
  • 1
  • 3
3
votes
1 answer

Redirect HTTP to HTTPS using Varnish 4.1

I have been trying to config the redirection of www HTTP to non-www HTTPS with Varnish 4.1, Nginx, PHP7.0.15, but it's not successful. Really appreciate your insight on the issue: The purpose: to redirect http://example.com to…
greentealeaf
  • 181
  • 1
  • 9
3
votes
2 answers

Nginx 502 Bad Gateway Error

Currently have a 502 Bad Gateway Error on my Centos 6.8 Server. 2017/01/30 23:57:31 [crit] 26911#0: *1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.15,…
user397791
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

Install MongoDB extension on a specific PHP version

I have a Debian web server on which I installed Apache/Mysql/PHP5 around ISPConfig 3. I manually installed an additionnal PHP version (PHP 7.0.5) in order to have one website on PHP 5, and one website on PHP 7, and everything was working. (I used…
3
votes
1 answer

How Apache Limit POST are set to accept Strictly local service Request?

I am trying to harden an Apache 2.4 Web server running 2 wordpress sites with separate vhost settings. Deployed on Windows 2012 r2. I was hacked a few weeks ago and the server was completely lost. On the new server they are still trying to hack the…
Bama
  • 133
  • 4
2
votes
0 answers

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in…
Seomari
  • 21
  • 2
2
votes
1 answer

PHP move_uploaded_file fail

This is a common question but I double checked suggested solutions without success. These are the errors from PHP: Warning: move_uploaded_file(images/img01.jpg): failed to open stream: Permission denied in /usr/share/nginx/html/media/test.php on…
Leonardo
  • 63
  • 2
  • 6
2
votes
1 answer

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 stat, referer: https://www.google.com/ [Mon Dec 24…
dmuensterer
  • 143
  • 1
  • 6
2
votes
2 answers

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 version of the new site on GAE, in a different…
Kenny Wyland
  • 200
  • 1
  • 12
2
votes
1 answer

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 \ && pecl install imagick \ && docker-php-ext-enable…
CappY
  • 513
  • 1
  • 6
  • 11
1 2
3
23 24