Hello.
I checked internet and found dozens the same reports, mostly a few years old, however no final solutions nor answers.
Please note, reports I've found on Internet, apply do various combination of operating systems.
In my case host as well as guest are Windows machines. Host is Win7 64b, Guest is WinXP 32b.
In my case php source files are stored on Host machine.
On guest machine servers are installed (apache+php, database). Apache dir points to shared directory (shared by VirtualBox mechanism).
Files are perfectly accessible to apache as well as php. For example I can read files using file_get_contents() function without problem.
There is one exception: function is_readable(file) returns false while file is in fact readable.
I tried to run VB with admin rights - without reason.
I though that VB5.0 beta will bring some change, but it's not.
I checked php 5.2 as well as 5.3. On (php) forums I found statement that it must be VB related issue.
My question is how to manage the issue. Is it really a VB bug, unresolvable issue, or I just have to apply some configuration tasks to make it working?
With regards
php/is_readable and shared dirs
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: php/is_readable and shared dirs
This is a simple mechanism and doesn't support every filesystem operation. Use a true network share, not a VirtualBox one.MaXyM.PL wrote:Apache dir points to shared directory (shared by VirtualBox mechanism).
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: php/is_readable and shared dirs
Fair enough. But it's not an answer I'm looking for.
A way it works is inconsistent. This should be the reason to fix it.
On my side, I cannot activate windows sharing due to security policy settings. So I'm stuck.
with regards
A way it works is inconsistent. This should be the reason to fix it.
On my side, I cannot activate windows sharing due to security policy settings. So I'm stuck.
with regards
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: php/is_readable and shared dirs
Sorry you are stuck but Shared Folders are a way to tranfer files between host and guest. It was never meant to be a Network Share replacement.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.