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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [solved] Litespeed is switching user id is .htaccess is present

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2012, 02:49 AM
Karl Karl is offline
Member
 
Join Date: Oct 2011
Posts: 16
Default [solved] Litespeed is switching user id is .htaccess is present

Hi,

We have an odd issue, we have an account, that was moved from one drive to another, with a symlink in place from old location to new:

/home/example -> /home2/example

Folders:

/home/example/public_html -> example.com
/home/example/public_html/sub -> sub.example.com

We have userdir enabled, so that: sub.example.com/~example would load content from:

/home/example/public_html

(don't ask)

Now this all works fine, and a PHP script getting the posix_userid() returns the correct user ID.

Now if we place a .htaccess file in:

/home/example/public_html

when accessing a script via:

sub.example.com/~example/script.php

it outputs 99 - the nobody user. If we remove the .htaccess from /home/example/public_html then the self same script gives the correct userid for the example user.

Any help much appreciated, this seems a bit of a bug. The .htaccess is empty, nothing in it at all. All files and directories have the correct example user ownership.

Thanks,

Last edited by NiteWave; 09-05-2012 at 06:23 PM..
Reply With Quote
  #2  
Old 08-30-2012, 09:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is not something can be easily reproduced in our lab.
Can you please enable debug logging , run one test with .htaccess present, one without, send the section of related log file to bug@litespeed...
Reply With Quote
  #3  
Old 08-30-2012, 09:46 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
make sure you are using the latest 4.1.13 release, do a force reinstall before running the test.
Reply With Quote
  #4  
Old 08-30-2012, 09:59 AM
Karl Karl is offline
Member
 
Join Date: Oct 2011
Posts: 16
Hi,

It's on 4.1.13 and we've already tried a force re-install. Will test with debug logging enabled.

Thanks,
Reply With Quote
  #5  
Old 08-30-2012, 10:32 AM
Karl Karl is offline
Member
 
Join Date: Oct 2011
Posts: 16
So where do I send these logs?

I've got it with and without the .htaccess file present. I can't see anything myself in them that doesn't look right.

I don't fancy posting them here, as they obviously have quite a lot of sensitive info in them.

Thanks,
Reply With Quote
  #6  
Old 08-30-2012, 11:05 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by Karl View Post
So where do I send these logs?

I've got it with and without the .htaccess file present. I can't see anything myself in them that doesn't look right.

I don't fancy posting them here, as they obviously have quite a lot of sensitive info in them.

Thanks,
you can pm or email to bug@
Reply With Quote
  #7  
Old 08-30-2012, 12:42 PM
Karl Karl is offline
Member
 
Join Date: Oct 2011
Posts: 16
Hi,

Sent to bug@ about an hour or so ago.

Thanks,
Reply With Quote
  #8  
Old 09-05-2012, 12:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
this issue has been addressed in the latest 4.1.13 build.
Reply With Quote
  #9  
Old 09-05-2012, 01:41 PM
Karl Karl is offline
Member
 
Join Date: Oct 2011
Posts: 16
Quote:
Originally Posted by mistwang View Post
this issue has been addressed in the latest 4.1.13 build.
...and it works like a charm, thanks.
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:29 AM.



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