Stack Exchange Network

Stack Exchange network consists of 175 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 [php-fpm]

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

0
votes
1answer
283 views

tell apache virtual hosts to connect to php-fpm sockets using different user/group each

I've been reading the php-fpm documentation and found out that I can give each socket its own user, group and mode, but how can I tell apache (per vhost I mean) to use x user and y group to connect to ...
0
votes
0answers
546 views

cannot access laravel site hosted on centos with nginx

I installed nginx + php7.0 + laravel on a remote server with os centos7. I placed my laravel project inside /usr/share/nginx/html/my-laravel/ and I modified /etc/php-fpm.d/www.conf as below: user = ...
0
votes
1answer
171 views

Nginx / PHP-FPM hanging connections

I noticed that my server this morning was not responding. received nginx error page after waiting some time for the page to load. I decided to restart php-fpm because I figured there was an issue ...
0
votes
0answers
76 views

Php-fpm from php.earh repos over Alpine Linux VM: Unable to create the PID file

I have installed php-fpm7.2 from php.earth repositories by following the instructions and running the command: sudo apk add php7 php7-fpm Then when I launch the php-fpm directly as: sudo php-fpm I ...
2
votes
1answer
278 views

NGINX: Primary script unknown - when calling a dynamic URL with controller prefix

We facing a problem and we can't fix it. We are currently able to run our application as expected - SEO URL runs like a charm and are rewriting to index.php. The problem is, we have an additional URL ...
0
votes
1answer
2k views

PHP-FPM Cannot Get UID For User

I have setup an AWS EC2 linux instance and installed the following: httpd24 php71 php71-fpm php71-mysqlnd mod24_ssl fcgi mod24_fcgid I am wanting to run apache 2.4, php 7.1 and php-fpm. In the below ...
1
vote
0answers
62 views

How can I determine a reasonable value for pm.max_children in dynamic mode?

I really don't understand the purpose of this variable - what exactly is the purpose of it? To prevent the exhaustion of ram? It seems ineffective as each request could use a variable amount of ram up ...
0
votes
1answer
574 views

How to debug nginx and php-fpm besides nginx -t, access log, error log and php*-fpm status?

Nearly two weeks I'm stuck with this LEMP problem in which I get only one error anywhere and I don't feel this error helps me to solve my problem: *1 connect() failed (111: Connection refused) while ...
0
votes
3answers
2k views

nginx with php-fpm returns 403 when navigating to site

I have set up a server block for my site running on Nginx on a CentOS 7 VPS. When I try and navigate to my website, I get a 403 Forbidden error. This is apparently a common issue, but I couldn't ...
0
votes
1answer
205 views

Set of errors when running a docker container

I have been asked to make a couple tweaks to a legacy PHP project that runs inside a docker container. In order to make those tweaks, I am trying to get a local working copy of the app and associated ...
-1
votes
2answers
358 views

apache2.2 + php-fpm (php7.1)

Here is my virtualhost of my apache2.2, and i want to config it to connect php7.1 php-fpm, there is a apache error SuexecUserGroup "#504" "#504" ServerName test.example.com ServerAlias www.test....
-1
votes
2answers
791 views

how to add bcmath extension in php 5.6 with php-fpm on Centos 7

I am trying to add bcmath extension on my Centos 7 which has PHP 5.6 installed along with nginx and php-fpm I ran following and installed bcmath extenstion yum install php56-bcmath Above installed ...
0
votes
0answers
65 views

Nginx php routing issue

I'm an Nginx beginner, I'm found a frustrating situation. I have a php app that worked just fine on localhost, but after I moved it to a VPS server routing is broken - all urls render the main page. ...
0
votes
1answer
310 views

Failing to correctly parse Slash Arguments with php-fpm/apache

I recently set up a new webhosting server at work on a Debian Stretch system using Apache 2.4 and PHP7 via proxy_fcgi and php-fpm. It worked fine in the testing stages, but the first customer is ...
0
votes
0answers
129 views

Abnormal behavior - PHP 7.2 & CI 3.1.8

We are experiencing quite an odd behaviour when we are trying to upgrade the PHP in our Ubuntu\CentOS servers Let me start with yesterday's events: Everything is working perfectly fine with CI 3.0.6 &...
1
vote
0answers
348 views

Rules for a valid pool.d/www.conf file for php-fpm

This is how I sorted my /etc/php/7.0/fpm/pool.d/www.conf file after deleting all comments out of it for a nicer and easier display: [www] user = www-data group = www-data listen.owner = www-data ...
-1
votes
2answers
316 views

How to make apache and php use more memory?

