Bug #15236
closedMy host uses symlink on server!
0%
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)