The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
4answers
8k views

How to change suexec root directory from “/var/www” to “/home”?

Hi I've installed suexec using on ubuntu 12.04: apt-get install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi However when I run the following command: sudo /usr/lib/apache2/suexec -V I ...
4
votes
3answers
6k views

mod_fcgi in virtualmin: graceful kill fail, sending SIGKILL?

Yesterday around 1am, our server ground to a crawl. This doesn't happen often, but I'm trying to get to the bottom of it. There is no unusual traffic volume, no unusual processes running, just all of ...
4
votes
1answer
572 views

Apache mass virtual hosting & suexec & fcgid

I followed Falco's tutorial and everything now works as expected for 2 users (e.g. john and alice) with their relevant directories (/var/www/john and /var/ww/alice). Now, I want to go to the next ...
4
votes
2answers
3k views

How to stop a random ramp in FCGI Processes Killing the server

So got the below earlier to day... Around that time the logs show a ramp in processes(600) and associated memory (1.2g), cpu usage load average (80) untill the server gave out. Server had to be hard ...
4
votes
1answer
883 views

1GB VPS - Apache Worker MPM - FCGID - Max concurrent connections - RAM CAP

I have spent a week or two researching and setting up my server to run Apache with the Worker MPM and FCID. I am trying to optimize it to allow for the most concurrent connections possible. It has ...
3
votes
1answer
787 views

Getting PHP to work with SPDY?

I recently switched my site over to using HTTPS in all the URL's. (My post here) I am running Apache with PHP on Ubuntu 12.0.4 I was told that I should install the Apache module for SPDY since I ...
3
votes
2answers
3k views

A single php-fastcgi process blocks all other PHP requests

I've recently switched to a FastCGI setup for PHP (Apache2-worker and mod_fcgid). However, when a single PHP script is very busy, it seems to block all other PHP requests. What would be wrong with my ...
3
votes
1answer
2k views

How do I run a PHP web application as a particular user and group on CentOS 5 with Apache?

I'm aware there are various different ways to do this but I'm not sure that the "best" way would be for my particular situation: Each site should have its own user account (site user) Virtual Hosts ...
3
votes
1answer
4k views

Configuration trouble: PHP through mod_fcgid on CentOS 5.3

I've been Googling and researching the topic for quite a while but found only one thorough guide... That don't work. I want to run PHP through mod_fcgid on Apache2 - CentOS 5.3. With my current ...
3
votes
2answers
551 views

mod_fcgid: can't apply process slot after software upgrade

I'm on a shared hosting plan with a Wiki and a Bulletin Board installation. After upgrading the Wiki to the latest release my users are not able to upload files with the integrated "media manager" ...
3
votes
1answer
258 views

linux + apache + mpm_worker + mod_fcgid + php5

I am using VPS based hosting for a website and found that default apache2 + prefork + mod_php is too resource intensive for my VPS to achieve acceptable concurrency. (Eating RAM) So I recently ...
3
votes
1answer
5k views

mod_fcgid process doesn't respawn

