Search results

  1. M

    LiteSpeed chroot setup

    You are welcome. :-) For Perl, Python or Ruby, you have to copy all related executable and binary into the jail, For MySQL, you can run it either inside or outside the jail, you can point the MySQL server socket to a path inside the jail like /chroot/tmp/mysql.sock, for applications inside...
  2. M

    LiteSpeed chroot setup

    please run "lsws/admin/misc/chroot.sh /chroot/ /chroot/opt/lsws/fcgi-bin/lsphp", should fix the missing library for you. or you can do "cp /lib/libresolv.so.2 /chroot/lib/".
  3. M

    LiteSpeed chroot setup

    The LSWS must be installed and run inside the chroot jail. I guess you should do as follow: # mkdir -p /chroot/opt/lsws # ./install.sh .... server root: /chroot/opt/lsws chroot path: /chroot
  4. M

    Ruby on Rails/FCGI problem

    Thank you for trying our product. I think the problem is the event dispatcher, are you using poll or devpoll? try switching to the other one, see if the problem disappear.
  5. M

    subdomains

    There is a bug in rewritemap will be fixed in next release, but you don't need to use the lowercase map, as the %{SERVER_NAME} has been converted to lowercase by LSWS already, so you can try: RewriteCond %{SERVER_NAME} !^www\.us\.pl$ RewriteCond %{SERVER_NAME} ^(.*)\.us\.pl$ RewriteRule...
  6. M

    subdomains

    Yes, you can use some simple rewrite rules to do it. You can reference section "Simple dynamic virtual hosts using mod_rewrite" in http://httpd.apache.org/docs/1.3/vhosts/mass.html
  7. M

    Security Question

    Yes, you can use $VH_NAME in the socket name like $VH_NAME_php.sock to archive this. And LSAPI may ignore the socket configuration if all LSAPI process is managed by LSWS directly (without PHP_LSAPI_CHILREN environment variable).
  8. M

    Security Question

    With LiteSpeed, you can run CGI/FCGI/LSAPI in setUid mode (suEXEC), sentence them into their own jail (chroot), in addtion to PHP safe_mode and open_basedir. To run all CGI/FCGI/LSAPI for one vhost in setUid mode, usually in the user id of owner of the document root directory, you just...
  9. M

    gzip

    I run some tests on this, but every thing looks fine. Will try more.
  10. M

    gzip

    Thank you! Xing, I will double check, see if I can figure out a work around. :-)
  11. M

    PHP Build Problem

    We use "--with-config-file-path=../conf", not an absolute path. The default php configuration file path is /usr/local/lib/php.ini, you can find out which php configuration file the binary is using/looking for from a phpinfo() page. It is not directly related to LiteSpeed SAPI at all.
  12. M

    Litespeed + Tomcat 5.5 howto?

    Thank you for your praise. Your configuration looks fine to me. You need to make sure that the AJP connector on port 8009 is enabled. Try "telnet localhost 8009". Configuration for AJP connector is in tomcat/conf/server.xml If the the AJP connector does not work very well, you can...
  13. M

    Security Question

    I think it is a php configuration issue, different php.ini is used for your binary and the pre-built binary. The pre-built binary uses lsws/conf/php.ini. Maybe you can try set "open_basedir" "safe_mode" configuration in your php.ini . It is a pure PHP security issue, not directly...
  14. M

    gzip

    Can you please create a simple test script for us to reproduce it in our lab?
  15. M

    cgi

    If you don't mind, PM me the login information about your server, I can take a look, could save both of us sometime.
  16. M

    cgi

    Should be set to "No", as you want allow that vhost access files beyond the vhost root.
  17. M

    cgi

    Is "Restrained" set to "No"?
  18. M

    gzip

    So, what exactly is the issue? I am lost. :?: :) The log should show you which file is missing, and you can take action accordingly. You can ignore that message, it is for the real time statistic.
  19. M

    cgi

    Did you only dump the debug message? there should be a "INFO" message shows the reason for "403".
  20. M

    gzip

    Log shows that response has been gzipped for the two php requests. And the gzip size limit is just for static files, have no effect on dynamic contents.
Top