FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

learn more… | top users | synonyms

1
vote
3answers
10k 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 ...
0
votes
1answer
937 views

NGINX / fascgi-mono-server4 - Multiple sites

Here is my /etc/nginx/sites-available/default: # Sample site server { listen 80; ## listen for ipv4 server_name web; access_log /var/log/nginx/web.access.log; ...
1
vote
1answer
423 views

fastcgi-mono-server with Nginx is much slower than xsp4

We started testing our MVC4 app on xsp4 server compiled with mono-3.0.3, speed was enough and we decided to set up production fastcgi-mono-server4 (version 2.11.0.0) with nginx (1.2.6-r1). Single ...
1
vote
1answer
2k views

Nginx and Nagios passing through FastCGI Handler, 403 Error

I'm currently working on the renewal of my Web plateform and switching from Apache to Nginx. So I've to test all our administrative and internal applications before doing it. Well, so far, I didn't ...
1
vote
0answers
206 views

Can lighttpd be configured to spawn it's own instances of PHP on Windows7?

Currently, this is how I start PHP and lighttpd and it works fine: start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521 start /b LightTPD.exe Once and awhile PHP crashes and I get 503 errors ...
2
votes
0answers
430 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 ...
0
votes
2answers
2k views

lighttpd: backend is overloaded

I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: (mod_fastcgi.c.2900) backend is overloaded; we'll disable it for 2 seconds and send the request to ...
4
votes
2answers
7k views

Nginx $document_root$fastcgi_script_name vs $request_filename

I can't notice any difference if in my config file I set fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; Or: fastcgi_param SCRIPT_FILENAME $request_filename; What do ...
3
votes
1answer
2k 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 ...
2
votes
1answer
82 views

Supervisord unable to shutdown fcgi processes

I've managed to set up supervisord with fastcgi on a django project of mine, the problem is that when I make mi program stop, the server keeps running somehow, and my page keeps online. Here is my ...
0
votes
1answer
455 views

fastcgi errors in log (ubuntu)

I have this in my /var/log/apache2/error.log file : [Thu Dec 20 16:10:37 2012] [notice] caught SIGTERM, shutting down [Thu Dec 20 16:10:37 2012] [alert] (4)Interrupted system call: FastCGI: read() ...
-3
votes
1answer
129 views

weird php .so error [closed]

Do I need to recompile or rebuild or something? I never had this issue before. /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information available (required by /usr/bin/php) /usr/bin/php: ...
1
vote
0answers
433 views

NGinx - PHP / CGI - No input file specified

I know this is a common problem. I googled and tried a lot but still doesn't work. "No input file specified" while calling PHP files from browser. I Installed nginx php/cgi on a fresh debian machine. ...
4
votes
1answer
553 views

Nginx - Enable PHP for all hosts

I am currently testing out nginx and have set up some virtual hosts by putting configurations for each virtual host in its own file in a folder called sites-enabled. I then ask nginx to load all ...
1
vote
2answers
366 views

FastCGI on lighttpd no data received

