02-20-2006, 11:46 AM
Join Date: Aug 2005
Pike + LSWS ?
Hello, i'm learnig Pike from half year (easy to learn, highly object oriented, faster than php, python or ruby). It would be fantastic to use it with lsws trough ScriptRunner (that uses fastcgi), instead of writing own web daemons or caudium/roxen web servers. Scriptrunner module has been tested with apache and lighttpd with fcgi or scgi.
Have someone tried to configure Pike + Scriptrunner + lsws?
I tried and it's not working for me. And i completly dont understand how to configure some fastcgi apps to work.
I installed pike, libfastcgi, Public.Web.FastCGI as they said in tutorial and tested modules correctly, then i installed scriptrunner. And from here i dont now what to do. For apache it must be made this:
So in server External Applications i added FastCGI App:
Add a redirect to convert all requests to (*.pike) to /path/to/scriptrunner.fcgi($1) (actual syntax will vary based on the redirector you're using.
For example, if I've installed ScriptRunner so that the ScriptRunner.fcgi is called by the following request:
and I put a pike script in /some/other/path.pike on my website, I need my redirect to internally change
This is a common technique used by PHP and other languages. Alternately, you could use mod_actions to do the same thing:
AddHandler scriptrunner-pike-script .pike
AddHandler scriptrunner-pike-script .psp
Action scriptrunner-pike-script /path/to/ScriptRunner.fcgi
Max Connections: 10
Auto Start: Yes
and Script Handler:
Handler Type: Fast CGI
Handler Name: [SERVER LEVEL]: PikeScript
I tried also adding fcgi Script Handler and then rewriting pike files to scriptrunner.fcgi, but it is always waiting several seconds and showing 503 Service Unavaible. scriptrunner logfiles shows nothig.
Can somebody help me with this?