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)
Updated by Sebastian Kurfuerst almost 19 years ago
Hi, I don't think that's a bug.
please use the newsgroups on news.netfielders.de, especially the NGs typo3.install for help. Symlinks are the preferred way of working with typo3.
Greets,
Sebastian
Updated by Sebastian Kurfuerst almost 19 years ago
btw... I don't see the difference between both your snippets. Could you please describe them again?
Greets, Sebastian
Updated by Claus Bach almost 19 years ago
Hi, .. well, i'm quit new in this kind of support on the internet, so i find it a little bit difficult ...... thank you for the answer. I will check the site you mensioned.
I have changed ...
define('PATH_thisScript',str_replace('//' ........
to:
define('PATH_thisScript',realpath(str_replace('//' .....
I don't know what the difference is, but the supporter from the hosting company told me to make this change, and it works. I have made the change in about 15 php files. I hoped there was a simpel and permanet way to solve the problem, so i didn't have to make changes in these files.
If you have som advise, please tell me. If not you can close this ....
Thank you ...
Claus