can't make symlink work
Posted by: bobsuss (---.ext.ti.com)
Date: January 17, 2007 09:01PM

I successfully installed wamp5 1.6.6 and got .php pages up and running under c:\wamp\www\mydir\* e.g. [localhost] works fine.

I would like put some of the pages in a different location so I made a shortcut in c:\wamp\www to the new location. I made sure

Options FollowSymLinks

and restarted apache. ( I assume symlink==shortcut in Wamp land.) But I can't get to the linked directory. Browser shows 404 file not found and apache log shows "File does not exist: C:/wamp/www/shortcutdir" . I checked permissions on the shortcut and it appears to be ok.

What else should I check to get the shortcut to be followed?

Options: ReplyQuote
Re: can't make symlink work
Posted by: yfastud (72.236.169.---)
Date: January 17, 2007 09:42PM

It's hard to say w/o seeing the codes you actually edited.

Check my old post here for the idea

[forum.wampserver.com]

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: can't make symlink work
Posted by: bobsuss (---.ext.ti.com)
Date: January 18, 2007 03:03AM

Ok the problem was that

symLink != shortcut

in windows land. Apparently shortcuts don't work period. I used the Alias mechanism and it worked fine for mapping to a dir somewhere else on the local disk.

So next I tried to alias to a dir on a mapped network drive. I used the same lines in the .httpd.conf as for the local disk Alias, but apache won't restart and there is nothing in the Apache error log. I can remove the lines and Apache restarts fine.

Do I need special permission settings to make a mapped network drive work?

Bob


Alias /foo/ "C:/Documents and Settings/x0066829/My Documents/foo/"

<Directory "C:/Documents and Settings/x0066829/My Documents/foo">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

####### These lines cause apache to not restart - nothing in Apache error log

Alias /track/ "Z:/track/www/"

<Directory "Z:/track/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

Options: ReplyQuote
Re: can't make symlink work
Posted by: yfastud (---.cable.mindspring.com)
Date: January 18, 2007 04:30AM


Options: ReplyQuote
Re: can't make symlink work
Posted by: bobsuss (---.ext.ti.com)
Date: January 18, 2007 05:54PM

The solution is to use UNC names. Do NOT use mapped drive letters e.g. Z:/foo/goo

This works:

Alias /track/ "//samba_svr/bob/track/www/"

<Directory "//samba_svr/bob/track/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

Options: ReplyQuote
Re: can't make symlink work
Posted by: yfastud (72.236.169.---)
Date: January 18, 2007 06:23PM

So that links to a folder on another computer or from a portable network drive?

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: can't make symlink work
Posted by: bobsuss (---.ext.ti.com)
Date: January 18, 2007 10:03PM

Correct. In this case WAMP running on a PC is using files on a unix file system made accessible via samba.

Options: ReplyQuote


Sorry, only registered users may post in this forum.