2009-03-25
mst3kroqs
function realpath($path) in init.php somehow destroys or otherwise corrupts paths which contain windows directory symlinks, eg. mklink /d
Explanation:
In order to emulate my production linux hosting environment, I created an equivalent local Windows directory structure for my WAMPServer LAMP stack. This meant that I did not have to change path values in configuration files or database, as long as I omitted drive letter.
For instance:
Linux home dir: /home1/myaccount/public_html/dokuwiki
Windows home dir: C:\home1\myaccount\public_html\dokuwiki
So, the thing is, the 'public_html' direction is actually a directory symlink, eg. in C:\home1, the following command was issued:
mklink /d public_html c:\dist\php\dokuwiki-2-14-09
The 'dokuwiki' directory is actually stored at:
c:\dist\php\dokuwiki-2-14-09\dokuwiki
In any case, the fullpath() function mangles this path, confirmed by modifying the function as such:
function fullpath($path) {
return ($path);
}
Things work great after that ...