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.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

stream_socket_client(): SSL operation failed with code 1

I've recently upgraded a server from Ubuntu 16.04 to 20.04 and since the upgrade I've been receiving the following error when try to send mail via SMTP or when trying to connect to an S3 bucket with ...
0
votes
0answers
10 views

How to switch from PHP-FPM to MOD_PHP

I have a server where I recently setup to use PHP-FPM (php7.4-fpm). I was using mod-php with apache2, but I'm having some problems with the switch to php-fpm. I can't find any documentation online on ...
-1
votes
0answers
8 views

Long Startup Time for Docker Container with NGINX PHP-FPM on Docker Desktop for OS X only. No delay on LINUX UBUNTU

I have a Docker package that creates a number of containers, e.g. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
0
votes
0answers
16 views

PHP error log is packed with multiple \x{00} at beginning of log, using NGINX & PHP-FPM in Docker Container

This is really just sort of an annoying behavior. I have a Docker Container that includes: NGINX, PHP-FPM and some other tools that I am using as a WebServer for a PHP web App, including a Laravel ...
1
vote
1answer
40 views

AWS EC2 t3.xlarge: 4 vCpu at 25/30%, RAM 646mb su 16GB, all website down, why?

my website was down with at most 800 visitors. The server is running Ubuntu 18.06 and is a T3.XLARGE. How could it have happened? The error in sudo tail -n 20 /var/log/nginx/error.log was connect() to ...
-1
votes
0answers
29 views

Apache Event MPM with PHP-FPM and open_basedir

For the longest time I've been using Apache Prefork with mod_php. I like it, as it's easy to configure, understand and troubleshoot. However it's much more inefficient than Worker or Event (or so I'm ...
0
votes
1answer
22 views

Apache: phpmyadmin on sub-domain “503 Service Unavailable”: php7.4-fpm

I'm having a tough time trying to fix a major problem getting phpmyadmin working again (it used to work on ubuntu 16.04). I upgraded Ubuntu 16.04 to 20.04 yesterday and got the following versions of ...
0
votes
1answer
26 views

Need help configuring NGINX to serve both html & php files

I'm really out of luck today. I don't know what it is, but I can't get NGINX to do, what it should do. I want to achieve the following: domain.com shows index.html (/var/www/domain/index.html) domain....
0
votes
0answers
7 views

php-fpm status page does not display info about Idle processes

I have PHP 5.6 and PHP 7.3 running on my machine. Webserver is Nginx and is using FastCGI (php-fpm). I have setup two php-fpm status pages - one for the www pool of the php-fpm 5.6 and one for the www ...
1
vote
1answer
14 views

AWS Elasticbeanstalk modify php-fpm config file

My app is running on AWS Elasticbeanstalk service with PHP 7.4/AMI Linux 2 platform. And I want to modify php-fpm configuration, especially /etc/php-fpm.d/www.conf file, which manages by Beanstalk. ...
1
vote
0answers
28 views

PHP on VirtualHost not working but works on default site

I have a apache Server version: Apache/2.4.46 on Amazon Linux 2. PHP is working well on port 443. I added another virtualhost on port 81. PHP does not work on this port. Config: Listen 80 <...
-1
votes
1answer
60 views

Nginx configuration for docker wordpress:php8.0-fpm-alpine

My objective is to create a server block in a host Nginx configuration that serves as a fastcgi frontend for a wordpress php docker container. That is to say, the nginx server is not in a container, ...
0
votes
0answers
25 views

PHP-FPM workers timeout times exceeding configuration limits

We are running server with this configuration: Nginx + FastCGI (PHP-FPM) + PHP 7.3 + MySQL 5.7. However, we experience some issues with long running PHP scripts, so we have setup these restrictions: ...
-1
votes
0answers
17 views

Docker Nginx returning 404 on install.php

