Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache, FastCGI and Error 503 |
|
Author |
|
myflower
Joined: 06 Sep 2012 Posts: 2
|
Posted: Thu 06 Sep '12 13:22 Post subject: Apache, FastCGI and Error 503 |
|
|
It was pointed out to me that my server is insecure, because anyone could read any file through PHP, even if it was out of his DocumentRoot.
I decided to reconfigure whole apache and all configuration files for virtual hosts and installed Mod FastCGI and I managed to get it running quite nicely, I don't have problems with rights anymore.
But there seems to be another problem. When I try to load more than 3 sites (on different VirtualHosts => different users on different threads) page loads for a while and than crashes on "Error 503: Service Temporarily Unavailable".
I tried increasing PHP_FCGI_CHILDREN var from my default setting for all VirtualHosts which is 0 to higher numbers, but without luck. I also tried to set KeepAlive var in my apache2.conf to Off as I read in some tutorial, but it seems like nothing helps.
Does anyone know how to resolve this issue? [My Apache error.log and suexec.log is empty.] |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 06 Sep '12 17:02 Post subject: |
|
|
may config that works with current 2.4.3 and used to work with 2.2.x
Code: |
FcgidMaxProcesses 50
FcgidFixPathinfo 1
FcgidProcessLifeTime 0
FcgidTimeScore 3
FcgidZombieScanInterval 20
FcgidMaxRequestsPerProcess 0
FcgidMaxRequestLen 33554432
FcgidIOTimeout 120
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/htdocs/
<Directory /var/www/htdocs/>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Require all granted
AddHandler fcgid-script .php
FCGIWrapper /usr/bin/php5-cgi .php
</Directory>
ErrorLog /var/logs/apache2/example_error.log
LogLevel warn
CustomLog /var/logs/apache2/example_access.log combined
</VirtualHost>
|
Now I'm using Server Version: Apache/2.4.3 (Unix) SVN/1.7.6 OpenSSL/1.0.1c mod_fcgid/2.3.8-dev |
|
Back to top |
|
myflower
Joined: 06 Sep 2012 Posts: 2
|
Posted: Thu 06 Sep '12 19:48 Post subject: |
|
|
Many thanks, this is exactly what I was looking for! I can finally go to sleep. |
|
Back to top |
|
|
|
|
|
|