Project

General

Profile

Actions

Bug #15236

closed

My host uses symlink on server!

Added by Claus Bach over 18 years ago. Updated almost 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 #1

Updated by Sebastian Kurfuerst over 18 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

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

btw... I don't see the difference between both your snippets. Could you please describe them again?
Greets, Sebastian

Actions #3

Updated by Claus Bach over 18 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

Actions #4

Updated by Ingo Renner almost 16 years ago

not a bug

Actions

Also available in: Atom PDF