Questions tagged [fastcgi]

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

FastCGI is an open interface web servers can use to run applications as separate isolated processes. It is an enhancement of the original NCSA CGI interface specification, with a range of improvements. The primary improvement over the standard CGI approach offered by FastCGI is performance, hence the name.

FastCGI is supported by a broad range of Web Servers (such as Apache, nginx, lighttpd).

730 questions
1
vote
3 answers

PHP fast cgi (used in conjunction with NGINX) freeze on suspend

I set up a very small local network for web development. The webserver is a stack of MySql 5.1.37 NGINX 0.8.19 PHP 5.2.10 with w/ Suhosin-Patch 0.9.7 and Xdebug v2.0.4 The server itself runs ubuntu karmic 9.10. In order to provide PHP to NGINX I…
mac
  • 500
  • 1
  • 5
  • 15
1
vote
0 answers

Apache + Nginx + HHVM FastCGI on Mac OS X not working?

My phpinfo() correctly tells me that I am running HHVM 3.18.1 on my Apache webserver. If I try to load any PHP page other than my index.php, I get: [Thu Aug 17 11:35:56.542841 2017] [proxy_fcgi:error] [pid 19023] [client 127.0.0.1:59730] AH01067:…
NobleUplift
  • 165
  • 4
  • 17
1
vote
1 answer

How can I turn off fastcgi_intercept_errors for a specific path

I just created an API for my flashy new website and was hoping to return error responses with relevant status codes. However, I already configured normal paths to use error pages with the error_page directive which I would prefer not removing. I…
Uberswe
  • 159
  • 3
  • 9
1
vote
0 answers

How to determine how many threads are being used by IIS with wfastcgi?

I have setup Python Bottle web application on IIS using wfastcgi. All works fine, but I am trying to understand how multi-threading works. I did a bit of testing, and I fount out IIS starts several bottle applications (as opposed to calling the same…
SRKX
  • 113
  • 6
1
vote
2 answers

NGINX + PHP7 + FastCGI Not Executing PHP Files and Downloading PHP file to client

The title says it all... follows are my config files. There have to be many others looking for an updated solution to the FastCGI configuration woes. Merci! I enabled log_level debug for php-fpm and follows is the output. [29-Mar-2017…
Gus Quelle
  • 11
  • 1
  • 3
1
vote
2 answers

Remove index.php from Nextcloud urls, using Apache+fastcgi

I installed Nextcloud on my Webfaction web space, and want to remove the "index.php" in the URL. I followed the instructions here, but then realized that it says: Furthermore these instructions are only working when using Apache together with the…
jdm
  • 191
  • 1
  • 11
1
vote
0 answers

how do I modify php verbs web.config

I have a project that needs the PUT request enabled for PHP. By default GET, HEAD, and POST are enabled but I need to enable PUT verb from my web.config, not from IIS manager. How can I do this?
1
vote
0 answers

Site becomes inaccessible due to PHP-FPM listen queue, CPU touches 100%

I've been racking my brains apart trying to solve this issue that comes up randomly every few hours on my production server hosting a single Wordpress blog (with decent traffic: 2000 users realtime on average days, 5000+ on good days, pageviews per…
1
vote
1 answer

nginx "fastcgi_cache_valid 404" not working

I am doing simple caching with nginx. It works fine for 200 responses, but 404 responses do not "hit" the cache logic for some reason, and I do not understand why. What I mean by "doesn't hit the cache logic", is based on my add_header X-Cached.…
Iskar
  • 241
  • 1
  • 8
1
vote
1 answer

cgit and nginx treating the index page as a repository

I am running a git repository browser using cgit, on nginx. Opening the index page causes a No repositories found error to be shown instead of the index. I believe it is because foo.bar/ gets handled as foo.bar/cgit, which then gets interpreted as a…
librin.so.1
  • 131
  • 5
1
vote
2 answers

Nginx fastcgi_cache exclude session cookie

Need help finding the correct setup for using Nginx fastcgi_cache without caching the PHP session cookie. Here is what I currently have below. Testing this however if I go to a page that has been cached, delete my PHPSESSION cookie in the browser,…
cdlaforc
  • 11
  • 1
  • 3
1
vote
1 answer

FcgidWrapper Permission Denied

I am trying to setup FastCGI to work with PHP on Apache 2.4.6 (CentOS). I am following the instructins verbatim from the docs: https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html /etc/httpd/conf/httpd.conf: ...
1
vote
0 answers

FastCGI: Access denied

I'm trying to set up FastCGI caching for my wordpress website running on nginx and using PHP-FPM. Currently, when I try to visit the site, all I get is a bland "Access denied.". If I comment out fastcgi_cache drm_custom_cache from my nginx server…
Shreyas
  • 191
  • 7
1
vote
0 answers

AWS Linux EC2 - How to install suPHP or FastCGI php hander

Seems I'm having permissions issue with AWS Linux EC2. Specifically, I am migrating a Joomla site, and extension and core updates from Joomla Admin won't install because of Apache user/group permission issues. I've done some digging and seems an…
BradM
  • 111
  • 3
1
vote
0 answers

Set up Bugzilla on IIS 10 with FastCGI

I'm a bit of an IIS noob so apologies if this is vague. I've successfully set up Bugzilla on IIS 10 but it's pretty slow - a few seconds to load each page even on the same local machine. As I understand it I need to use FastCGI to fix this. I…
AshleysBrain
  • 111
  • 2