Wyrm xD! wrote:
>> What you can do is to test with a small configuration file. Lets try
>> this: First of all, create a temporal configuration file for this
>> test (Eg: /tmp/test.conf) and add this to the file:
>>
>> ====
>> DocumentRoot /tmp
>> Directory / {
>> Handler common
>> }
>> ====
>>
>> Then, launch Cherokee using that configuration file (as root):
>>
>> ====
>> /usr/sbin/cherokee -C /tmp/test.conf
>> ====
>>
>> Now, you should be able to see the content of your /tmp directory in
>> your browser. Once you have this running, you can start testing
>> what is wrong with your current configuration.
>>
> Ok now, it's alive!
> I tryied what you wrote and now I'm using a quite short cherokee.conf
> like follows:
>
> DirectoryIndex index.php, index.html, index.htm, index.shtml
>
> DocumentRoot /var/www
> Directory / {
> Handler common
> }
>
> Extension php, php4 {
> Handler phpcgi {
> ChangeUser on
> }
> }
>
> I'm still reading the old one looking for something wrong...
>
> The php extension also made me a mess trying to run a phpBB forum:
> the forum instalation returns 'an incompatiblity with the new php
> handler' (more or less), so I compared the php.ini in
> /etc/php4/mapache2 and the one in /etc/php4/cgi and the diference
> between was the missing line "extension=mysql.so". Adding this line
> at the cgi/php.ini file the phpBB looks as well as the other php
> files at my server. Surelly, should exist a different, kind and
> polite solution to this problem.. but I'll be happy for a while :)
I would use fcgi handler rather than phpcgi one for the PHP
execution. It worth running PHP as FastCGI, it is much faster.
The only thing you have to do is:
- Check that you PHP binary has been compiled with FastCGI
support. For this, you only have to execute "php -v" and ensure
that it is the "(cgi-fcgi)" version.
- Change the PHP extension configuration entry by something like:
=============
Extension php, php4 {
Handler fcgi {
Server local host:8000 {
Env PHP_FCGI_CHILDREN "5"
Interpreter "/usr/lib/php5/bin/php-cgi -b 8000"
}
}
}
=============
the PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUEST to set the number of
child processes inside the PHP daemon, and the number or request
that it can reply before resetting itself.
--
Greetings, alo.
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee