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.
2,157
questions
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 ...
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 ...
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. ...
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 ...
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 ...
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,...
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 ...
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) ...
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 ...
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)...
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/...
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 ...
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'...
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://...
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 ...
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. ...
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 ...
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 /...
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/...
-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: ...
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 {
...
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 ...
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:
<...
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 ...
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.
...
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 ...
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.
...
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 ...
-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 ...
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....
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 ...
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 ...
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
...
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-...
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,...
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 ...
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 ...
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 /...
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 ...
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$...
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; #...
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$ {
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
-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 ?...