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
0answers
342 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. ...
3
votes
1answer
324 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
2k views

502 Bad Gateway - nginx

I am randomly receiving 502 Bad Gateway error pages - I can reproduce this issue by modifying hosting plans in plesk 11 and in the same time refreshing a page for a minute or two. When I get the 502 ...
1
vote
2answers
232 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
181 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
194 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
618 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 ...
0
votes
1answer
2k 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
127 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
402 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
793 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
0answers
244 views

Custom php.ini with FastCGI seems to disable APC

I'm testing FastCGI and APC on cPanel server (CentOS 5.8, PHP 5.3.18, Apache 2.2.23). I want to allow users to have a custom php.ini by doing the following: Copying server's php.ini to user's ...
1
vote
1answer
693 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
365 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
212 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
49 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
385 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
221 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
203 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
80 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
927 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
5k 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 ...
1
vote
2answers
2k 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
446 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
105 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
187 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
356 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
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
3answers
410 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
4k 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
288 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
162 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
1k 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
0answers
369 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
0answers
168 views

iis php internal server error

I developed a website, using php/mysql running at IIS Server as CGI Server API. Suddenly it gives me error 500 after two weeks. It has lot of scripts but index.php home is working. But other script ...
0
votes
3answers
834 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
68 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
289 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
1k 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
2k 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 ...
9
votes
3answers
27k 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
506 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. ...
3
votes
1answer
516 views

Lighttpd, Python, MySQLdb Python Module and Permissions

After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
0
votes
1answer
303 views

eAccelerator with two versions of PHP through FastCGI

Alright so I will outline how everything is setup and running for me on my dedicated box. I have everything working accept eAccelerator only works on one of my PHP applications. Apache2 I have ...
1
vote
0answers
246 views

Slow WordPress with FastCGI

I recently upgraded my Media Temple server to dv4 and enabled FastCGI. I have this issue where the WordPress control panel on my sites goes slow. When I update or publish a post, sometimes it will ...
0
votes
1answer
461 views

apache crash and mod_fcgi error

Apache crash with the following error : mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5 mod_fcgid: /usr/local/cpanel/cgi-sys/php5 spawn score 10 >= 10, skip the spawn ...
0
votes
1answer
528 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 ...
2
votes
0answers
287 views

Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems

So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, ...
2
votes
4answers
4k views

SuExec: “command not in docroot” Even Though It Is?

Arch Linux 2011.08.19 (Linux 3.4.2 i686) Apache 2.2.22 with SuExec PHP 5.4.4 (cli) via FastCGI My sites were all working fine earlier… I’m not sure when it happened because I noticed it over a week ...