Project

General

Profile

Actions

Bug #15236

closed

My host uses symlink on server!

Added by Claus Bach almost 19 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-11-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF