0
votes
0answers
18 views

Trying to find bottleneck… 60k onsite visitors

I know this will be hard, but I'm willing to try the Q&A route. I have a Wordpress site that currently has 60,000 visitors on the site at once. I'm using an EC2 m3.xlarge, php/php-fpm 5.5.10, ...
0
votes
1answer
26 views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
1
vote
1answer
42 views

unable to switch off expose_php in ubuntu 14.04 with nginx and php-fpm

According to phpinfo: Loaded Configuration File: /etc/php5/fpm/php.ini # grep expose_php /etc/php5/fpm -R /etc/php5/fpm/php.ini:expose_php = Off ...
0
votes
0answers
40 views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
0
votes
1answer
34 views

nginx rewrite rules for tweetnest

Recently I migrated my last apache to nginx (+ php-fpm). Everything works fine except tweetnest by month links (tweetnest/yyyy/mm). tweetnest provides apache rewrite rules (.htaccess) which works ...
0
votes
0answers
24 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
0
votes
0answers
28 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
1
vote
1answer
44 views

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I ...
1
vote
0answers
32 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
1
vote
1answer
24 views

Is multiple php5-fpm processes normal

I'm running several wordpress sites in a LEMP (Ubuntu Linux, Nginx, MySQL, PHP) stack. Looking at the running processes I can see there are two php5-fpm processes. Is this normal or have I done ...
0
votes
0answers
23 views

Webroot directory separation for Apache: suPHP or suEXEC ?

I've been reading a lot about directory permission setup under apache 2.4. Basically I am running a small number of clients with PHP apps on my dedicated Ubuntu (php 5.5.3 + apache 2.4). I know that ...
0
votes
1answer
312 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 ...
2
votes
1answer
83 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
1answer
43 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
2answers
60 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 ...
0
votes
0answers
92 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 ...
0
votes
1answer
34 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 ...
0
votes
1answer
146 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 ...
0
votes
1answer
66 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 ...
2
votes
1answer
71 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
1answer
84 views

nginx + passenger + phpmyadmin = Access denied

I'm confused, i read a lot of information, but still get same error, when i call ../phpmyadmin/index.php Access denied. my nginx configuration file: #user nobody; worker_processes 1; #error_log ...
0
votes
1answer
43 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 ...
1
vote
1answer
56 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
1answer
51 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 ...
0
votes
0answers
37 views

What happens when php-fpm's active process count reaches max_children?

The documentation doesn't seem to make it clear what exactly happens if a request comes in to php-fpm and all available processes are active. Does php-fpm queue up the request or does it simply drop ...
1
vote
0answers
29 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
1answer
930 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 ...
0
votes
2answers
315 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 ...
0
votes
3answers
90 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 ...
-3
votes
1answer
152 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 ...
0
votes
3answers
1k views

Trying to install PHP MySQL driver with MariaDB already installed

I have a VPS which came from an image called CentOS 6.4 x64,Nginx,php-fpm,MariaDB. PHP and MariaDB are both installed, but it seems that PHP does not have the MySQL driver installed. I first tried ...
2
votes
1answer
268 views

nginx+php-fpm(chroot). No input file specifed

