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
1 answer
7k views

connect() failed (111: Connection refused) while connecting to upstream, client

I get this error message in my log : *329 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.154.207, server: domain.de, request: "POST /wp-admin/admin-ajax.php ...
bobbybackblech's user avatar
0 votes
1 answer
6k views

nginx configuration for multiple subdirectories containing zf2/php files doesn't work

My root structure looks like this /root/ /root/projectA/... /root/projectB/... /root/projectC/... Before I configured each of my subdirectories with one extra location block in my nginx file. These ...
Evils's user avatar
  • 117
1 vote
1 answer
4k views

NGINX doesn't parse .php5 as .php

I have installed nginx with ISPconfig. Everything works fine except some websites I have ported from apache server unfortunately have .php5 extension and I don't know how to make nginx to parse them. ...
Bex1977's user avatar
  • 13
3 votes
1 answer
871 views

Save PHP opcache to Memcached

Running on small servers it would make sense offloading these as much as possible for performance. Also offloading will prevent from the server becoming a bottleneck. Therefore I use memcached for ...
Robert De Wilde's user avatar
0 votes
1 answer
547 views

nginx php-fpm random/temperamental "No input file specified" error

I've got a page, I'm not using redirects, just going directly to /invite/index.php?code=f13dc6c9be in the browser and it serves up about 50% of the time. The rest of the time the browser displays "No ...
Pete's user avatar
  • 303
0 votes
2 answers
3k views

Django (uWSGI) and php (fastcgi) NGINX

I am new to configuring servers and i'm having issues getting php to work with my django app using UWSGI on nginx. Django works great using uwsgi and php works great when I remove the django site conf,...
DylanH's user avatar
  • 135
0 votes
1 answer
1k views

PHP Settings [pm.max_children, pm.start_servers, pm.min_spare_servers and pm.max_spare_servers]

In the midst of transferring a website from a GoDaddy shared server to an EC2 instance. Handling the traffic, which during peak times on a typical day is around 300 active visitors, has been ...
panoramic's user avatar
2 votes
2 answers
3k views

php5-fpm optimization for long polling

I'm designing a chat application in PHP. I use nginx with php-fpm environment. The problem is, that after several clients connected, PHP scripts are getting very slow. I have just several (5-10) ...
stil's user avatar
  • 129
0 votes
1 answer
378 views

Cannot get static file with chroot wordpress

I was trying to configure chroot with php-fpm and mysql. I managed to work it out, however when I try to reach files other than index.php (like css, png etc.) it keeps giving 404. However when I ...
Harun Baris Bulut's user avatar
4 votes
1 answer
3k views

nginx & php-fpm very slow on first access

I have a nginx 1.4.5 webserver with php-fpm 5.5.7 running on my server, but if my server stays idle for a while, accessing it is very slow. It takes about 10-20 seconds to get the response (first byte)...
NovumCoder's user avatar
1 vote
1 answer
858 views

nginx/php-fpm "primary script unknown" when serving from a complex path

I have a web app (simpleSAML.php) wrapped in a Wordpress widget that needs to serve paths like the following: http://example.com/wp-content/plugins/saml-20-single-sign-on/saml/www/module.php/saml/sp/...
Ben Overmyer's user avatar
35 votes
1 answer
45k views

Constantly have to reload PHP-FPM

We have a fairly heavily loaded server running nginx and PHP-FPM. We have 6 websites on this server, running PHP-FPM and nginx. Software is all vBulletin 3.8 and WordPress. Databases are on a separate ...
Kevin's user avatar
  • 847
9 votes
2 answers
49k views

Nginx + php-fpm - Each php-fpm process 70-100% cpu when running