I am working on one server having 16GB of RAM. It runs on Apache with php-fpm. The site hosted on this server is taking about 10 seconds to load. First I thought that it's a resources issue, but when ...
0
votes
1answer
5k views

How to uninstall PHP 5.4.16

My VPS came with PHP 5.4.16-43.el7_4.1 installed and I am trying to install PHP 7+, but I have been unable to do so. Then when I try to install a library, it conflicts, as shown here: # yum -y ...
0
votes
0answers
156 views

LiveZilla - Doesn't work with SSL?

I am running a CentOS server with NGINX and PHP-FPM, everything runs with SSL. I also use cloudflare. I tried installing LiveZilla to a subfolder called livezilla/. Upon visiting /livezilla in my ...
1
vote
0answers
184 views

Nginx link secure module with php issues?

Nginx configuration server { listen 80; server_name 173.249.40.xxx; root /var/www/files.com/html; index index.html index.htm; location / { try_files $uri $uri/ =404; } location /...
0
votes
0answers
109 views

nginx and php-fpm does not show images

The mGSV folder contains php files and folders with images, JavaScripts, CSS, Php ARCHITECTURE.txt Install base_mgsv.php history.php index.php mgsv.php scripts ...
0
votes
0answers
347 views

Multiple php-fpm configs for multiple websites, how many max_children per website?

I was advised to use one php-fpm config per website, in order to prevent all websites to suffer from one website's timeout here. The questions that now arise are: The sum of all max_children for ...
0
votes
0answers
75 views

nginx locations point not to different files

In my public folder, I have $ ls public index.php mGSV and $ ls public/mGSV/ ARCHITECTURE.txt Install base_mgsv.php history.php index.php mgsv.php scripts ...
1
vote
0answers
89 views

PHP-FPM does not use memory

I run PHP7.1.15-FPM with nginx on an EC2 Instance. I installed Magento 2 which requires a lot of resources (e.g. 2Gb Memory). When I look at the default configuration of nginx, php-fpm and Magento, ...
0
votes
1answer
590 views

SetEnv in htaccess file doesn't work with PHP-FPM

I'm moving from a prefork apache setup to event mode with php-fpm. In prefork mode, I can use SetEnv directives in an htaccess file like so: SetEnv CI_ENV testing And that value ends up in PHP: ...
6
votes
2answers
10k views

switch apache from prefork to event in Ubuntu 16, get php 7 working

Apache was running slow in production. After searching for answers for some time, I finally went to #apache IRC channel and the pros had me check the apache mode with this command: sudo apachectl -V ...
0
votes
1answer
245 views

Nginx 502 error after updating Ubuntu 12.10 to 14.04?

I had a particularly outdated ubuntu distribution (12.10) and was beginning the process to update sequentially to 16.04. Yesterday, I successfully updated from 12.10->13.10->14.04 using the Ubuntu old ...
3
votes
3answers
641 views

php7.0-fpm not working

I have installed Apache php7.0 and mysql on an Ubuntu 16.04 machine and I get the answer "php is not running." Here is my vhost configuration: <VirtualHost *:80> ServerAdmin webmaster@...
-1
votes
1answer
384 views

how to protect from hotlink in nginx

I need to protect from hotlinks in my php site.? how Can i achieve this ?? Iam using nginx as webserver .. If I try to view site.com/uploads/image.jpg without login I can able to see images in ...
0
votes
0answers
543 views

Why is php-zip missing from Amazon Linux 2 ? How do I fix this so I can install moodle

I have a new Amazon Linux 2 server running nginx and php-fpm but when I try to install moodle I get this error: The Zip PHP extension is now required by Moodle, info-ZIP binaries or PclZip library ...
0
votes
0answers
392 views

apache with a php-fpm instance on different machine

I'm setting up Apache with proxy_fcgid to pass the php-requests to a dedicated php-fpm instance on a remote machine. Configuration on the Apache-Box: <FilesMatch \.php$> # SetHandler "proxy:...
1
vote
2answers
997 views

Nginx won't serve PHP files from a remote server

When I call NGINX server, it should serve php files stored on a remote PHP server. Currently I get 404 Not Found - nginx/1.10.3 (Ubuntu). If I change root /srv/www/site to root /var/www/html then it ...
1
vote
1answer
436 views

Nginx returns 200 while Apache returns 302 on same PHP application [closed]

I have a PHP web application that does work in my local Apache development environment. However, the same app does not work in my production environment with nginx (1.4.6/Ubuntu) and PHP-FPM. When I ...
1
vote
0answers
99 views

Wordpress upload file size error even after raising php limits

I get 'The uploaded file exceeds the uploadmaxfilesize directive in php.ini.' error while trying to upload a plugin which is just 5.1MB. I have raised the limits in php.ini file and also thru webmin. ...
0
votes
1answer
2k views

Setting up php7.0-fpm + Apache and multi-user pools: Only 1 site works

I am using Ubuntu 16.04, Apache 2.4.29 and php7.0-fpm. I am trying to create separate pools for multiple users and websites, so that they run under a separate user and each site is protected in case ...
0
votes
1answer
374 views

PHP7-FPM Docker CMD results in 502 Nginx Error

I've a docker compose that use two containers: nginx and php7-fpm. I'm building php via Dockerfile and I need cron installed on it: FROM 'php:7-fpm' # PDO RUN docker-php-ext-install pdo_mysql # Cron ...
0
votes
1answer
127 views

PHP-FPM Servers being exhausted

I am building a "surge traffic" app that can go from 0 - 50,000 clients, at once, within minutes. I thought I'd ask you guys for some help understanding if I am doing something wrong here. Currently, ...
1
vote
0answers
309 views

dns resolving fails in php-fpm chroot using docker

Using Docker, I am trying to set up nginx + nextcloud:fpm in a chroot environment. It's all set up and working so far except that the software reports that it cannot connect to the internet, the ...
0
votes
1answer
340 views

Potential seperate PHP-FPM pools session id collision

I'm running a server with nginx 1.12.2 and PHP 7.0.27 on Debian 8.10, I'm running two websites with separate PHP-FPM pools for each separate PHP application each site runs. Each PHP-FPM pool and thus ...
0
votes
1answer
6k views

PHP-FPM - Error 503 - Attempt to connect to Unix domain socket failed

I get on server this errors (CentOs 7): [proxy:debug] proxy_util.c(2209): [client 80.251.245.153:61902] AH00944: connecting fcgi://127.0.0.1/data/webs/dev/index.php to 127.0.0.1:8000 [proxy:debug] ...
0
votes
1answer
771 views

PHP-FPM status is empty

I set up pm.status_path = /status option: ubuntu:~$ cat /etc/php/7.1/fpm/pool.d/www.conf | egrep 'listen|status' listen = /run/php/php7.1-fpm.sock listen.owner = www-data listen.group = www-data pm....
1
vote
2answers
2k views

Does Nginx need to have access to php files

If using nginx + php-fpm, does nginx need to have access to the php files? Context: building a kuberentes pod, with two containers: nginx and php-fpm, we can built the php code into php-fpm container....
0
votes
2answers
311 views

NGINX + PHP-FPM virtual hosting redirects php request to wrong directory

My server has 2 sites setup using nginx. Below are the content in /etc/nginx/mysite1.conf server { listen 80; server_name test.mysite1.com; #access_log logs/host.access.log main;...
1
vote
1answer
92 views

Nginx doesn't pick the right php-stack in location

UPDATE 28.02.2019 The problem is the following part inside my server block: # Don't use `$uri` here, see https://github.com/yandex/gixy/issues/77 rewrite /wp-admin$ $scheme://$host$...
0
votes
0answers
105 views

Issue with external connection from server

Faced with situation that nginx+php-fpm has stopped retrieving content from external resources (like, Amazon API), even file_get_content/curl (PHP) are failing with timeout errors. # wget --debug "...
0
votes
1answer
357 views

Nginx with php-fpm url encoding

I have also posted my question in Stackoverflow but i think here is more appropriate place to ask. I use docker and i have setup a nginx container with nginx 1.12.2, a php-fpm container with 5.6.33 ...
0
votes
1answer
503 views

Nginx reverse proxy losts connection to PHP container after upgrade

I have two containers inside a Rancher stack. One is php-fpm container which is serving an application. The second one is Nginx acting as a reverse proxy. The nginx has following configurations ...
0
votes
0answers
198 views

PHP FPM Still Requires “Other” Permission on Folder

With NGINX and PHP-FPM, I'm having trouble configuring it for my web directory with the proper security. I have a user and group called example.com and they are chowned on /home/example.com/*. I want ...
0
votes
2answers
333 views

Custom URL's Nginx & PHP

Wondering if anyone can help me with a problem im having setting up custom url's Currently got an AWS EC2 instance which I've installed Nginx & PHP(FPM) onto as web server and I've configure it ...
0
votes
1answer
1k views

Docker with wordpress/mysql/nginx, no styles in wordpress

So I'm trying to configure few containers with docker-compose. My goal being to use nginx to run wordpress-fpm. So far here is my docker-compose.yml: version: '3' services: nginx: image: ...