Questions tagged [php-cgi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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. ...
Marwelln's user avatar
  • 599
7 votes
2 answers
4k 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 ...
Kurt's user avatar
  • 73
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 ...
2hamed's user avatar
  • 479
4 votes
1 answer
10k 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 ...
Josh Deriosk's user avatar
3 votes
1 answer
583 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 ...
art vanderlay's user avatar
2 votes
2 answers
29k 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: ...
Ryan Thompson's user avatar
2 votes
2 answers
7k 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 ...
João Pinto Jerónimo's user avatar
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
2 votes
1 answer
238 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=$...
Isaac's user avatar
  • 544
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()" ...
KingFox's user avatar
  • 23
2 votes
0 answers
2k 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 ...
Matworms's user avatar
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: ...
Lion's user avatar
  • 508
2 votes
0 answers
400 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 ...
patrick's user avatar
  • 31
2 votes
1 answer
9k 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 ...
Anthony's user avatar
  • 367
1 vote
3 answers
6k 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 ...
Sandeep Bansal's user avatar
1 vote
2 answers
5k 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 ...
Darksworm's user avatar
1 vote
2 answers
5k 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, ...
MacMac's user avatar
  • 2,141
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 ...
mrm8's user avatar
  • 65
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> ...
Nisam's user avatar
  • 113
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 ...
doublesharp's user avatar
1 vote
4 answers
3k 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 ...
alexfontaine's user avatar
1 vote
1 answer
5k 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 ...
Dr I's user avatar
  • 975
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 ...
Tar's user avatar
  • 265
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 ...
Chris Hart's user avatar
1 vote
1 answer
189 views

How to fix "Segfault in Cherokee"?

I keep getting the following in my mail. The Cherokee 'panic action' script, /usr/bin/cherokee-panic, was called for pid <number> (). This means there was a problem with the program, such as a ...
Van Nguyen's user avatar
1 vote
1 answer
3k 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 ...
Valery Letroye's user avatar
1 vote
0 answers
562 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-...
Mohsen Movahed's user avatar
1 vote
0 answers
100 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: (...
alex body's user avatar
1 vote
0 answers
134 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 ...
MrNorm's user avatar
  • 153
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 ...
Pierre's user avatar
  • 133
1 vote
0 answers
666 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 ...
Alaa Alomari's user avatar
0 votes
1 answer
2k views

PHP-FPM + PHP-5.2.14 + NGINX - Giving 404

I've been slaving away trying to get PHP working via PHP-FPM. One of our servers is getting hit by slowloris is apache cant handle it. I got NGINX running all fine and passing data back to apache but ...
Andre Jay Marcelo-Tanner's user avatar
0 votes
2 answers
4k 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 ...
Robert hue's user avatar
0 votes
1 answer
297 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....
Dr I's user avatar
  • 975
0 votes
2 answers
3k views

php-cgi memory usage higher than php's memory limit

I'm running apache with a worker MPM and php with fastcgi. the following are my mpm limits: StartServers 5 MinSpareThreads 5 MaxSpareThreads 10 ThreadLimit 64 ...
Josh Nankin's user avatar
0 votes
1 answer
310 views

Clear gettext cache of PHP-Apache Server to apply .mo updates

Although many questions on SO already relate to this, they're A) pretty old and B) I felt that it's better to ask about this here, as it seems to be related to some server-level, and not programming-...
DevelJoe's user avatar
  • 187
0 votes
1 answer
125 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 (...
J. Prorok's user avatar
0 votes
2 answers
138 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....
Zeta Two's user avatar
  • 101
0 votes
1 answer
931 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 ...
Ledgemonkey's user avatar
0 votes
2 answers
8k 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 ...
Oudin's user avatar
  • 341
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 ...
Spencer's user avatar
  • 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 ...
Magic's user avatar
  • 155
0 votes
1 answer
761 views

Starting php-cgi: spawn-fcgi: child signaled: 25

Starting php-cgi: spawn-fcgi: child signaled: 25 Does anybody know what this could mean? I'm trying to start php-cgi on CentOS. The only thing I can say is that it was working before the hosting ...
ySgPjx's user avatar
  • 157
0 votes
0 answers
614 views

PHP on IIS 10 , site running slow

I have IIS 10 running on windows server 2022, wordpress website running php is setup on iis. Everything was working fine until we decided to upgrade php from 7.4 to 8.0. now the website is painfully ...
Learner's user avatar
0 votes
0 answers
405 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?
shenkwen's user avatar
  • 199
0 votes
1 answer
867 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 $...
Addy's user avatar
  • 101
0 votes
1 answer
732 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 ...
demlasjr's user avatar
0 votes
1 answer
490 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 ...
KBsurfer's user avatar
0 votes
0 answers
3k 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 ...
Philipp Zedler's user avatar
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 ...
Klemen's user avatar
  • 1