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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [Solved] 403 Error with 4.1.5

Reply
 
Thread Tools Display Modes
  #11  
Old 10-13-2011, 01:09 PM
sysmesh sysmesh is offline
Member
 
Join Date: Jul 2011
Posts: 18
update: file uploads (images) to posts fail too (HTTP error) with nothing in the debug log that indicates an error :-(
Reply With Quote
  #12  
Old 10-13-2011, 01:20 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please check if PHP suEXEC is function properly or not.
write test PHP script to run "id" command, see if php processes is running as correct user ID.

I assume you are using PHP suEXEC, each web site uses its own lsphp5 running as the user id of the owner of the site.
Reply With Quote
  #13  
Old 10-13-2011, 01:24 PM
sysmesh sysmesh is offline
Member
 
Join Date: Jul 2011
Posts: 18
Actually all websites are under www-data (same user) as all are owned by us.
Reply With Quote
  #14  
Old 10-13-2011, 02:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
then make sure lsphp5 were running as www-data. Please show us the actual error.
Reply With Quote
  #15  
Old 10-13-2011, 10:40 PM
sysmesh sysmesh is offline
Member
 
Join Date: Jul 2011
Posts: 18
Hi,
LSphp is running under www-data (see attached).
Error 403 still happens (also attached).

I wish the logs would give me a hint of the cause but they seem useless as they show no errors or issues :-(

Anything else i can try?
Attached Images
File Type: jpg ls1.JPG (39.6 KB, 5 views)
File Type: jpg ls2.JPG (46.0 KB, 5 views)
Reply With Quote
  #16  
Old 10-14-2011, 09:51 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
you may also check stderr.log (e.g. /usr/local/lsws/logs/stderr.log) and syslog (e.g. /var/log/messages).

also check the ownership of your upload directory.
Reply With Quote
  #17  
Old 10-14-2011, 02:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
Originally Posted by sysmesh View Post
Hi,
LSphp is running under www-data (see attached).
Error 403 still happens (also attached).

I wish the logs would give me a hint of the cause but they seem useless as they show no errors or issues :-(

Anything else i can try?
For those 403 error, LSWS should log something about it. maybe you can turn on debug logging and try again. make sure debug level is "HIGH", log level is at "DEBUG".
Reply With Quote
  #18  
Old 10-15-2011, 12:33 AM
sysmesh sysmesh is offline
Member
 
Join Date: Jul 2011
Posts: 18
I think I might have found a solution: In the security settings of the server setup I've set the "check symbolic links" to "no" and it started to work again.
Thanks for your help!
Reply With Quote
  #19  
Old 10-15-2011, 03:04 AM
sysmesh sysmesh is offline
Member
 
Join Date: Jul 2011
Posts: 18
I was happy to soon.
Same issue remains :-(
I added a debug log to the site and FINALLY got this:
ModSecurity: Access denied with code 403, [Rule: 'ARGS' '(fromCharCode|http-equiv|<.+>|innerHTML|dynsrc|-->)']
[Msg: XSS attack]

How do I fix that?
Reply With Quote
  #20  
Old 10-15-2011, 03:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
You can locate and comment out that rule, or use

SecRuleRemoveById xxxxx

to exclude that rule for that URL.
Maybe you enabled Request Body scan by default, which may cause trouble with gotroot rules.
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 09:09 PM.



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