This is the only thread I have found concerning this issue. I am having a similar problem.
I have two domain names in the same webspace, call them "
www.maindomain.com" and "
www.seconddomain.com". The second domain name points to a folder in my root directory, call it "folder1". So the secondary domain name points to "htp://www.maindomain.com/folder1" so that "htp://www.seconddomain.com" shows in the address bar. I am trying to install coppermine to this folder ("folder1") so that visitors to my gallery will see "
www.seconddomain.com" in their address bar. This creates some filepath problems, similar to the OP's.
If I access my gallery using
www.maindomain.com, everything works great. If I access the gallery using the second domain name, I receive errors when I do things such as try to register, login, change the config, etc. I have looked at my phpinfo, and many of the settings under $_SERVER are broken. For instance, when using the main domain name (example: htp://www.maindomain.com/folder1/gallery/phpinfo.php), $PHP_SELF is "/folder1/gallery/phpinfo.php" and all is well.
If I look at phpinfo through the second domain (htp://www.seconddomain.com/gallery/phpinfo.php"), then $PHP_SELF is "//folder1///gallery/phpinfo.php" and I get the errors. Settings such as _SERVER["SCRIPT_URI"] look like "
http://www.seconddomain.com//folder1///gallery/phpinfo.php" which is even worse.
Nibbler says I need to change $PHP_SELF in the init.inc.php file, but from reading this thread I am not sure exaclty what part of the code needs to be changed, or exactly what to change it to, or if this is the only thing that I need to change. Help would be appreciated. If there is no solution to this problem, please let me know so I can look at alternatives.
Thank you for reading.