I have a Python script running on my server as a FastCGI using Apache2 and mod_fcgid. I let it spawn up to five processes. But I soon get messages like these in the Apache logs: [Wed Sep 02 23:16:34 ...
3
votes
1answer
687 views

Premature end of script headers, mod_fcgi

I have PHP website running under mod_fcgi in apache2. Problem is that in some cases i get (probability is something like 1/400): Premature end of script headers: controller.php and Internal Server ...
2
votes
2answers
11k views

mod_fcgid: read data timeout errors

I moved to an unmanaged server that uses fcgid (before I was using mod_php), and in the error logs I see tons of such errors: [Mon Apr 23 21:17:12 2012] [warn] [client 66.249.68.233] mod_fcgid: ...
2
votes
2answers
2k views

500 error after mod_fcgid error

I have this error on my sever: [Mon Feb 27 09:56:03 2012] [error] mod_fcgid: process /var/www/php-fcgi-scripts/web111/.php-fcgi-starter(7847) exit(communication error), get unexpected ...
2
votes
3answers
1k views

fcgid, suexec, and userdir

I'm trying to set up per-user trac instances, using fcgid. The problem is that trac requires rw access to the trac instance, so I need the fcgi process to run under the respective user. I have the ...
2
votes
1answer
4k views

Access Denied for PHP Files Only

Apache HTTP Server 2.2.21 with VirtualHosts under SuExec PHP 5.3.8 via fcgid Arch Linux 2011.08.19 I am getting 403 Access Denied errors from Apache any time I try to access a PHP file. HTML files ...
2
votes
1answer
1k views

How to find out the current setting for FcgidMaxProcesses on Apache?

While asking this question, I feel that it may be dumb - but I have no idea at the moment... How to find out the current setting for FcgidMaxProcesses on Apache? Background I experienced the ...
2
votes
1answer
1k views

lighttpd: Backend is overloaded + fcgi-server re-enabled + all handlers are down

We have a standard lighttpd deployment with PHP-CGI and our error logs are flooding with the following. This is causing a huge problem because we keep returning 500's to our clients: 2012-10-14 ...
2
votes
2answers
476 views

Sympa and Postfix: Apache error on list creation

I have setup sympa with postfix. I am having problems with creating lists. Everytime I create a list I get this in my /var/log/apache2/error.log: postalias: fatal: open /etc/aliases.db: ...
2
votes
1answer
2k views

How do I check if mod_fcgi is enabled in Apache and/or how to enable it?

I have a VPS with CENTOS 5.7 . We are using Apache 2.2.22 and mod_fcgi is supposed to be running according to WHM. I did a httpd -l and mod_fcgid.c was not listed there. I checked the httpd.conf ...
2
votes
1answer
275 views

Apache: orphaned fcgi php processes

We have a webserver with apache 2.2.14, PHP 5.3.2. PHP is executed using mod_fcgid (see bottom). Everything works fine but sometimes, and we still have to figure out what triggers this, when php ...
2
votes
0answers
1k views

Best opcode cache for fcgid? (APC vs eaccelerator vs xcache)

I have been reading a while the web trying to find out about opcode caches for fcgid. As I understand so far APC is not a good solution for fcgid, since APC with fcgid caches only per process and that ...
1
vote
2answers
10k views

Apache + SuExec + php-fpm - how to set them up?

I wonder if there is a good guide on how to setup Apache + SuExec + php-fpm? I have a server which I am going to use several separate website. So, I need php to be run as site-owner user. As I can ...
1
vote
4answers
3k views

Unable to upload files larger than 128KB error because of ​MaxRequestLen update

server : Plesk panel 10.3.1, PHP 5, Apache2 When I updated the plesk panel, I noticed a strange error while uploading files. My server does not allow any file to be uploaded above the 128kb, even ...
1
vote
1answer
215 views

Apache with PHP configured as FastCGI and scripts without suffix

I have working FastCGI PHP inside Apache using mod_fcgid. But I noticed that PHP scripts are executed even without .php suffix specified. Eg: if file is mail.php then http://example.com/mail.php and ...
1
vote
3answers
1k views

PHP + Fcgid hangs if download interrupted

Note: this is the same as this SO post, but is possibly more appropriate here as I suspect the problem is server config related rather than code related. I'm using a LAMP setup with PHP running ...
1
vote
1answer
8k views

Setting up Apache 2.2 + FastCGI + SuExec + PHP-FPM on Centos 6

I'm trying to follow this very detailed instruction here, I simply changed from www-data user to apache user, and is using /var/www/hosts/sitename/public_html instead of /home/user/public_html ...
1
vote
3answers
403 views

Wordpress (nginx cache + Apache + fcgid) pegging all 8 CPUs

I have a WordPress multi-user site that pegs all of my CPUs at more than 90% usage: top - 12:02:58 up 55 days, 5:25, 10 users, load average: 20.51, 15.66, 14.90 Tasks: 294 total, 24 ...
1
vote
2answers
575 views

PHP Include Always Fails

Apache HTTP Server 2.2.21 with VirtualHosts under SuExec PHP 5.3.8 via fcgid Arch Linux 2011.08.19 I am in the process of migrating from shared hosting to VPS. The code I had ran fine before the ...
1
vote
4answers
2k views

PHP crashing (seg-fault) under mod_fcgi, apache

I've been programming a site using: Zend Framework 1.11.5 (complete MVC) PHP 5.3.6 Apache 2.2.19 CentOS 5.6 i686 virtuozzo on vps cPanel WHM 11.30.1 (build 4) Mysql 5.1.56-log Mysqli API 5.1.56 ...
1
vote
3answers
502 views

Large File Uploads Consume Disproportionate Amount of Memory

Thinking about this more, the question really is: why is Apache putting an in-progress upload in memory instead of on disk? I should be able to upload a file that's larger than the total memory ...
1
vote
3answers
5k views

What could cause apache2 to not run index.php files through PHP FastCGI handler?

I'm trying to run PHP using FastCGI (mod-fcgid) under apache 2 with the worker MPM. I've used this blog post as a reference. It seems I've got everything working except one thing: When apache serves ...
1
vote
1answer
860 views

Apache2 + mod_fcgid + php stopped working after upgrade from Debian squeeze to wheezy

I've updated my server from Debian squeeze to Debian wheezy. On this server are several apache2 vhost which running php via mod_fcgid (I'm also using mod_suexec but this shouldn't be the problem). ...
1
vote
1answer
489 views

trac: “Internal server error (500)” with mod_fcgid and mod_suexec

I try to setup Trac on a shared server with shell access, SW is Trac 1.0.1, Python 2.6.6, Apache 2.2.15 with mod_fcgid and mod_suexec. I've set it up following the instructions from the wiki of my ...
1
vote
1answer
789 views

mod_fcgid error after upgrading from PHP5.3 to 5.4

I just made an upgrade from PHP 5.3 to 5.4 via dotdeb.org sources. After that, I get errors on vhosts with active FastCGI-Application. [Mon May 20 21:05:15 2013] [warn] [client xxx.xxx.xxx.xxx] ...
1
vote
1answer
670 views

Setting Trac with Apache and mod_fcgi results in either 404 or 403

I am trying to create a trac installation on my private server in order to use it for project management. I followed the instructions for installation and connecting to the apache server that can be ...
1
vote
1answer
490 views

Apache2/mod_fcgid/PHP Process Limits Not Respected

I've recently moved to Apache2 / mod_fcgid / PHP from nginx / php_fpm. This is the second server on which I've made this migration, but it's used much less frequently than the first, which is working ...
1
vote
3answers
2k views

Why is my apache2, mod_fcgid, php configuration causing 100% cpu usage?

Page load makes a quick initial connection, then hangs about 10 seconds before the page renders. When the server load goes up I start watching top & I see that both CPUs get pegged at times to ...
1
vote
1answer
1k views

How to setup Apache 2.2 (prefork) with mod_fcgid to test a C++ application?

I have written my first fastcgi application (C/C++), and I need to test it to ensure that it is behaving the way I expect it to. I have searched for examples on setting up Apache 2.2. with mod_fcgid, ...
1
vote
1answer
932 views

mod_fcgid, perl script output going to apache error_log

I'm trying to get an old Perl script running again after installing mod_fcgid. I had to install mod_fcgid for a new client, but it seems to have broken some of my other cgi scripts. When going to ...
1
vote
1answer
514 views

Pylons deployment on Apache using mod_fcgid

I tried to deploy my Pylons app using the instructions found here. This simply loads the default Pylons page when I visit the root of my domain. When I try to enter in any path, I receive the message ...
1
vote
2answers
3k views

Virtualmin: “PHP execution via fcgid requires the Apache mod_fcgid module”

I have a CentOS server with Virtualmin on it. I have configured PHP the way I want it, using Apache mod_fastcgi. However, when I click "Re-check Config" in Virtualmin, I get PHP execution via fcgid ...
1
vote
1answer
2k views

mod_fcgid + Python + Apache 2.2 / RHEL 5 : output to error_log, not browser

I'm trying to get a Django + mod_fcgid setup working (mod_wsgi is tricky as I have a statically-linked Python. Don't ask.) While this was trivial on my Mac OS X development box, getting it running on ...
1
vote
1answer
637 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
1
vote
0answers
240 views

