Virtual host root in OneDrive - php files are not working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Virtual host root in OneDrive - php files are not working

Postby lubomirfiala » 27. October 2017 12:28

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?
lubomirfiala
 
Posts: 1
Joined: 27. October 2017 12:23
XAMPP version: 7.1
Operating System: windows

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

Postby Wellington224 » 26. November 2017 17:39

Your problem could be using ondrive since W10 rel 1709. I had to move documentroot off of OneDrive.
Wellington224
 
Posts: 5
Joined: 15. August 2015 10:12
Operating System: Windows 10

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

Postby torvista » 16. March 2021 11:08

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".
torvista
 
Posts: 18
Joined: 27. July 2009 04:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 130 guests