0
votes
2answers
337 views

Setting up HHVM for apache2.2 with mod fastcgi in a virtual host

I want to setup a virtualhost running HHVM to try out the new "Facebook Hack" language. I followed the instructions here on Apache 2.2: https://github.com/facebook/hhvm/wiki/FastCGI currently hhvm is ...
1
vote
0answers
28 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 ...
0
votes
2answers
35 views

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, *set fastcgi_param SCRIPT_FILENAME and it will work* (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a ...
0
votes
1answer
40 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
0answers
18 views

What is the difference between proxy_buffer and fastcgi_buffer?

I inherited an nginx config and I'm trying to optimise it for security, speed, and/or maintainability by removing rules/directives which are superfluous or not doing anything. With this in mind, ...
0
votes
0answers
73 views

Apache mod_fastcgi + php-fpm chroot

Im trying to setup Apache + FastCGI + chrooted PHP-FPM on Debian (wheezy). But I'm always geting file not found error. I cannot find the problem, but if I disable chroot, everything runs fine. What ...
0
votes
0answers
38 views

uri-specific fastcgi param in nginx

My end-goal is for different modules in our application to be segmented in New Relic differently. I basically want /admin to be recorded as "App-Admin" and /user to be recorded as "App-User", for ...
1
vote
1answer
854 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
53 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 ...
0
votes
0answers
307 views

How to configure Plesk 11 to use PHP-FPM with Apache only (without nginx)?

I'm quite new Plesk, running on my own private virtual server (CentOS x64). I was able to install nginx and php-fpm support using the add/remove components functionality. It was straightforward. ...
0
votes
1answer
30 views

OpenVZ sharing PHP5-FPM socket

I need a problem with sharing php5-fpm.sock between 2 vz containers I have 2 containers: 1. with NGINX 2. with PHP5 and PHP5-FPM Link containers over NFS I tried using: 1. mount --bind ...
0
votes
0answers
186 views

FastCGI: server “…” stderr: Primary script unknown

I'm using Apache 2.2 + mod_fastcgi + PHP-FPM My fastcgi.conf (Apache): <IfModule mod_fastcgi.c> Action php-script /php5.fcgi virtual Alias /php5.fcgi /var/www/fcgi/php5.fcgi ...
0
votes
1answer
161 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 ...
0
votes
1answer
209 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
vote
1answer
192 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
1answer
247 views

setup apache and mod_fastcgi to work with php-fpm not working

I try to setup php-fpm with apache I am still missing a piece of the puzzle, because the page returns a 404 The requested URL /php-fpm/index.php was not found on this server. Apache/2.2.24 (Unix) ...
0
votes
1answer
214 views

NGINX and PHP-FPM is downloading index.php instead of processing it

php-fpm is running: # /etc/init.d/php5-fpm status php5-fpm is running php-fpm is listening: # netstat -an | grep :9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN ...
0
votes
2answers
273 views

Apache 2.4 + PHP-FPM + mod_fastcgi (Problems setting up PHP-FPM)

I have been trying to get PHP-FPM to work with Apache 2.4, but mod_fastcgi does not work with 2.4. Is there any solution to this problem? I want to run it using an UNIX socket, but I cannot find any ...
0
votes
3answers
95 views

Nginx FastCGI on subdirectories

I'm trying to make Nginx proxy multiple web applications (among others, Tiny Tiny RSS and phpPgAdmin) onto different subdirectories under the same domain. For example, TT RSS is under ...
0
votes
0answers
97 views

Apache php-fpm + mod_fastcgi FD_SETSIZE error ubuntu 12.04

So i have an apache configured with mad_fastcgi ( i need FastCGIExternalServer ) I am running ubuntu 12.04 The problem is when i add mores vhosts i get this error from mod_fastcgi [Tue Sep 17 ...
1
vote
1answer
3k views

FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

I know this isn't a unique question, but perhaps the manifesting situation is unique. Answers found elsewhere don't match what I believe are my circumstances. I have a box hosting a few sites and, ...
0
votes
1answer
126 views

Odd permissions issue with php-fpm, session_start failed on some but works on others

Ok, I have php-fpm/apache/apc installed on ubuntu 12.04 with a website running a php shopping cart. I am getting flooded with perrmissions errors like "Failed to write session data (files). Please ...
0
votes
1answer
563 views

FastCGI: comm with server … aborted: idle timeout (30 sec)

I have multiple virtual webs running Wordpress but this one started to throw errors and I am unable to find the problem. Apache says: [Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: ...
0
votes
2answers
60 views

Running multiple versions of PHP under Apache, but requiring modules from .deb file

I have a setup where I've unfortunately hit a version limit between a library package required for an application, and my version of PHP. I'm now running PHP 5.4, but the module is only compatible ...
0
votes
2answers
2k views

PHP5-FPM + APACHE2 on WHEEZY : connect() failed with FastCGI

I have this error on Wheezy, I don't understand what am I missing. Logs from php5-fpm are OK. Error from apache2 log [error] (2)No such file or directory: FastCGI: failed to connect to server ...
1
vote
2answers
113 views

Can I make nginx to resend the request to FastCGI after a few seconds?

My FastCGI (PHP-FPM) application may encounter a situation where it needs some time to heal itself up. I'd like to tell to nginx that it should wait a few seconds and then resend the request to the ...
0
votes
1answer
268 views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
0
votes
1answer
95 views

apache+php-fpm and security in shared enviroment compared to apache+suexec+mod_fastcgi

I've been using Apache with suexec and mod_fastcgi. It starts up PHP handlers as the selected system user and listens to request via PIPES (fastcgi protocol). It works well but can't share opcode via ...
1
vote
2answers
757 views

PHP-FPM is not displayed in phpinfo()

I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure ...
0
votes
1answer
226 views

nginx, php-fpm on diff server bad gateway (and security too)

This is somewhat of a multipart question. First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong. Second, I would love to know how I ...
0
votes
1answer
880 views

NGINX/PHP-FPM cpu spikes and runaway processes

Recently I switched to NGINX/PHP-FPM to run my forums. The majority of the time, the site runs beautifully, seriously quick and I'm really happy with it. Its on a 13 core/30+GB memory instance with ...
0
votes
1answer
48 views

File not found “location issue”?

I'm stuck with a File Not Found issue with Nginx and FastCGI for PHP. Could someone have a look at my conf file? server { listen 80; ## listen for ipv4 listen [::]:80 default ...
0
votes
1answer
111 views

Compiling / installing up-to-date nginx with fastcgi_cache on Ubuntu 12.04?

What is the recommended path to compile or install nginx with fastcgi_cache on Ubuntu 12.04 LTS precise that works with up-to-date nginx-common (read >= ver 1.2.7) packages? Or is there a method to ...
0
votes
2answers
435 views

Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?

TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response? I have a set up running php-fpm behind nginx. In general, this works very ...
0
votes
3answers
3k views

Make PHP-FPM Listen at 'IPAddress:Port' Instead of '/var/run/php5-fpm.sock;'

As I was load testing my site today (using blitz.io); despite lots of RAM (more than 50%) and CPU power (over 70%) available, results showed that my site started timing out at a certain number of ...
2
votes
0answers
261 views

Understanding Nginx try_files and fastcgi_path

I'm trying to convert a very simple .htaccess file to nginx: Options -Indexes -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] As I read on Google and ...
1
vote
1answer
660 views

Can php-fpm support open_basedir set dynamically for multiple virtual hosts with a single user pool?

I am running into a problem where trying to set open_basedir dynamically under nginx (and apache) for php-fpm is "bleeding through" to other vhosts when running php-fpm as user "nobody" (for legacy ...
0
votes
1answer
1k views

How to pass custom parameters to PHP from Nginx?

I'm using Nginx 1.2.4 in combination with PHP-FPM 5.4.8 with a fastcgi pass and trying to pass custom parameters to PHP. Here are the options I have found so far: using the env directive to set an ...
1
vote
1answer
733 views

Turn off gzip for a location in Nginx

How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and ...
0
votes
1answer
4k views

Unable to install PHP-FPM on Apache (Failed to connect to FastCGI server)

I have been having problem installing php-fpm for use with apache2-mpm-worker. This is the guide that I am following. According to the guide's Step 5, Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi ...
0
votes
1answer
310 views

File upload folder permission fastCGI - How to make it writeable?

I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems. The folder (and all ...
1
vote
1answer
2k views

Apache FCGI PHP-FPM Mac OS X 10.8 unable to bind

So I have found a few other threads about this kind of issue, but their solutions aren't working for me. Basically, this is my development machine and the setup has been fine for a number of weeks ...
1
vote
0answers
357 views

fastcgi cache how-to cache for logged-in users and make it custom for each user

Currently I'm doing cache using fastcgi_cache for non-logged-in users, and using ( if + fastcgi_no_cache + fastcgi_cache_bypass ) to pass logged-in users directly to backend which is PHP-FPM. this ...
9
votes
3answers
25k views

nginx fastcgi “Primary script unknown” when configuring userdir

I hate configuring nginx. It's so complicated. How do I get PHP to work in my user dirs? Here's the relevant part of my nginx.conf: location ~ ^/~(.+?)(/.*)?$ { autoindex on; ...
1
vote
2answers
480 views

Nginx closes connection while PHP-Fpm is processing

I have a PHP script that does some data processing. The time that it takes to the script to finish all the job is based on the user input. It's not unusual that it takes 5-15 minutes of processing. ...
0
votes
1answer
494 views

PHP-APC Installation

Trying to get my head around the way to install APC cache on PHP 5.3.13. That's a VPS with apache, configured preferably through whm/cpanel (although not only). I read a bunch of articles where it ...
1
vote
3answers
1k views

Caching: Varnish vs fastcgi_cache on Nginx in a multiple websites envirnment

I have a setup of a VPS with several websites. Some of the websites are WP websites and some of them are other dynamic websites. I'm interested in adding a sort of reverse proxy/caching layer. ...
1
vote
1answer
407 views

Apache + mod_php 4x slower than Nginx + PHP-FPM

I've been benchmarking a Drupal 7 site and I've found apache is up to four times slower in terms of page execution than an Nginx set up I've created. As it's page execution time my understanding is ...
2
votes
2answers
2k views

Disable FastCGI Read Timeout in Nginx?

Is there a way to disable the read timeout for FastCGI? (fastcgi_read_timeout) Setting it to zero does not work and just causes an immediate timeout. Nginx 1.0.5 PHP-FPM 5.3.6-13ubuntu3.6 The ...
-3
votes
1answer
199 views

How do you setup PHP to run as user as CGI?

Been trying lots of examples but nothing seems to be working. I don't wanna use yum/apt-get I want to do everything from source so I get a better understanding. Yum/apt-get just cheats the system and ...