Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache/PHP + Symlinks (Windows 7) |
|
Author |
|
MishterTea
Joined: 01 Jun 2015 Posts: 3 Location: UK
|
Posted: Mon 01 Jun '15 16:28 Post subject: Apache/PHP + Symlinks (Windows 7) |
|
|
Hi,
I'm using a standard WAMP setup on Windows 7 Pro but use a custom base library for different sites so symlink its folders into each project (one folder below web root, the other in it).
This seems to work fine in general but recently we've started upping the requests made to certain pages (REST API) and once 5 or 6 simultaneous requests come through PHP starts failing on 'require_once' functions saying it can't access the file.
If I remove the symlinks and copy the files over instead, everything is fine. I've tried 'mklink' with both '/D' and '/J' flags but both exhibit the same issue.
I'm using 'httpd-2.4.12-win32-VC11.zip' and 'php-5.6.9-Win32-VC11-x86.zip'. Any ideas?
Cheers,
Richard |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 01 Jun '15 16:47 Post subject: |
|
|
Are the junction points on the same hardrive?
Did you try /H to have a hard link? |
|
Back to top |
|
MishterTea
Joined: 01 Jun 2015 Posts: 3 Location: UK
|
Posted: Mon 01 Jun '15 17:06 Post subject: |
|
|
Yep, everything is on the same drive.
I'm symlinking folders so don't believe I can use the hard link flag? (I've just tried and got 'access is denied') |
|
Back to top |
|
MishterTea
Joined: 01 Jun 2015 Posts: 3 Location: UK
|
Posted: Wed 15 Jul '15 12:37 Post subject: |
|
|
Just to update, this is still an issue but for anyone in a similar boat I've temporarily worked around it by using real-time sync software (DSynchronize under Windows) to sync two folders instead of symlinking.
It's not nice, but it works for now.
Cheers,
Richard |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 15 Jul '15 13:12 Post subject: |
|
|
Did you try various settings for FollowSymLinks and SymLinksIfOwnerMatch? I do not know what their effcet is on Windows, but you never know. |
|
Back to top |
|
|
|
|
|
|