After updating to the Windows Fall Creators Edition, the latest Windows 10 update, I can no longer access my sites/virtual hosts when they are stored in my OneDrive. I'm using WAMP 3 and have my virtual hosts outside of the www folder, inside a folder in my onedrive:
c:/users/me/onedrive/server/site
c:/users/me/onedrive/server/siteone
c:/users/me/onedrive/server/sitetwo
The message below appears when trying to access either site, say for example navigating to site.dev:
"PHP Fatal error: Unknown: Failed opening required 'C:/Users/Me/OneDrive/Server/site/index.php' (include_path='.;C:\php\pear') in Unknown on line 0"
"PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0"
The message below appears when trying to setup a new vhost in that location (c:/users/me/onedrive/server);
"c:/users/me/onedrive/server/site does not exists or is not a directory"
Before this update on Oct. 10, 2017, I had no problem using and setting up my sites. After moving my site folder/s outside of my OneDrive folder, and remapping the vhost (updating the httpd-vhosts.conf), It worked again, with no errors.
c:/users/me/desktop/server/site
c:/users/me/desktop/server/siteone
c:/users/me/desktop/server/sitetwo
Also it must be noted that none of the file paths changed when i experienced this error, and WAMP always stayed green, even though i got those errors and could not access my site/s. I'd like to continue to use WAMP with my vhosts in OneDrive as i work between my desktop and laptop frequently and need the cloud to sync files back and forth. Much help would be appreciated. Thanks.
httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName site.dev
DocumentRoot "c:/users/onedrive/server/site"
<Directory "c:/users/onedrive/server/site/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
PHP Error Log
[20-Oct-2017 01:20:33 UTC] PHP Fatal error: Unknown: Failed opening required 'C:/Users/Me/OneDrive/Server/site/index.php' (include_path='.;C:\php\pear') in Unknown on line 0
[20-Oct-2017 01:20:37 UTC] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
c:/users/me/onedrive/server/site
c:/users/me/onedrive/server/siteone
c:/users/me/onedrive/server/sitetwo
The message below appears when trying to access either site, say for example navigating to site.dev:
"PHP Fatal error: Unknown: Failed opening required 'C:/Users/Me/OneDrive/Server/site/index.php' (include_path='.;C:\php\pear') in Unknown on line 0"
"PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0"
The message below appears when trying to setup a new vhost in that location (c:/users/me/onedrive/server);
"c:/users/me/onedrive/server/site does not exists or is not a directory"
Before this update on Oct. 10, 2017, I had no problem using and setting up my sites. After moving my site folder/s outside of my OneDrive folder, and remapping the vhost (updating the httpd-vhosts.conf), It worked again, with no errors.
c:/users/me/desktop/server/site
c:/users/me/desktop/server/siteone
c:/users/me/desktop/server/sitetwo
Also it must be noted that none of the file paths changed when i experienced this error, and WAMP always stayed green, even though i got those errors and could not access my site/s. I'd like to continue to use WAMP with my vhosts in OneDrive as i work between my desktop and laptop frequently and need the cloud to sync files back and forth. Much help would be appreciated. Thanks.
httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName site.dev
DocumentRoot "c:/users/onedrive/server/site"
<Directory "c:/users/onedrive/server/site/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
PHP Error Log
[20-Oct-2017 01:20:33 UTC] PHP Fatal error: Unknown: Failed opening required 'C:/Users/Me/OneDrive/Server/site/index.php' (include_path='.;C:\php\pear') in Unknown on line 0
[20-Oct-2017 01:20:37 UTC] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0