LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Directory directive bug (http://www.litespeedtech.com/support/forum/showthread.php?t=787)

slimak 12-13-2006 06:20 AM

Directory directive bug
 
Hello,
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 http://virtual_host//. 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.

mistwang 12-13-2006 01:16 PM

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 ..."

Thanks!

slimak 12-14-2006 06:08 AM

Reply
 
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 http://www.litespeedtech.com/support...ory_auto_index

mistwang 12-14-2006 09:44 AM

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.

slimak 12-16-2006 10:13 AM

OK
 
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.

mistwang 12-16-2006 11:11 AM

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!

slimak 12-17-2006 01:17 AM

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).

mistwang 12-17-2006 07:26 AM

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

mistwang 12-17-2006 05:30 PM

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. :)


All times are GMT -7. The time now is 10:36 PM.