We will give it a try in our lab, I think the rule should work.
Are you using the standard edition or Enterprise, only Enterprise support mod_security rules.
We cannot help you with this kind of information. It is not enough.
You need to show us the Apache configuration that bans your IP. You can PM me if you want.
The error is pretty obvious already, you should set "PATH envrionment" to include the directory hold gcc binary. just use PATH for your shell.
config.log is in the expanded php-5.2.5 directory.
Which control panel are you using, looks like LSWS think a secure site has been configured on that IP:port combination.
Can you please send your Apache configuration file httpd.conf and all included configuration filr to bug (at) litespeedtech . c o m
Just remove the "public" appeared one by one,
when you define a rails vhost member from the template, make sure do not append public to the vhost root configuration. it should point to the root directory of your rails application.
Do not use lsruby_runner.rb, just run simple.rb directly by changing the command configuration, use a LSAPI context instead of *.rb script handler to invoke the app.
AEM's code should work.
And if you want to make your code works, I think you need a little more changes need to...
have you added "require lsapi" ?
other changes need to be made are
rack.run_once=false
LSAPI uses hash to store ENV, so need to do env=ENV.to_hash, just env=ENV
It is a lot harder to do what you want. and some are just one time job, some require special permission, etc. Every system is different, it closes to be impossible to make it work well on all the platforms.
When you need to upgrade your PHP binary, you will appreciate the GUI.
That's caused by large request body, LSWS store large request body in swap memory, and the partition hold the swap directory may be full. the default swap directory is /tmp/lshttpd/swap, you can change it to another directory.
LiteSpeed does not have the infrastructure in place to manipulate the response, just send it as is.
It is possible to implement something with an external LSAPI filter, but it is not efficient.
maybe the PHP 5 build does not have all required modules to run your PHP script, please check error.log and stderr.log.
Do a "strace" on the PHP process if still no clue.