Symbolic Link Failure
Posted by: nefilim0 (82.152.35.---)
Date: June 11, 2010 12:56PM

Hi There

I am trying to run a website that has symbolic links to other files on my hard drive but I cannot get it to work:

So test.localhost.com points to c:\wamp\www\test
in c:\wamp\www\test\ I have created symbolic links to web directories in c:\wamp\www\test2\

When I try to open a php file in my browser (test.localhost.com/test.php) that exists in c:\wamp\www\test2\ I get the error:

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/wamp/www/test/test.php' (include_path='.;C:\php5\pear') in Unknown on line 0

It all looks fine in DOS/Windows Explorer. This is on Vista and the symbolic links were made using mklink.
Does anyone have any experience with this or suggestions as to why it is failing?

Thanks.

Options: ReplyQuote
Re: Symbolic Link Failure
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 11, 2010 04:57PM

symbolic links?

you need to use apaches vhost module to do this....

this will like a url to a folder

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Symbolic Link Failure
Posted by: nefilim0 (82.152.35.---)
Date: June 11, 2010 05:26PM

I've discovered it was a bug in php5.3.

If I use php5.2 then it works fine.

Options: ReplyQuote
Re: Symbolic Link Failure
Posted by: yfastud (Moderator)
Date: June 12, 2010 02:59AM

you need to setup vh properly

to setup vh, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Symbolic Link Failure
Posted by: nefilim0 (---.com)
Date: June 18, 2010 04:21PM

yfastud Wrote:
-------------------------------------------------------
> you need to setup vh properly
>
> to setup vh, follow this
> [blog.jlbn.net]


Thanks for the answer.
Yeah, vh was setup fine.
It was a PHP issue. PHP5.3 doesn't like symbolic links in Windows; like I said, rolled back to 5.2.11 and all works fine.

Options: ReplyQuote
Re: Symbolic Link Failure
Posted by: docus (---.dhcp.stls.mo.charter.com)
Date: January 30, 2013 06:51PM

Thanks for posting your solution, nefilim. They've finally fixed this bug in the 5.4.11 version of PHP: [www.php.net]

Options: ReplyQuote


Sorry, only registered users may post in this forum.