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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP SCRIPT_FILENAME Problem when Symlink

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2009, 05:33 AM
gkunst gkunst is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Default PHP SCRIPT_FILENAME Problem when Symlink

HI,

i like to use the fantastic File Access Control in a virtual-host setting with a lot Symlinks.

When i use Restrained=yes then the PHP SCRIPT_FILENAME Path is showing, when accessing a file over a symlink, the path of the symlink and not the name of the symlink.

Eg. Symlink test -> ../abc

With Restrained = No: SCRIPT_FILENAME -> test/file.php
With Restrained = Yes: SCRIPT_FILENAME -> ../abc/file.php

LiteSpeed 4.0.11 and PHP 5.2.11

I think this is a Bug?

Guillermo

PS. Sorry for my english ;-)

Last edited by gkunst; 11-02-2009 at 05:44 AM..
Reply With Quote
  #2  
Old 11-03-2009, 12:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 5,889
LSWS resolve the symbolic link when a site is restrained.
Reply With Quote
  #3  
Old 11-03-2009, 12:43 PM
gkunst gkunst is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Can this change in one of the next Versions. Or as a extra feature?
Reply With Quote
  #4  
Old 11-07-2009, 02:16 PM
karaeL karaeL is offline
New Member
 
Join Date: Nov 2009
Posts: 1
yeah .. my problems symlink forbidden error open_basedir , sampLe : SampLe : ln -s /home/user/public_html/index.php index.txt - index.txt u--------- 0 index.txt i dont read for index.txt .. why ? relevance of this posix_eval there is , english a little bad sorry
Reply With Quote
  #5  
Old 11-08-2009, 09:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 5,889
That's normal, as nobody can read the symbolic link.
Reply With Quote
Reply

Tags
bug, php, restrained, script_filename

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 08:02 PM.



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