File permission problems with Apache, FastCGI, and Prestashop

I am running a Prestashop installation on CentOS 6.5 and Apache 2.2.15. A while back I updated Apache and lost the ability to upload product images via Prestashop backoffice along with other problems, ...
1
vote
1answer
97 views

apache2 with mod_fcgid randomly hangs

I have had this config running on ubuntu 11.10 for more than one year. I had to move the service to a larger server, so I made a complete copy of the os disk with clonezilla and restored it to the new ...
1
vote
3answers
5k views

libapache2-mod-php5 uninstalled after update impossible to put back

I use Webmin to administrate my Ubuntu 12.04 x86_64 machine. Yesterday, as often, I got notified of updates and installed them. During the installation process, libapache2-mod-php5 has been ...
1
vote
1answer
153 views

When getting “Premature end of script headers” in Apache error log, is it possible to also log the GET arguments sent to the script?

I have a single PHP script on a fairly high traffic server that is throwing off a lot of errors of this sort: (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server ...
1
vote
0answers
540 views

Enabling mod_fcgid results in 403

I have an EasyPHP 12.1 setup (latest) on Windows 7x64 and I'm trying to enable mod_fcgid for PHP. I have added the following in my httpd.conf Include conf/extra/httpd-vhosts.conf LoadModule ...