Search results

  1. N

    LSAPI PHP Handler config / stats questions

    you don't have to, but it's a good practice we recommend. building lsphp with same compile options and same version php with apache, once any issue with lsphp, you can switch back to apache, see if same issue exist. if exist, then fixing it at apache side, then rebuild matching lsphp again to...
  2. N

    Rewrite rule not work !

    try: RewriteEngine On RewriteCond %{HTTP_HOST} ^dl\.lianportal\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.dl\.lianportal\.com$ RewriteRule ^(.*)$ http://lianportal.com/$1 [R=301,L]
  3. N

    high-traffic site loads quickly, low-traffic site loads slow

    good point, looks more reasonable -- database warming up has caused the delay. to verify this, just put a phpinfo() page under the documentroot, if phpinfo() is fast at any time, then the culprit is mysql; otherwise, it may be related to litespeed.
  4. N

    monitor bandwidth usage per virtualhost

    have to write your own script to analyze the log files to get the bandwidth usage per virtual host, mimic cPanel's perl script.
  5. N

    [solved] High APC Fragmentation but Low Usage

    thanks, a good example to discover apc.user_entries_hint behavior which most people(include both of us) may not know of. experience gained :)
  6. N

    monitor bandwidth usage per virtualhost

    you can create a "bytes log" for each virtual host, then calculate the bandwidth usage for each virtual host. I think this is what cPanel has done in this way.
  7. N

    Litespeed 4.2.1 Custom PHP Issue w\Daemon Mode

    please refer http://blog.litespeedtech.com/2012/11/29/change-php-ini-under-php-suexec-daemon-mode-not-possible/ "When php.ini needs to be overridden for one user, LSWS 4.2.1 will automatically switch to non-daemon mode and start a fresh PHP process with a customized php.ini." I think it...
  8. N

    [solved] High APC Fragmentation but Low Usage

    you can search apc_delete() and apc_cas() in php source if these functions exist any configuration options in your site's php script regarding apc? also change the settings of apc.user_entries_hint 4096 to 10, to 16K(16384) etc, see the status of fragment.
  9. N

    [solved] High APC Fragmentation but Low Usage

    did some search, have not found a simple way to disable user variable cache. for fragment, it's more relating to add/delete cache entry frequently. since you set apc.ttl 0 apc.user_ttl 7200 which add operation can be 0 if shared memory always have free space(in your case). but if php...
  10. N

    [solved] Locale

    good test script. I ran it with lsphp5, both on command line and lsws, the result is so no problem at my test. can you run it at command line: #/usr/local/lsws/fcgi-bin/lsphp5 /path/to/test.php
  11. N

    [solved] High APC Fragmentation but Low Usage

    I guess it may due to variable cache. if php script use apc_delete(), then it may cause fragment illustrated in the screenshot. to experiment, you can temporarily disable variable cache to watch the fragment status.
  12. N

    [solved] Locale

    looks it can be customized. in IP.Board's AdminCP -> Other Apps -> Calendar -> Calendar Settings -> Time / Date Formatting -> Date format: there are 4 choices available: MM/DD/YYYY YYYY/MM/DD DD/MM/YYYY YYYY-MM-DD
  13. N

    [solved] Locale

    I think locale setting should be taken care of the php script (invision power board), or lsphp5. any difference of phpinfo() between apache and lsws ?
  14. N

    Compatible mod_security rules

    please report to bug@ ..., if you've not done it yet.
  15. N

    how install wildcard in litespeed

    what is "wildcard" you refer? if it's an open source, please post its URL.
  16. N

    PHP Selector

    please refer: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:opcode_cache how to build apc.so
  17. N

    PHP Selector

    http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:multiple_phps_in_control_panel_lsws but not sure
  18. N

    Can't load multiple PHP pages at once

    No, can't. since the temp.png not sent to user yet. the 1st line is to tell litespeed web server, "please send this file to user" maybe you have to
  19. N

    [LSWS 4.2.1] restarts automatically to fix 503 Errors

    googled the error message, this is the best result I've got: http://linuxtoolkit.blogspot.sg/2012/06/bug-soft-lockup-cpu3-stuck-for-10s-on.html see if it will resolve your issue or have sny improvement.
  20. N

    Can't load multiple PHP pages at once

    I have an idea in your php script, create a temporary symbolic link to the file, like a.jpg, then "X-LiteSpeed-Location: /path/to/a.jpg". when download complete, delete a.jpg. or create a cron job, clean up these temporary soft link(a.jpg) which created 1 hours ago(for example).
Top