View Single Post
  #3  
Old 19th March 2010, 15:32
kisscoolman kisscoolman is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Wink Same problem

Hi there,

I suffer from the same problem, here comes my configuration :

Code:
ted:~# cat /etc/php5/cgi/php.ini | grep memory_limit
memory_limit = 128M

ted:~# cat /etc/php5/cgi/php.ini | grep max_execution
max_execution_time = 30

ted:~# cat /etc/php5/cgi/php.ini | grep timeout
default_socket_timeout = 60
mysql.connect_timeout = 60
Code:
ted:~# cat /etc/apache2/fcgi.conf
<IfModule mod_fcgid.c>
        AddHandler      fcgid-script .php

        IdleTimeout             600
        ProcessLifeTime         7200
        MaxProcessCount         1000
        DefaultMinClassProcessCount 3
        DefaultMaxClassProcessCount 100
        IPCConnectTimeout       8
        IPCCommTimeout          60
</IfModule>
(this file is included in every virtualhost)

The wrapper :
Code:
ted:~# cat /home/sites/XXXXX/php5-fastcgi-wrapper
#!/bin/sh

export PHP_FCGI_CHILDREN=0
export PHP_FCGI_MAX_REQUESTS=10000
exec /usr/bin/php5-cgi
A virtualhost exemple :
Code:
ted:~# cat /etc/apache2/sites-available/XXXXXX.YYY/www.XXXXXX.YYY
<VirtualHost *:80>
        ServerAdmin postmaster@XXXXXX.YYY
        ServerName XXXXXX.YYY
        RedirectPermanent / http://www.XXXXXX.YYY/
</VirtualHost>

<VirtualHost *:80>
        ServerAdmin postmaster@XXXXXX.YYY
        ServerName www.XXXXXX.YYY
        DocumentRoot /home/sites/XXXXXX/YYY/www/

        Include /etc/apache2/fcgi.conf

        <IfModule mod_fcgid.c>
                SuexecUserGroup XXXXX XXXXX

                <Directory /home/sites/XXXXX/YY/www/>
                        Options -Indexes +ExecCGI
                        AddHandler fcgid-script .php
                        FCGIWrapper /home/sites/XXXXX/php5-fastcgi-wrapper .php
                        AllowOverride FileInfo AuthConfig
                </Directory>
        </IfModule>

        AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/x-shockware-flash

        ErrorLog /var/log/apache2/XXXXX/error.log
        CustomLog /var/log/apache2/XXXXX/access.log combined
</VirtualHost>
The errors are the same as immobilia.

Any idea ?
Reply With Quote