Page 1 of 1

Virtual host root in OneDrive - php files are not working

PostPosted: 27. October 2017 12:28
by lubomirfiala
Hi, i just set virtual host flowing the tutorial. DocumentRoot is in onedrive folder and url is http://rybnicky.localhost
Static files like css, jpg, etc. are working, but when i try to open php i get this error:
Code: Select all
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/OneDrive/xampp/rybnicky/index.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0

And i didn't found any answer on the internet for this. Can anybody help me?

Re: Virtual host root in OneDrive - php files are not workin

PostPosted: 26. November 2017 17:39
by Wellington224
Your problem could be using ondrive since W10 rel 1709. I had to move documentroot off of OneDrive.

Re: Virtual host root in OneDrive - php files are not workin

PostPosted: 16. March 2021 11:08
by torvista
I had this problem while trying out Laragon.
The problem is indeed OneDrive.
The folder in question was marked as "Always keep on this device".

in OneDrive->Settings->Settings->Files On-Demand: Untick "Save space and download files as you use them".
Within a few minutes the php file could be "found".