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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > cgi

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2005, 12:59 AM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default cgi

Hi,

I'm converting from apache to litespeed all the way but having some troubles with cpanel.

I would like to convert:
>> ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
into litespeed.

I've defined a CGI context the script alias like so:
URI /cpanel
Path /usr/local/cpanel/cgi-sys/redirect.cgi

and after I restart the server and goto /cpanel I get:

403 Forbidden
Access to this resource on the server is denied!

thanks
Reply With Quote
  #2  
Old 11-29-2005, 07:53 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The best way to debug this is to turn on debug logging by setting "Debug level" to "HIGH", then check lsws/logs/error.log

Make sure that permission of the CGI script has been set properly, virutal host has not been restrained to its vhost root, script has been enabled.
Reply With Quote
  #3  
Old 11-29-2005, 08:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If the server is in product, it is not recommended to turn on the debug logging though. Anyway, the error.log should log something helpful when 403 happened without debug logging.
Reply With Quote
  #4  
Old 11-29-2005, 12:55 PM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
debug:

2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] New request:
Method=[GET], URI=[/cpanel],
QueryString=[]
Content Length=0
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] Find context with URI: [/cpanel], location: [/usr/local/cpanel/cgi-sys/redirect.cgi]
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] processContextPath() return 24
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] processNewReq() return 24.
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] readToHeaderBuf() return 24.
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] HttpConnection::sendHttpError(),code=403 Forbidden
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] HttpConnection::flush()!
2005-11-29 21:53:38.370 [DEBUG] [myip:47010-0#www.mysite.com] Written to client: 572


owner of the file is set to the one as in the lswl config...
Reply With Quote
  #5  
Old 11-29-2005, 01:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Did you only dump the debug message?
there should be a "INFO" message shows the reason for "403".
Reply With Quote
  #6  
Old 11-29-2005, 01:22 PM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
hmm INFO is set but nothing comes out.

Enable Script = Yes
CGI Chroot Mode = Same as server
Reply With Quote
  #7  
Old 11-29-2005, 01:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Is "Restrained" set to "No"?
Reply With Quote
  #8  
Old 11-29-2005, 01:35 PM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
it's set to 'yes'. should i change it..?
Reply With Quote
  #9  
Old 11-29-2005, 01:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Should be set to "No", as you want allow that vhost access files beyond the vhost root.
Reply With Quote
  #10  
Old 11-29-2005, 01:45 PM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
ok set it to no, still no NOTICE or INFO just a 403.. same with cpanel's /webmail and the other
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 11:49 AM.



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