Questions tagged [php-cgi]
The php-cgi tag has no usage guidance.
58
questions
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. ...
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 ...
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 ...
4
votes
1
answer
9k
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 ...
3
votes
1
answer
575
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
2
answers
28k
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:
...
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 ...
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=...
2
votes
1
answer
234
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=$...
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()" ...
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 ...
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: ...
2
votes
0
answers
388
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 ...
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 ...
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 ...
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
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, ...
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 ...
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>
...
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 ...
1
vote
4
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
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 ...
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 ...
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
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 ...
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 ...
1
vote
0
answers
560
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-...
1
vote
0
answers
99
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
0
answers
128
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 ...
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 ...
1
vote
0
answers
661
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 ...
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 ...
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 ...
0
votes
1
answer
270
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....
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
...
0
votes
1
answer
148
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-...
0
votes
1
answer
122
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 (...
0
votes
2
answers
135
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....
0
votes
1
answer
891
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
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 ...
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 ...
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 ...
0
votes
1
answer
752
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 ...
0
votes
0
answers
280
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 ...
0
votes
0
answers
85
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 ...
0
votes
0
answers
334
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?
0
votes
1
answer
799
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 $...
0
votes
1
answer
654
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
468
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 ...