I have a situation in which the following is taking place: We are on linode with 8-core, 8gb of ram , 2.6 ghz - using nginx + php-fpm - we are getting extremely high graphs of cpu usage (which we don'...
amurrell's user avatar
  • 601
1 vote
1 answer
9k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = unix://...
Daniel W.'s user avatar
  • 1,749
19 votes
4 answers
148k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
Jeremy Wilson's user avatar
1 vote
0 answers
1k views

Nginx isn't redirecting right

I'm starting with Nginx and have a lot of problems since things change from Apache to Nginx. Right now I have a application developed in Symfony1.4 which don't work since I get a 404 Not Found error. ...
Reynier's user avatar
  • 153
4 votes
1 answer
9k views

Nginx doesn't find subdirectories and also doesn't run index.php at default directory

I changed from Apache to Nginx and now I'm having some problems. When I try to access to any folder as for example http://devserver/monitor/web where I have a Symfony project I get 404 error When I ...
Reynier's user avatar
  • 153
1 vote
3 answers
5k views

PHP-FPM with Apache 2.2.22 and Ubuntu 12.10 - 500 Error, or returns text (not executing)

I am following this tutorial to try to install PHP-FPM on my LAMP stack. My config in /etc/apache2/sites-available/default contains (as per the guide) <IfModule mod_fastcgi.c> Alias /...
waffl's user avatar
  • 143
1 vote
1 answer
3k views

NginX Causing PHP File To Be Executed Twice

I'm between a rock and a hard place trying to figure out why this is going on. For some reason, when I open my website the index.php file is being executed. I have been able to narrow it down to NginX/...
SameOldNick's user avatar
-1 votes
1 answer
2k views

Amazon linux package conflict [closed]

I was trying install php55-fpm on amazon linux, but there is a package conflict with php-common. How solve this issue ? [ec2-user@ip-10-0-12-54 ~]$ sudo yum install php55-fpm Loaded plugins: ...
nosferatu's user avatar
1 vote
2 answers
293 views

PHP Files downloading (source code) instead of running Nginx&PHP5-FPM

When browsing to a page on the site the page is being download instead of running Nginx Config - user www-data www-data; worker_processes 4; events { worker_connections 2048; } http { ...
Ido B's user avatar
  • 87
2 votes
1 answer
1k views

Nginx $uri variable is truncated during processing

We have NGinX as proxy server for PHP web application. PHP scripts are served by PHP-FPM process. Following is the configuration for the nginx: location /app/ { alias /var/www/html; location ...
vikas's user avatar
  • 125
0 votes
1 answer
1k views

mod_fastcgi not working with <IfModule...> and php-fpm

In the primary httpd.conf file I have the following for loading the fastcgi module: LoadModule fastcgi_module modules/mod_fastcgi.so In a different file for vhosts I have the following: <...
user avatar
2 votes
3 answers
15k views

Laravel on nginx+php-fpm returns blank page

I'm having this issue with Laravel which is served by nginx + php-fpm, it's just returning a blank page. Neither nginx nor php nor laravel are logging any errors at all. When running the index.php ...
Raiu's user avatar
  • 161
0 votes
0 answers
848 views

Problems with Server [php-fpm - CPU Overload]

Since then I have switched the system on php-fpm running it pretty well, have now also pm.children perched on 20. Maybe the pm.children is not high enough? The idle timeout is set to 300. ...
user3135461's user avatar
0 votes
1 answer
2k views

Nginx + php-fcgi website loads 4-5 seconds, slow issue

My website started loading for like 4-5 seconds (in peak hours) - it is almost not usable. Traffic: 40MB/s out, 6MB/s in. (almost 95% of out is downloading files 0.5-2GB large). Over 100 simultaneous ...
Wiggler Jtag's user avatar
0 votes
1 answer
180 views

Nginx not everyone can connect

Not all connections to our page work. Many people can connect only after like 10 trys.. The page keep load and then it shows a connection times out error. I already tryed much but nothing helped. ...
user206170's user avatar
2 votes
1 answer
1k views

Using both mod_php(Apache) and php-fpm(nginx) in one server

Is it possible to use Apache+mod_php and nginx+php-fpm in same server? I know these two servers can NOT share same port, but is it possible to run two different PHP modules in one server? I'm ...
ComMania's user avatar
-1 votes
1 answer
756 views

Nginx, deny access to certain url

I have a url shortening website. The url shortening is done by PHP. I need to restrict access to certain urls. This means certain url should be blacklisted for shortening. Is there any server side ...
user183393's user avatar
1 vote
3 answers
133 views

Is this normal that www-data still needs to have read and execute permissions on htdocs when using PHP-FPM?

I have setup an Apache+PHP-FPM environment and I have set the following in the PHP-FPM pool file: [www] user = mary group = mary listen = 127.0.0.1:9000 pm = dynamic pm.max_children = 8 pm....
bobo's user avatar
  • 619
0 votes
1 answer
424 views

PHP Opcode cache that can detect identical files

I am currently using APC with PHP FPM to cache a few hundred Wordpress sites. With a 2gig cache everything works well but it isn't terribly efficient and the cache is always maxed out. If I have 200 ...
Nick's user avatar
  • 287
2 votes
1 answer
2k views

Should we have one pool for many websites in Apache+PHP-FPM?

If there are many small websites (about 300) running in light web traffic, should they all use the same pool, or would it be better to have a separate pool for each of them? Let us assume the ...
bobo's user avatar
  • 619
0 votes
1 answer
1k views

Can't get pspell to work

I installed aspell\pspell, and if I do > aspell dump dicts ar cs de de_AT de_CH de_DE en en-variant_0 en-variant_1 en-variant_2 en-w_accents en-wo_accents en_CA en_CA-variant_0 en_CA-variant_1 ...
Cornwell's user avatar
  • 153
4 votes
1 answer
3k views

Nginx redirecting domain to port 8000 with a 301

I have been looking everywhere to figure out why my nginx server is causing a 301 redirect on one domain, and not the other. I have two sites configured on this server in an apache style (sites-...
David Allen's user avatar
0 votes
1 answer
1k views

Is It Okay To Reload PHP-FPM Most Often?

Even how high I set the pm.start_servers, or pm.min/max_spare_servers, I always get this error when PHP-FPM reach the limit: WARNING: [pool web8] seems busy (you may need to increase pm.start_servers,...
jaYPabs's user avatar
  • 299
1 vote
0 answers
74 views

Paths Generated by PHP Applications Incorrect In Fedora nginx php-fpm Setup

I have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am ...
MetaNova's user avatar
  • 171
1 vote
0 answers
335 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
David's user avatar
  • 111
2 votes
1 answer
7k views

Nginx & PHP-FPM - Unable to open primary script ERROR

I have a blog with some rewrite rules when in comes to viewing single posts. The viewing is handled by a file named view.php. I am using some rewrite rules in my vhost config as follows: location /...
Georgi Vasilev's user avatar
11 votes
2 answers
35k views

nginx, alias, php-fpm = File not Found

I'm trying to set up nginx with DAViCal. However, I'm getting a "File not Found" with a "FastCGI sent in stderr: "Primary script unknown" in the log. Looks like something is wrong with my aliasing but ...
Martin's user avatar
  • 411
1 vote
1 answer
3k views

'File not found' exact path in nginx and php-fpm

Sometimes when configuring nginx and php-fpm I get message "File not found." I know this is beacause of wrong parameter SCRIPT_FILENAME, e.g.: fastcgi_param SCRIPT_FILENAME /some/path$...
Oleg's user avatar
  • 286
1 vote
1 answer
2k views

Rewrite file extensions in NGiNX

I'm looking to show a file like domain.com/login instead of domain.com/login.php My NGiNX site config is: #02API server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; #...
Locke's user avatar
  • 5
1 vote
0 answers
155 views

Nginx +php-fpm auth_base on url

Good evening. How i can protect some URL by password(auth_base)? When i try write location ^~ /test/ { auth_basic "admin login"; auth_basic_user_file /etc/nginx/httpd.passwd; location ~ \.php$ { ...
Eugene's user avatar
  • 11
0 votes
1 answer
8k views

"php5-fpm: unrecognized service" and other issues after reverting from PPA

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here https://askubuntu.com/a/109544 it seemed that ...
Michael Thompson's user avatar
0 votes
2 answers
562 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
133794m3r's user avatar
  • 155
6 votes
2 answers
17k views

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't ...
Oliver Tappin's user avatar
3 votes
2 answers
1k views

php5-fpm maxes out all cores (nginx+php5fpm+wordpress)

We have a 16 gig linode running with 8 cpu cores and I'm trying to debug an issue that when I try a load test that the server starts to freak out around 250 requests a second on a pretty basic ...
Steve's user avatar
  • 183
2 votes
2 answers
638 views

403 statuses on nginx at FreeBSD

I'm trying to switch from an Apache hosting solution to nginx with php-fpm on FreeBSD 9.2. I'm rewriting my script for creating vHosts and stuff for nginx now and get 403 statuses when I try to ...
chris's user avatar
  • 21
0 votes
4 answers
995 views

Reduce system load when using image processing via php-fpm/nginx

We have a PHP image api written in Code Igniter that's based on imagemagic. We have the api behind nginx/php-fpm. We know the Imagemagic part is heavy, but we try to make the overal throughput higher ...
Pentium10's user avatar
  • 444
1 vote
1 answer
42 views

Consequences of source installation in "non standard" directory

I compile and install a lot of programs myself from source. Since I have a working installation of apache + PHP but would like to try Nginx + PHP-FPM I would like to install these in non standard ...
Fabrizio Mazzoni's user avatar
-3 votes
1 answer
1k views

nginx with php-fpm got 502 bad gateway on ubuntu server 12.04 [closed]

I just don't know why i got a 502 error. Please help. you can visit here http://upliu.net/phpinfo.php phpinfo.php just has one line code: phpinfo(); but i got a 502 bad gateway error someone can help ?...
user1968677's user avatar

1
30 31
32
33 34
44