Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Setting up PHP in Cherokee 0.9.1

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


marcos at tenak

Oct 5, 2008, 9:34 AM

Post #1 of 5 (218 views)
Permalink
Setting up PHP in Cherokee 0.9.1

Hi,

I've just installed Cherokee and I'm now trying to setup PHP on it. I've found
the documentation part of the cookbook that explains how to set PHP, and it
seems that it should be configured by default. I think it is, because I see the
'php' information source there.

I have installed the php5-cgi package (running Debian stable), but no
/tmp/cherokee-php.sock file is created after restarting the server.

If anyone can guide me through the process I'll really appreciate it :)

Thanks in advance,
--
Marcos
http://tenak.net

_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee


taher at unixwars

Oct 6, 2008, 4:06 AM

Post #2 of 5 (204 views)
Permalink
Re: Setting up PHP in Cherokee 0.9.1 [In reply to]

Hi Marcos.
It should work out of the box. I'm not sure why it isn't.
First check that your installed php-cgi supports fastcgi. The *fcgi* part must appear.

taher[at]borg:~/src/cherokee/trunk/doc$ php-cgi -v
PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Jul 23 2008 06:38:29)

If the problem is unix-socket related, ¿could you try setting it up so that it uses a host:port?
Simply change your 'php' information source, where it says
Connection:
/tmp/cherokee-php.sock --> localhost:1234

Interpreter:
/usr/bin/php-cgi -b /tmp/cherokee-php.sock ---> /usr/bin/php-cgi -b 1234

Let's see if we can crack this one ;)

Regards

On Sunday 05 October 2008 18:34:08, Marcos wrote:
> Hi,
>
> I've just installed Cherokee and I'm now trying to setup PHP on it. I've found
> the documentation part of the cookbook that explains how to set PHP, and it
> seems that it should be configured by default. I think it is, because I see the
> 'php' information source there.
>
> I have installed the php5-cgi package (running Debian stable), but no
> /tmp/cherokee-php.sock file is created after restarting the server.
>
> If anyone can guide me through the process I'll really appreciate it :)
>
> Thanks in advance,

--
taher[at]unixwars.com
http://unixwars.com
_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee


marcos at tenak

Oct 6, 2008, 1:14 PM

Post #3 of 5 (199 views)
Permalink
Re: Setting up PHP in Cherokee 0.9.1 [In reply to]

Hi Taher,

On Monday 06 October 2008 13:06:44 Taher Shihadeh wrote:
> Hi Marcos.
> It should work out of the box. I'm not sure why it isn't.
> First check that your installed php-cgi supports fastcgi. The *fcgi* part
> must appear.

I've already checked it and I installed php5-cgi btw, but here it goes:

marcos[at]kwak:~$ php-cgi -v
PHP 5.2.0-8+etch11 (cgi-fcgi) (built: May 10 2008 10:41:01)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

> If the problem is unix-socket related, ¿could you try setting it up so that
> it uses a host:port? Simply change your 'php' information source, where it
> says
> Connection:
> /tmp/cherokee-php.sock --> localhost:1234
>
> Interpreter:
> /usr/bin/php-cgi -b /tmp/cherokee-php.sock ---> /usr/bin/php-cgi -b 1234

I also changed it to what you suggest, but still no luck :(

I think it can be something related to my cherokee build not supporting the
fcgi module (or at least, it's not loaded...). So maybe I can change my
question to: how do I check for the modules that are loaded by cherokee? :)

Thanks,
--
Marcos
http://tenak.net
_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Oct 6, 2008, 11:18 PM

Post #4 of 5 (197 views)
Permalink
Re: Setting up PHP in Cherokee 0.9.1 [In reply to]

On 06-oct-08, at 22:14, Marcos wrote:
>
> I think it can be something related to my cherokee build not
> supporting the
> fcgi module (or at least, it's not loaded...). So maybe I can change
> my
> question to: how do I check for the modules that are loaded by
> cherokee? :)

You can check the built-in modules by executing "cherokee -i".

Additionally, you can see whether the 'fcgi' modules has been compiled
by checking the plug-ins directory (it's usually either /usr/lib/
cherokee or /usr/local/lib/cherokee); there ought to be a file named
libplugin_fcgi.so.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee


marcos at tenak

Oct 7, 2008, 12:37 PM

Post #5 of 5 (189 views)
Permalink
Re: Setting up PHP in Cherokee 0.9.1 [In reply to]

Hi,

On Tuesday 07 October 2008 08:18:19 Alvaro Lopez Ortega wrote:
> You can check the built-in modules by executing "cherokee -i".

kwak:/usr/local/sbin# ./cherokee -i
...
Plug-ins
Built-in:
...

Ok, no built-in modules, ... let's check the others ..

> Additionally, you can see whether the 'fcgi' modules has been compiled
> by checking the plug-ins directory (it's usually either /usr/lib/
> cherokee or /usr/local/lib/cherokee); there ought to be a file named
> libplugin_fcgi.so.

kwak:/usr/local/lib/cherokee# ls *fcgi*
libplugin_fcgi.a libplugin_fcgi.la libplugin_fcgi.so

It seems that the module is there ...

Any other thing I should check? I assume the modules are auto-loaded when
needed or at server startup...

Thanks,
--
Marcos
http://tenak.net
_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.