Search results

  1. M

    Multiviews support

    Yes, you do that with a rewrite rule. If a URL is ended with a '/', then strip the '/', append '.php', then test the existance of the file with a 'RewriteCond ..." Something like: RewriteCond %(DOCUMENT_ROOT}/$1.php -f RewriteRule ^(.*)/$ $1.php
  2. M

    mysql

    You need to check mysql socket configuration in lsws/conf/php.ini or in your php code.
  3. M

    PHP processes constantly climbing

    Hi Matt, Can you please tell me your configuration for lsphp, we will try to reproduce it. And if possible, please do "strace -p <pid_of_a hanging_php>", post your result, it will help identify the problem as well. Thanks, George
  4. M

    full command-line to try out the fcgi-app?

    emm, are you using prebuilt PHP binary comes with gentoo? You'd better build the binary yourself with our little fcgi patch, otherwise request with PATH_INFO parameter will break.
  5. M

    enable_phpa.sh fails

    I am pretty sure. you can set memory limit to "0" to use the system's default. Is it possible that the erealloc() failure is for shared memory? I think it is different from heap and configurable via kernel configuration, the default is like 20M or 30M, I am not exactly sure. As I know...
  6. M

    full command-line to try out the fcgi-app?

    Hi Thomas, You probably need to check the setuid and chroot configuration for the virtual host associated with the fcgi application. LSWS use the commend line specified in the configuration to start it, but in setuid mode, it is a bit complicated, as the suEXEC wrapper lscgid involves. I...
  7. M

    AWstats are not secured by password

    Sorry for the late response. a lot need to be caught up after the vacation. I just tried awstats with authentication realm on FreeBSD 4.11, works fine. Please turn on debug logging by setting "Debug Level" to "HIGH", then check your error.log. it should tell you what happened. Pay...
  8. M

    503 is back on 2.1.5 (and 2.1.4 as well)

    Looks like you need to increase the memory limit for lsphp, the default memory limit is in "server"->"security"->"CGI Resource Limit", each external application can set their own limits in the extapp configuration page. The notice about ProcessLimit should not matter, if you don't want to see...
  9. M

    PHP processes constantly climbing

    You cannot overwrite binary of a running process, will get "text file busy" error, have to do "rm lsws/fcgi-bin/lsphp" then "cp lsws/admin/fcgi-bin/admin_php lsws/fcgi-bin/lsphp", then restart lsws. The automatic upgrade does not upgrade lsws/fcgi-bin/lsphp, as it is not a good idea to...
  10. M

    mod_rewrite & query_string

    Sorry for the late reply, I was on vacation. Your rewrite rule should work at vhost level, or in .htaccess file if there is no multiple contexts involved. For example, if you have a vhost with document root at /www/vhost1/html/, and a context "/cgi-bin/"=> "/www/vhost1/html/cgi-bin/", and...
  11. M

    Run 4 lshttps

    Yes, if you want 4 lshttpd processes, you can order our 4 cpu license, unless you have a true 4 way system or using dual-core CPUs, we think 4 cpu license is over kill for dual xeon with hyper-threading.
  12. M

    High performing webserver

    Thanks!
  13. M

    503 is back on 2.1.5 (and 2.1.4 as well)

    Xing, thank you for your help. :-) The problem is not directly caused by LSWS, but a PHP problem, either the opcode cache or something else, LSWS is designed to recover from this kind of problem automatically when possible. So, you should receive email notifications that lsws restarts due to...
  14. M

    PHP processes constantly climbing

    If you are using our prebuilt PHP binary, please overwrite lsws/fcgi-bin/lsphp with lsws/admin/fcgi-bin/admin_php to make sure the latest LSAPI code has been used.
  15. M

    PHP processes constantly climbing

    Greetings from caribbean on world second largest ship. :-) I am on vacation now, can't answer all questions. Please make sure you are using the latest LSAPI, earlier version may have this kind of problem. Don't set "Max connections" too high, "Initial request timeout" and connection timeout...
  16. M

    Subversion

    Sorry, I did not notice you are from textdrive. :oops: I will work on that when I am back from vacation. :-)
  17. M

    Timeout Problem

    You need to increase the "Initial request Timeout" to at least the time that the slowest script takes. "Connection Timeout" should be longer than the "Initial request timeout". And the slow script should be made faster if possible. :-) yes, it probably do better when instances = 100 in your...
  18. M

    Subversion

    We probably will work on this feature next month. Have you ever considered using FrontPage Server Extension for this purpose?
  19. M

    High performing webserver

    We had told the owner of imagecash to stop using LSWS, he stopped using it for the portal but may still using it at the backend secretly. I will contact him again. Our license states: cannot use on a site which has direct links to adult content elsewhere. It is your freedom to choose the...
  20. M

    Proxy, FCGI cache ?

    Yes, it is still on top of our list, hopefully will be filled by the end of this year or at the beginning of next year.
Top