Questions tagged [php-cgi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

When is a new PHP-CGI process created?

My production server has been having a OOM issue. Upon investigating I find that a major memory eater is PHP-CGI processes. Each of my website, be it Joomla or Wordpress, is having 3 - 6 PHP-CGI ...
  • 199
0 votes
0 answers
54 views

Why are there many PHP-CGI processes?

My webmin server has been running into a memory issue, when I check the memory usage, I found this Why are there so many php-cgi7.4 processes? Is this normal?
  • 199
1 vote
1 answer
2k views

How to use .htaccess in a non open-basedir path of Synology/DSM 6.1

I am trying to use the trick described by Rob Van Aarle here to execute php pages in "paths not allowed" by default for Synology's web server... The purpose is to create packages which do not depend ...
0 votes
1 answer
695 views

How to Fix 'SCRIPT_NAME' while run php script using php-cgi?

I am trying to run below php file using Putty in wordpress. php-cgi -f info.php But this command throw this error Undefined index: SCRIPT_NAME. Server Setting: #fastcgi_param HTTPS $...
  • 101
0 votes
1 answer
546 views

Limit fastcgi (php-cgi) process time on Ubuntu 16.04

I want to limit the php-cgi processes time since the processes never close themselves and slowly all those processes eat the whole RAM (not cache/buffer) and the server starts going very slow. The ...
0 votes
1 answer
114 views

How to force httpd to use newer php/php-cgi

Hi so I have problem dealing with changing PHP version on Debian Wheezy server. It was previously Debian Squeeze with PHP 5.2.17, and I made a dist upgrade and also upgraded everything related to PHP (...
1 vote
0 answers
539 views

Apache:How to config for php-cgi.exe

I have configured apache for using php-cgi as follows: <Directory "c:/wamp64/cgi-bin"> AllowOverride All Options +ExecCGI AddHandler cgi-handler .php Action cgi-handler /local-...
0 votes
1 answer
423 views

php-fpm installed and running, but Apache24 still using CGI

On my Freebsd server, I have Apache installed with php-fpm, but phpinfo() reports that the server is using CGI/FastCGI instead of FPM/FastCGI. I can see several children of php-fpm, but they have no ...
0 votes
0 answers
2k views

"unsupported FastCGI protocol version" error with nginx and php-cgi under high load

I'm running a Wordpress site with NGINX and php5-cgi. My setup works, in principle. However, when there are requests in close succession, I sometimes see this strange error: [error] 5057#0: *706 ...
1 vote
2 answers
4k views

nginx fastcgi caching - multiple different expire times

I need to set up NGINX so that different locations would have different expire times for caching and some would have caching disabled. This is my current setup: fastcgi_cache_path /etc/nginx/cache ...
1 vote
0 answers
96 views

Simultaneously enable gzip and $STR_REPLACE in CGI in apache

I have a code in my CGI script for text replacement (for example replace 'red' with 'blue') $STR_SEARCH='red' $STR_REPLACE='blue' I am using the below code in .htaccess for enable replace function: (...
1 vote
1 answer
1k views

How to internal redirect from one virtualhost to another Apache [duplicate]

I'm upgrading my application to new PHP version. For that I created two virtualhosts one server PHP 5.3 application and another with PHP 5.6. My virtualhosts are like, <VirtualHost *:80> ...
  • 113
4 votes
1 answer
8k views

nginx: An existing connection was forcibly closed by the remote host

I am running nginx on Windows Server 2008 R2 and it seems to be crashing, it also uses php-cgi with it and the php-cgi is part of the problem. After about 30 seconds of being on the page php-cgi ...
0 votes
1 answer
2k views

Apache spawns bunch of php-cgi processes and they don't exit - webite hangs

Out of the blue, apache started to not to respond when I tried to load my website. Website is based on Drupal just for the information. I checked server status by doing service httpd status and it ...
  • 1
0 votes
0 answers
472 views

Php5-CGI is using 100% CPU on a single hit. How do I track down the culprit?

I ran into a strange problem with a Magento Store. The server was crashing when we hat a little traffic-peak so I checked what was going on. Using htop I found out that PHP5 CGI is using up to 100% ...
0 votes
2 answers
3k views

100% CPU usage on my CentOS VPS

I have a 512 MB VPS and hosting 2 WordPress websites on this CentOS server. I have installed apache + mysql + PHP + fast cgi on this server. Everything was working great from last 6 months. I have 500 ...
-1 votes
2 answers
1k views

How to sandbox a website subfolder?

Let's say I have a website under www.example.com and would like to also have a blog under a subfolder, e.g. www.example.com/blog/. How can I sandbox this folder, so that any script running inside it, ...
  • 99
2 votes
1 answer
7k views

Trying to install php-cgi / Apache / Ubuntu 14.04

I'm trying to use the "Php reverse shell" for school purposes on my clean installed Ubuntu 14.04. I configured my Apache/PHP/MySQL as I do normally. I need to get the php-function "pcntl_fork()" ...
  • 23
2 votes
0 answers
1k views

Apache 2.4 + mod_rewrite + FastCGI (php-cgi.exe) on Windows

I am trying to port my Mac config on Windows for some of my clients. Since Windows is not Mac OS, I have to use php-cgi.exe instead of PHP-FPM. I have tested each component individually and ...
1 vote
1 answer
5k views

502 Bad Gateway - Nginx, spawn-fcgi, WordPress

I host several sites on a CentOS VPS, and all was working fine until one of the WordPress sites on the server started returning a 502 Bad Gateway error. Other sites work fine. The WordPress site will ...
2 votes
1 answer
4k views

Secure PHP on IIS 8.5

I'm using IIS 8.5 on Windows Server 2012 R2 to host ASP.NET and also PHP-Applications. Because there are a few different PHP-Apps, I want to restrict the access by using open_basedir. The problem: ...
  • 496
1 vote
3 answers
2k views

WT-NMP - PHP-CGI randomly stops running with no error log

We have recently installed WT-NMP and are currently running Php-Cgi with php 5.4.24. We are running fairly simple php scripts and when testing everything is running fine. Over the weekend we wanted ...
1 vote
0 answers
115 views

OOM Issues with FastCGI - FastCgiServer config getting ignored

I'm using apache2 with mod_fastcgi to run PHP on a private shared server. I have combined this with suexec so I can run each virtual host as it's own UNIX user, keeping Wordpress owners happy. One ...
  • 153
1 vote
3 answers
5k views

No input file specified on nginx and php-cgi

I'm trying to run nginx and php-cgi on my Windows PC, I've got up to the point where I want to move the html directory back two directory's so I can sort of create a structure. The only problem I ...
0 votes
2 answers
129 views

Global and per user php.ini

On my server (lighttpd + php-cgi) I have several php-cgi processes, each running as the user of the site it's serving. I know I can set a php.ini for each process through the PHPRC enviroment variable....
  • 101
0 votes
1 answer
229 views

Wordpress multisite and redirect

I come to you because I'm facing a really strange effect on my hosting. I currently manage a server contening a NGINX/PHP-CGI and a wordpress multisite in it. My sites are created using subsite....
  • 943
48 votes
1 answer
142k views

Can't start php-cgi.exe - MSVCR110.dll is missing [closed]

Trying to setup nginx and php on my Windows machine, but every time I try to start php-cgi.exe I get a system error. The program can't start because MSVCR110.dll is missing from your computer. ...
  • 599
0 votes
1 answer
816 views

What are the affects of disabling CGI on my server to enable PHP CLI

I have a DS WHM - cpanel running apache / with litespeed I have a number of websites running on this server I need to run CLI on one of the sites the CGI module is enabled in the apache build. The ...
0 votes
1 answer
419 views

PHP-CGI process crashing twice a day in a wordpress hosted Dedicated Server

CGI process is crashing twice a day and comes up after apache httpd process restart. I am running CentOS 6.3 Server , 16GB ram, i5 Quad core processor. With just only one wordpress blog running with ...
1 vote
1 answer
4k 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 ...
  • 943
5 votes
1 answer
4k views

What is difference of PHP handler (CGI vs FastCGI vs Mod_PHP vs suPHP )?

I understand that there are four different PHP handlers out there (AFAIK). CGI (php-cgi) FastCGI (php-fpm) Mod_PHP suPHP I need to know the pros and cons of these handler and what environments ...
  • 469
1 vote
2 answers
4k views

website connection reset on first load

i'm using nginx with php-cgi. lately a problem has arose where if you don't view my site for a while, like 3-4 minutes, and then open it again, the first request you send will return connection reset ...
  • 265
0 votes
2 answers
7k views

How to debug solve 500 Internal error aws micro ec2 with suexec, Apache and php CGi

I'm running WordPress multi-site on an amazon micro ec2 with suexec, Apache and php CGi On Ubuntu 12.04 However I've been experiencing a lot of Internal server 500 errors and I'm in the process of ...
  • 331
1 vote
1 answer
3k views

Multiple PHP versions running as cgi

I'm trying to install a second version of PHP, to run alongside the current version of php. I've compiled the latest php source from github (5.5-DEV), and I'm trying to run it as CGI. Here is my ...
  • 133
2 votes
0 answers
368 views

Replicating Apache Multiviews + PATH_INFO in Nginx

I'm working on some old PHP code of mine that was previously served using Apache+Multiviews+PATH_INFO. I'm now trying to get this site up and running using nginx (which I use and adore for all of my ...
  • 31
7 votes
2 answers
3k views

How to prevent Apache from prepending REDIRECT_ to environment variables when running php as CGI?

I've been using MediaTemple's GridService as a production environment for a couple of relatively lightweight PHP sites. The process of setting up testing and staging environments is kind of ...
  • 73
2 votes
2 answers
27k views

php-cgi cpu usage is super high

I am getting constantly high and wildly fluctuating CPU usage % for php-cgi commands as seen via "top" on my Centos server.. I have a server density account and it seems that this is a common trend: ...
3 votes
1 answer
564 views

apache2 how to trace caller of SIGTERM

I have a dex x64 on a virtualbox win7pro host. My apache2 will stop responding after a page request or other activity such as upload via ftp. The php.cgi becomes non responsive and a restart is ...
2 votes
1 answer
232 views

Does PHP-CGI security issue (CVE-2012-1823) affect PHP running as regular users with mod_fcgid?

Does this PHP-CGI security issue (CVE-2012-1823) affect PHP when it's running under individual regular-user accounts with mod_fcgid? The wrapper .fcgi script I've been using is: #!/bin/bash PHPRC=$...
  • 534
0 votes
1 answer
223 views

How to know what .php scripts are eating debian memory?

We have apache2 web server installed with php in fastcgi Action application/x-httpd-php "/cgi-wrapper/fastcgi-wrapper" <Location /cgi-wrapper/fastcgi-wrapper> Options +ExecCGI ...
  • 145
1 vote
0 answers
658 views

php5cgi keeps dying and nginx gives 502 Bad Gateway

I have nginx on my server (Ubuntu 11.10). i have created the script below in /etc/init.d/php5cgi to start/stop/restart php5-cgi. the problem is that php5-cgi dies from time to another which makes my ...
2 votes
1 answer
8k views

Can I limit the number of php-cgi.exe that run per website on IIS 7?

I wasn't sure which was best to post in so I posted here and on http://webmasters.stackexchange.com I will delete the other if this post is more relevant here. I'm having a slight issue with memory ...
  • 367
2 votes
2 answers
6k views

How to effectively have less php-cgi processes running?

My server is a Linode 512, and on it I run a Wordpress MU with 3 websites (they don't get a lot of visitors) and a couple of NodeJS apps. I need to switch to Lighttpd because Apache 2 was using about ...
2 votes
2 answers
8k views

How do I install PDO and GD for php-cgi

I have PHP 5.3.6 and I use ubuntu. How can I enable/install PDO and GD Extensions. I have already tried installing php5-mysql and php5-gd. I have also tried adding this into my php.ini: extension=...
user avatar
0 votes
1 answer
850 views

Why is FastCGI hanging after few requests?

I've an issue with using nginx with fastcgi. It just runs for few requests and then it hangs/dies or whatever. Nginx then just returns bad gateway (502). This is the code I used to spawn fastcgi: ...
  • 759
1 vote
2 answers
4k views

When accessing PHP files, nginx throws an 404 error

Right, sorry for the previous, recent questions I've asked about nginx, this is just doing my head in. I've enabled PHP using fastcgi_php and it works just fine, however, when I access to a PHP file, ...
  • 1,951
0 votes
1 answer
2k views

Nginx PHP mbstring

I used this tutorial to install nginx on my Centos server http://moon.mastipoint.net/research/nginx-php-fpm-mysql-on-centos.html. I have everything running, however, I can't figure out how to install ...
  • 25
0 votes
1 answer
1k views

php-fpm not working several days,return 'No input file specified'

My server running ubuntu 64bit, nginx, php-fpm. Everything is working well. But several days after. The browser display 'No input file specified'.After I restart php-fpm. Everything run well again.But ...
  • 145
1 vote
2 answers
2k views

php-cgi shows mysql modules but throws "Call to undefined function mysql_connect()" error

I have compiled PHP 5.3.6 from source on Mac OS X 10.6 using the --with-mysqli=mysqlnd option. The output of both php -m and php-cgi -m show the mysqli and mysqlnd modules. When I run a simple test ...
1 vote
2 answers
3k views

How to restart php-cgi automatically with spawn-fcgi

I'm running nginx with php as fcgi. It's working just fine, however, php-cgi keeps on exit()ing after serving 500 requests. I tried increasing that value (PHP_FCGI_MAX_REQUESTS), and that worked, but ...
  • 65