Let me first describe the server structure. My Wordpress is hosted inside a docker container along with nginx on lets say Server B (https://serverB.com). But I am trying to access the Wordpress site ...
1
vote
0answers
33 views

Php-fpm service fails to start on solus. Possibly due to snmp module

I am having some trouble to start the php-fpm service on solus OS. It appears that is is maybe related to the snmp module. Here are some info about the error : ~ $ sudo systemctl status php-fpm Mot de ...
1
vote
0answers
15 views

Permissions of /run/php-fpm/www.sock getting reset to root when php-fpm restarts after fixing AH02454 permission denied error

I am migrating to a new server to upgrade my internals and I have encountered this error when standing up my apache and PHP [Fri Apr 09 16:51:26.243820 2021] [proxy:error] [pid 31179:tid ...
0
votes
1answer
72 views

Serve Docker PHP FPM content through non-docker NGINX

I'm trying to run MyBB forum software with Docker to run it on my server where I already have NGINX running serving other content. This is how my docker-compose.yml currently looks like (I've been ...
1
vote
1answer
66 views

503 service unavailable with high loads when using php7.3-fpm and lighttpd 1.4.53 connected via UNIX sockets instead of TCP

I recently switched my php7.3-fpm configuration to use UNIX Sockets instead of listening at localhost:9000. This solved a lag problem (every now and then I had requests that took over a second for no ...
0
votes
1answer
19 views

What is a dispatcher?

I have a wordpress site that was running slow so I signed up for stackify to get a performance profile of server. I dont get the same slow down on baremetal and localhost running the same site. This ...
0
votes
0answers
33 views

Nginx sock failed

we have encountered an issue on our web application. The event on error log of nginx is: connect() to unix:/run/php-fpm/www.sock failed (11: Resource temporarily unavailable) while connecting to ...
0
votes
0answers
26 views

Why Docker PHP container works on Ubuntu host but not on Manjaro host

I setup my new laptop with Manjaro Xfce and love it but I cannot get my primary dev project to run on the new host. This project is used by more than 10 developers, 9 on Ubuntu and 1 on a Macbook. No ...
0
votes
0answers
40 views

How can I use nginx as a whois server with PHP-FPM?

How can I use nginx as a whois server with PHP-FPM? I am unable to find any way to do this. And editing the source would take a long time. Because, the source is built for HTTP purpose mainly, and ...
1
vote
1answer
38 views

High CPU Usage on Digital Ocean Web Server

We have a Laravel website which is currently hosted on Digital Ocean (Nginx). The droplet is a 2 vCPUs, 2 GB Memory, 60 GB SSD, 3 TB transfer running PHP 7.4. We are seeing a steady increase in CPU ...
0
votes
1answer
40 views

PHP-FPM using 100% CPU on a server that has 16 threads

I have a server that has 32 GB of RAM and 16 threads. This server has an API in PHP that receives many requests from other external APIs, I made a configuration in PHP-FPM to support all these ...
0
votes
2answers
45 views

PHP-FPM behaving strangely with Nginx on new webserver

So, I'm moving over to a new webserver, primarily because CentOS will soon be no more, so I am switching over to Debian 10. I have Nginx and PHP configured as I'd like, but am having a really strange ...
0
votes
0answers
22 views

Nginx with wordpress serving blank pages

Title; I get served a blank page with a 200 status code in my logs and no body after the webpage successfully loads. Here is my config file: root var/www/sitename; index index.php index.html index.htm;...
1
vote
0answers
24 views

editing files with nano adds a bytemark to the file which nginx prints to the client

When we have to edit php files on the webserver, sometimes our website prints out part of what i think is a bytemark to "lock" the file from nano. On the website, it then adds weird strings ...
0
votes
1answer
49 views

Centos 8 folder permissions for nginx and sftp user

I can't figure out how to merge nxginx and sftp user for a folder. So for example I have folder: /var/www/domain.com/uploads sftp user is: john john belongs to group: sftpuser scenario with chown ...
0
votes
0answers
40 views

Allow user to edit some php.ini directives - Nginx + PHP-FPM

I am running Nginx + PHP7.4-FPM combo on my server. Every unix user with home in /home/example have access to respective domain name from Nginx (example.com) and his own FPM pool. My question is, if ...
0
votes
0answers
63 views

Weird timeouts not sure where they are coming from

We are having a big problem with timeouts, we don't have any clue where they are coming from or why, we check the ngnix logs, but there's almost no timeouts logged, no errors in Laravel. We've done ...
0
votes
1answer
27 views

NGINX FastCGI “Primary script unknown” on every other image upload POST

I have a simple upload php script that accepts image jpg files and saves them to a screenshots directory then returns the link to the client. In pre-deployment testing, I am running into the nginx ...
0
votes
1answer
611 views

How to properly set specific PHP version used by Apache on Arch?

So it appears that after a recent Arch system upgrade, my NextCloud server no longer works, currently giving me "This version of Nextcloud is not compatible with > PHP 7.4. You are currently ...
0
votes
0answers
17 views

PHP mail() mail.log configured file stays empty

My environment is as following: nginx version: nginx/1.18.0 PHP 7.4.11 (cli) (built: Oct 21 2020 19:12:26) ( NTS ) I am trying to log any mail() operation into mail.log configured file. The Error msg ...
0
votes
1answer
33 views

Use a different PHP Upstream based on arguments in the URL - NGinx

I run Nginx and PHP-FPM. Nginx runs under www-data and PHP-FPM runs as a separate user for each website. I use Nginx FASTCGI Caching and use the Nginx Helper plugin for WordPress. Unfortunately due to ...
0
votes
1answer
13 views

nginx Access to Subfolder Download the File instead of Return Forbidden

This is my main .conf: server { # Default configuration server_name dev.mysite.com; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block&...
0
votes
0answers
62 views

PHP memory_limit does not work / is ignored on Nginx (CentOS 7)

I've browsed, maybe, 20 questions regarding this topic and I still cannot get it to work. I'm aware there are many questions asking the same, but none of them seem to help. I need to increase PHP7.4 ...
0
votes
1answer
32 views

Nginx try_files and alias

I've this configuration: server { server_name app.local; index index.php; location /api/v1 { alias /app/api/v1/code; try_files $uri /api/v1/index.php$is_args$args; ...
0
votes
0answers
29 views

nginx Document Root in SubFolder

I have this conf: location /site { error_log /var/log/nginx/site_error.log ; access_log /var/log/nginx/site_access.log ; alias /opt/www/old_site; ...
0
votes
1answer
48 views

nginx: how to serve multiple site on same domain name without virtual hosting?

I'm new of nginx. I read some documentation to install it and configure it with drupal 8. I have my server installed on linode. i access through ip address, not virtual host. My drupal is located in ...
0
votes
1answer
35 views

nginx+php-fpm Warning Not Disappear

In my php.ini error_reporting = E_ERROR ^ E_WARNING In my scripts: ini_set('error_reporting', E_ERROR); In my /etc/php-fpm.d/www.conf php_value[error_reporting] = E_ALL & ~E_NOTICE & ~...
0
votes
1answer
80 views

Use multiple PHP-FPM versions using FastCGI on same Debian/Apache server

I would like to use multiple PHP-FPM versions using FastCGI on same Debian/Apache server. Using: Debian v9.12, Apache v2.4.25, php5.6-fpm, php7.4-fpm, libapache2-mod-fcgid v1:2.3.9-1+b1, libapache2-...
0
votes
1answer
90 views

How to install PHP 7.4.3 on CentOS 8?

I need to upgrade to PHP 7.4.3 (from 7.4.14), and I have somehow managed to make no progress after many, many hours. *Needed for MediaWiki, Roundcube and PostfixAdmin. Two questions: Do I have to ...
0
votes
1answer
217 views

Docker nginx php in centos7 container

I have to create a Dockerfile which has to inherit FROM centos:7 by definition and install nginx and php and get it to show a PHP file. My Dockerfile: FROM centos:7 EXPOSE 80/tcp RUN yum -y update RUN ...
1
vote
1answer
89 views

Is it possible to limit the number of concurrent requests to Apache and buffer the excess requests (instead of returning 503)?

I have a website served by Apache 2.4 with PHP-FPM. Some pages take a few seconds to be generated. From time to time, some bot or crawler tries to download lots of these pages at once, PHP processes ...
1
vote
1answer
175 views

CORS conflict after enabling FPM in PHP

In the .htaccess file on my web server, I have the following CORS header set: Header set Access-Control-Allow-Origin "example.com" In one of my PHP scripts, that I frequently call while ...
1
vote
0answers
26 views

NGINX HTTP 502 with PHP-FPM - but no error log

I am struggling with a problem: I got this Nginx config: # MANAGED BY PUPPET server { listen *:80; server_name www.example.org; return 301 http://example.org$request_uri; } ...
0
votes
0answers
92 views

What could be the reason php-fpm is not running?

We run our php code inside nginx docker containers, managed by k8s. Normally it works well. But occasionally our client will get 502 Bad Gateway error. When that happens I found there is no php-fpm: ...
0
votes
1answer
217 views

Running ansible from webserver to manage infrastructure

I have nginx with php app. I have also installed ansible and copied playbooks on this server. What I want to do is run ansible playbooks through webapp. I want to know how to do this safe way. Nginx ...
0
votes
1answer
32 views

PHP SERVER SSL_CLIENT_CERT disappears for when navigating pages

I am containerizing a legacy webservice that use SSL Client certificate validation. I have an apache 2.4 container and a PHP 7.4 FPM container. My apache virtual host conf looks like ... <...
0
votes
0answers
36 views

Configure Apache with PHP-FPM Support

I have installed DirectAdmin control panel on my centOS 8 server with PHP FPM and apache MPM event. reading some articles about how to configure apache to work with PHP FPM, I figured out FPM handler ...

1
2 3 4 5
39