OS: Centos PHP: 5.5.6 Nginx: 1.4.4 Nginx conf server { listen 80; server_name example.ltd; root /srv/example.ltd/www; index index.php; access_log /srv/example.ltd/logs/nginx-main.log main; ...
0
votes
1answer
148 views

NGINX not serving CSS & JS

NGINX will not serve CSS or JS files to the browser Link to page (magento) http://836237.vps-10.com/ Access log shows: [01/Dec/2013:16:55:17 +0000] "GET /js/varien/form.js HTTP/1.1" 304 0 ...
0
votes
2answers
127 views

nginx returning error 502 when get not exist key on memcached

i use nginx 1.2.3(php-fpm) php 5.4.7 pecl memcached 2.1.0 memcached 1.4.15 if memcached service stop or get a not found key,nginx return 502 error and in error_log: 2013/11/19 17:37:04 [error] ...
0
votes
0answers
59 views

Nginx not passing rewrite to FPM

Here are the pertinent lines of my nginx.conf file. location / { try_files $uri $uri/ /index.php @rewrite; } location @rewrite { rewrite ^/customer/(.*)$ /customersDisplay.php?id=$1; ...
0
votes
0answers
11 views

php-fpm not parsing php-fpm.conf

I have an Ubuntu 13.10 server with vanilla nginx and php5-fpm installed. When I start the service with service php5-fpm restart it appears the /etc/php5/fpm/php-fpm.conf file is not being loaded. I ...
1
vote
1answer
64 views

Can't setup nginx + php5-fpm in a fresh installation getting 404

I just've downloaded nginx 1.4 and right away I see the "Welcome to nginx!" message, then I've installed php5-fpm from the repositories so I create a php file at /usr/share/nginx/html/demo.php just ...
0
votes
0answers
46 views

nginx + “filename part could not be saved, because the source file could not be read” error?

I am delivering ~ 100-300mb files using the following php code from my nginx setup : header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, ...
0
votes
1answer
168 views

How to properly prevent 504 Gateway Time-out?

I've an script that can run for about 15 min as it is a large data migration tool. I have the problem that either if i set fastcgi_read_timeout 9900; it never times out or if i set it to less then it ...
1
vote
1answer
66 views

PHP app breaks on Nginx, but works on Apache

I want to migrate a PHP application from Apache to Nginx. The problem is that the App breaks, because the routing doesn't work anymore and I'm not exactly sure how to fix it. The PHP application ...
0
votes
2answers
140 views

nginx serving php for download (previously: nginx multiple location alias 404)

Im having issues with the alias location in the following configuration server { listen 80; server_name localhost; root /srv/http/share; index index.php; ...
0
votes
1answer
213 views

How can we configure the Bitnami Joomla stack to open a socket on startup?

I have deployed the Bitnami Ubuntu Joomla! 3.1.5-2 (64-bit) stack on Amazon Cloud: http://bitnami.com/stack/joomla/cloud/amazon By default, the stack is configured to run PHP using PHP-FPM. I have no ...
-1
votes
1answer
226 views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
0
votes
2answers
165 views

Updating WordPress 3.6 to 3.7 via admin area on Nginx VPS hangs and fails

So I have a few WordPress sites running on my VPS (Ubuntu 12.10, Nginx, php-fpm 5.4) The sites are all on seperate vhosts and use their own config files (albeit similar to each other) and vary in ...
1
vote
1answer
920 views

nginx php5-fpm “File not found” — FastCGI sent in stderr: “Primary script unknown”

so I'm trying to run for the first time the nginx web server with php5-fpm on a debian wheezy server Hitting a php file display simply File not found I have done my research (waste a lot of hours ...
1
vote
1answer
194 views

Creating Multiple Users on Single PHP-FPM Pool

Have PHP-FPM/FastCGI up and running on my cPanel/WHM server but I'd like have it allow for multiple users off of a single pool. Getting all vhosts to run off a single pool is simple by adding this to ...
0
votes
0answers
25 views

installing php & nginx without mysql?

I'm setting up some servers on digitalocean's cloud hosting. I have mariadb installed on its own server, and I am now setting up the nginx/php server for files. Is it necessary to install ...
1
vote
1answer
55 views

Securely configuring nginx for php

I want to use nginx for both Symfony2 sites and other software like phpMyAdmin. I've read the nginx docs on setting up Symfony2 and came across this issue: ...
0
votes
1answer
99 views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on ...
1
vote
2answers
255 views

Having trouble increasing WordPress memory limit on nginx server

I am trying to increase the memory limit on my nginx php-fpm server for wordpress. Specifically the Wordpress plugin WooCommerce needs more available memory. I've set the following in ...