Directory directive bug

Discussion in 'General' started by slimak, Dec 13, 2006.

  1. slimak

    slimak Well-Known Member

    I upgraded my lsws from 3.0pre to 3.0rc1. I found a bug. In httpd.conf (cPanel) is line:
    <Directory "/usr/local/apache/htdocs">
    When I enter the site by default VH (e. g. by the IP) then lsws redirect in loop to
    . When I change the line to:
    <Directory "/usr/local/apache/htdocs/">
    then it is working properly.

    I have also another problem in 3.0rc1. LSWS works for some time and after that it hangs up - lshttpd process consume 90-100% cpu and don't respond for requests. I turned debuging on and I will try to get more informations.
    Last edited by a moderator: Apr 21, 2017
  2. mistwang

    mistwang LiteSpeed Staff

    For the Directory directive problem, please download the updated package again, should be fixed.

    For the hanging problem, you can "strace <pid>" or attach to the process with GDB, with command "attach <pid>", then "bt", post the backtrace of stack. Or, you can try "kill -BUS <pid>" to let it dump a core file, send the core file to "bug @ litespeedtech ..."

  3. slimak

    slimak Well-Known Member


    Now it works good, but I found two other inconveniences:

    1. In new rc1 I have some notices like:
    [/usr/local/apache/conf/httpd.conf:3697] Unsupported ErrorDocument URL: , must start with '/' or 'http'.
    In httpd.conf the entry is good:
    ErrorDocument 400 /400.shtml

    2. When I do the upgrade (install lsws), I see an error:
    Installing, please wait...

    cp: cannot overwrite non-directory `/usr/local/lsws/share/autoindex' with directory `/root/lsws/lsws-3.0RC1/share/autoindex'
    After upgrade there is none default.php file in autoindex dir (there is only default.php.old). I had done a symbolic link described at
    Last edited by a moderator: Apr 21, 2017
  4. mistwang

    mistwang LiteSpeed Staff

    My bad, it's a bug introduced while fixing previous one.:p

    For the second one, install script has been updated to make default.php is copied over despite the error message.

    Please give the updated package a try.
  5. slimak

    slimak Well-Known Member


    Now every thing looks ok. Currently lsws doesn't hang also. Today I installed it at 8 cPanel servers and every thing is working good and fast. In next week I will try to install lsws at DirectAdmin server. Thanks for good work.
  6. mistwang

    mistwang LiteSpeed Staff

    Great! Thanks for the update.

    LiteSpeed should give a big boost in speed since Apache's htacess implementation is extremely slow.
    Would you mind giving us some number shows how much the improvments is? :)

    Do you have plesk server? We would like to verify the httpd.conf generated by Plesk as well. Thanks!
  7. slimak

    slimak Well-Known Member

    Anouther bug

    I will try to do some tests in next week. I don't have server with Plesk.

    Today my customer found bug: .htaccess file doesn't work in /cgi-bin/ dir (cPanel).
  8. mistwang

    mistwang LiteSpeed Staff

    What directives are in the .htaccess file under /cgi-bin/ dir? I will take a look.
  9. mistwang

    mistwang LiteSpeed Staff

    Checked the .htaccess problem in /cgi-bin/ dir, it is because there is another ScriptAlias directive for "/cgi-bin" pointing to /usr/local/apache/cgi-bin/ in the default vhost, and that directory has "AllowOverride None" in it. So, our httpd.conf parser was confused.

    It should be fixed in the updated package. :)

Share This Page