Directory directive bug

slimak

Well-Known Member
#1
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
Code:
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.
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
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

Well-Known Member
#3
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 https://www.litespeedtech.com/suppo...speed_wiki:cpanel:apache#directory_auto_index
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#4
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

Well-Known Member
#5
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

LiteSpeed Staff
#6
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

Well-Known Member
#7
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

LiteSpeed Staff
#9
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. :)
 
Top