PHP SCRIPT_FILENAME Problem when Symlink

Discussion in 'PHP' started by gkunst, Nov 2, 2009.

  1. gkunst

    gkunst New Member


    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?


    PS. Sorry for my english ;-)
    Last edited: Nov 2, 2009
  2. mistwang

    mistwang LiteSpeed Staff

    LSWS resolve the symbolic link when a site is restrained.
  3. gkunst

    gkunst New Member

    Can this change in one of the next Versions. Or as a extra feature?
  4. karaeL

    karaeL New Member

    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
  5. mistwang

    mistwang LiteSpeed Staff

    That's normal, as nobody can read the symbolic link.

Share This Page