Issue Bug Closed

#15236My host uses symlink on server!

Claus Bach 11/24/05, 19:17 updated 07/25/08, 11:09

Description

I a’m trying to install TYPO3 on a server, but have some problems. The supporter from the hosting company tell me that it is because they uses a symlink to direct to there PHP-script on the server. We have changed index.php from:
>
>define(‘PATH_thisScript’,str_replace(‘//’,’/’, str_replace(‘\\’,’/’,
>(php_sapi_name()==‘cgi’||php_sapi_name()==‘isapi’
>||php_sapi_name()==‘cgi-fcgi’)&&($_SERVER[‘ORIG_PATH_TRANSLATED’]?$_SER
>||VER[‘ORIG_PATH_TRANSLATED’]:$_SERVER[‘PATH_TRANSLATED’])?
>($_SERVER[‘ORIG_PATH_TRANSLATED’]?$_SERVER[‘ORIG_PATH_TRANSLATED’]:$_SE
>RVER[‘PATH_TRANSLATED’]):($_SERVER[‘ORIG_SCRIPT_FILENAME’]?$_SERVER[‘OR
>IG_SCRIPT_FILENAME’]:$_SERVER[‘SCRIPT_FILENAME’]))));
>
>to:
>
>define(‘PATH_thisScript’,realpath(str_replace(‘//’,’/’,
>str_replace(‘\\’,’/’, (php_sapi_name()==‘cgi’||php_sapi_name()==‘isapi’
>||php_sapi_name()==‘cgi-fcgi’)&&($_SERVER[‘ORIG_PATH_TRANSLATED’]?$_SER
>||VER[‘ORIG_PATH_TRANSLATED’]:$_SERVER[‘PATH_TRANSLATED’])?
>($_SERVER[‘ORIG_PATH_TRANSLATED’]?$_SERVER[‘ORIG_PATH_TRANSLATED’]:$_SE
>RVER[‘PATH_TRANSLATED’]):($_SERVER[‘ORIG_SCRIPT_FILENAME’]?$_SERVER[‘OR
>IG_SCRIPT_FILENAME’]:$_SERVER[‘SCRIPT_FILENAME’])))));
>
….and then this file works all right. But we have locatede lot of files with this path, and i think it is a bad idea to change them – we will get in trouble when we install patches or upgrade the system later on, and maybee i’m not the one who will support the system in the future.

Do somebody have the right solution for this problem?

(issue imported from #M1928)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.