I have a simple FastCGI script: public static void main (String args[]) { int count = 0; while(new FCGIInterface().FCGIaccept()>= 0) { count ++; ...
1
vote
1answer
306 views

Long running php script hangs/terminates on IIS 7.5

I'm a bit of nube when it comes to configuring IIS 7.5 and Php so apologies if this is a silly question but I've been wrestling with this for over half the day and need some fresh input. I have a php ...
0
votes
1answer
319 views

310 too many redirects after moving drupal site to fast-cgi

Here is trouble: When i follow this link - http://znak.net.ua it rewrites to http://znak.net.ua/ru/ru/ru/ru/ru/ and i got Error 310 (net::ERR_TOO_MANY_REDIRECTS) This happend when i start using ...
1
vote
1answer
1k views

Connection refused while connecting to upstream

I'm running a Django website with nginx via fastcgi running on a TCP port 9000 on localhost. Everything appears to work correctly, but the error log is filled with lines like these: 2012/11/19 ...
1
vote
1answer
5k 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 ...
2
votes
1answer
217 views

Can't make PHP work as FastCGI on Apache and Windows

I'm trying to run PHP as FastCGI with no success. I made a *.conf file such on mod_fcgid page but without a wrapper script. Here is my conf: # php5 as FastCGI executable FcgidMaxRequestsPerProcess ...
0
votes
1answer
812 views

Apache + PHP via FastCGI

I'm running into some problems while attempting to run PHP via FastCGI in Apache. I have the FastCGI module loaded, but get the following error when attempting to load a page: The requested URL ...
2
votes
2answers
1k views

APC uptime 0 because of Fast

I have a VPS using Parallels/Plesk (11.0.9 Update #22, last updated at Oct 31, 2012 03:33 AM CentOS 6.3 (Final) x86_64) I have apache (CGI/FastCGI) installed and nginx as reverse proxy. Everything is ...
1
vote
1answer
1k views

how to install mono xsp4 and fastcgi-mono-server4

Quick question - I'm on Debian squeeze, running nginx fine and installed mono fine. Now I want to host a .net4 web application and as I understand it I'll need fastcgi-mono-server4 (and xsp4 when ...
1
vote
1answer
490 views

PHP5.3 FastCGI doesn't use global config's values

There's a Centos6.3 system. Apache 2.2.15 + mod_fcgid + PHP 5.3.3 There's a problem with date.timezone value. It's mentioned in the global /etc/php.ini like this: date.timezone = "Europe/Moscow" ...
1
vote
1answer
311 views

Reducing memory for worker MPM in Apache

I've moved from the prefork MPM to the worker MPM due to a process limit I was hitting on my VPS. However, memory usage increased after switching over (which is odd since the worker MPM is supposed ...
0
votes
1answer
63 views

Puzzle: php code get displayed when turn on https

When I try to set up https (let nginx listen on 443, with the ssl settings) and access my page, the quite surprising thing happens that I see my php code being displayed. I see this in the nginx ...
3
votes
2answers
784 views

Loopback connection via PHP's getimage size crashes server (Magento's CMS)

We were able to trace down a problem that is crashing our NGINX server running Magento until the following point: Background info: Magento Backend has a CMS function with a WYSIWYG editor. This ...
1
vote
1answer
432 views

Edit MaxRequestLen in FastCGI on IIS (Plesk)

I am receiving a 500 Internal Server Error when trying to upload large files on my server. All of my PHP settings are correct, i.e. post_max_size, execution_time etc... I am pretty certain it is a ...
0
votes
1answer
361 views

Internal Server Error on OSQA install using fastcgi on Hostgator

Before start, I have no Python experience or WSGI or FastCGI for that matter, but Iam trying to take a stab at installing OSQA on a shared hosting account at Hostgator. So far, what I have done is: ...
1
vote
0answers
89 views

timeout with apache & php w/ each virtual host has his own user process

I have 10 unix users in /home/. Each user is for a specific subdomain for example user www in /home/www/public_html is for www.mywebsite. blog in /home/blog/public_html is for blog.mywebsite. 90% is ...
1
vote
1answer
2k 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 ...
2
votes
1answer
8k 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 ...
2
votes
2answers
4k views

Haproxy not properly passing on X-Forwarded-For header

I have backend web servers that receive requests by way of haproxy->nginx->fastcgi. The web app used to see multiple ip's coming through in the X-Forwarded-For header, chained together with commas ...
0
votes
1answer
822 views

stopping fastcgi_cache for php-enabled custom error page

Since enabling the fastcgi_cache on my nginx server, my php-enabled custom error page has suddenly stopped working and I'm getting the internal 404 message instead. In nginx.conf: fastcgi_cache_path ...
0
votes
2answers
118 views

How to increase simultaneous requests for LIGHTTPD

I have Red Hat 6 and I've installed Lighttpd + MySQL and at the moment in getting 500 internal server error, logs shows that I have arround 2000 requests / sec, while as soon as requests drop below ...
0
votes
1answer
230 views

Separate domains vs. one domain with alias-domains

I have set up a LAMP-server using ISPConfig 3 for the administration. PHP is running over Fast-CGI. I have several domains, like my_site.com, my_site.net and my_site.org, but they all point to the ...
0
votes
1answer
582 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 ...
2
votes
1answer
3k 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
3answers
735 views

Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user

What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications. The server ...
13
votes
1answer
8k views

Multiple php versions simultaneously on Ubuntu

I want to be able to run multiple php versions on my development box running Ubuntu 12.04. What I want to accomplish is that when I use localhost as domain a default is used (let's say php 5.3.17). ...
0
votes
1answer
442 views

mod_fcgi produces random 500 Errors

php 5.4.7 via mod_fcgi when I run the site sometimes it works, sometimes it crashed with 500 Internal Error, this is what I see in error.log everytime I run the script [Mon Sep 24 18:50:43 2012] ...
1
vote
0answers
238 views

Lighttpd with FastCGI configuration running ViewVC - rewrite problems

At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
1
vote
1answer
3k views

how to add an open_basedir path in nginx vhost

In php.ini I've set open_basedir = /home/user/web/ Now I would like to run phppgadmin on a subdomain which needs to include files from /usr/share/phppgadmin. So I added the following line to the ...
1
vote
1answer
447 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 ...
0
votes
1answer
2k views

redhat Apache fast-cgi selinux permissions

My apache installation is running php as fastcgi, and the virtual hosts are pointing to /home/*/public_html. and the fastcgi are home/*/cgi-bin/php.fcgi the public_html setup with selinux was: ...
0
votes
3answers
1k views

Perl not working with Nginx via fastcgi, cannot decipher error logs

Im running CentOS 6.2, Nginx 1.2.3 following these Linode Instructions to get Perl to work with Nginx I've done everything upto the point of testing an actual Perl file. When I do this the browser ...
2
votes
1answer
89 views

Best Practice for “fastcgi_pass” Directive Location in NGiNX

Is best to put the fastcgi_pass 127.0.0.1:9000 directive in the fastcgi_params file for NGiNX, or to explicitly state it in the location for \.php$? Or does it not really matter?
0
votes
3answers
364 views

Apache - suExec - FastCGI - PHP = security issue

I installed Apache with FastCGI (mod_fastcgi), suExec and PHP on my local development box. Working perfectly, except one thing. Let's say I have two users: user1 - /home/user1/public_html user2 - ...
1
vote
1answer
2k views

nginx buffering data before sending to fastcgi

My nginx server is buffering all data POSTed by client, and when it has all data, it writes the data to fastcgi socket. How can we avoid that delay, and let fastcgi start receiving the data ...
1
vote
7answers
3k views

mod_fastcgi installation error

I've compiled Apache 2.4.2 successfully, but I'm facing an error while trying to compile mod_fastcgi module. Any tips? root@local:/usr/src/libapache-mod-fastcgi# /usr/local/apache2/bin/apxs -o ...