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:
Name: PikeScripts
Address: UDS://tmp/lshttpd/myfcgi.sock
Max Connections: 10
Auto Start: Yes
Command: /usr/local/scriptrunner/ScriptRunner.fcgi
etc.
and Script Handler:
Suffixes: pike
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?
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:
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:
www.mysite.com/path/to/ScriptRunner.fcgi
and I put a pike script in /some/other/path.pike on my website, I need my redirect to internally change
www.mysite.com/some/other/path.pike
to
www.mysite.com/path/to/ScriptRunner.fcgi/some/other/path.pike
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
For example, if I've installed ScriptRunner so that the ScriptRunner.fcgi is called by the following request:
www.mysite.com/path/to/ScriptRunner.fcgi
and I put a pike script in /some/other/path.pike on my website, I need my redirect to internally change
www.mysite.com/some/other/path.pike
to
www.mysite.com/path/to/ScriptRunner.fcgi/some/other/path.pike
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
Name: PikeScripts
Address: UDS://tmp/lshttpd/myfcgi.sock
Max Connections: 10
Auto Start: Yes
Command: /usr/local/scriptrunner/ScriptRunner.fcgi
etc.
and Script Handler:
Suffixes: pike
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?