LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Directory directive bug

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2006, 06:20 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Default 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.
Reply With Quote
  #2  
Old 12-13-2006, 01:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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!
Reply With Quote
  #3  
Old 12-14-2006, 06:08 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Default 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
Reply With Quote
  #4  
Old 12-14-2006, 09:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
My bad, it's a bug introduced while fixing previous one.

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.
Reply With Quote
  #5  
Old 12-16-2006, 10:13 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Default 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.
Reply With Quote
  #6  
Old 12-16-2006, 11:11 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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!
Reply With Quote
  #7  
Old 12-17-2006, 01:17 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Default 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).
Reply With Quote
  #8  
Old 12-17-2006, 07:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
What directives are in the .htaccess file under /cgi-bin/ dir? I will take a look.
Reply With Quote
  #9  
Old 12-17-2006, 05:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:47 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.