Page 1 of 1

Xammp and symbolic link

PostPosted: 14. January 2018 12:15
by n.osenni
I install xammp (7.2.0; Windows) to C:\xampp. In my onedrive folder I create htdocs folder with all my files. In xammp folder I delete htdocs folder. Then I create symbolic link in cmd
Code: Select all
mklink /d "C:\xampp\htdocs" "C:\Users\n.osennij\OneDrive\Develop\xampp\htdocs"

After that correct apache vhosts, windows hosts. And try to view my local sites. Site withowt php has no problemp. But if try to open site with php, I have next error
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:/xampp/htdocs/db/index.php' (include_path='C:/xampp/php/PEAR') in Unknown on line 0


What can I do?

Re: Xammp and symbolic link

PostPosted: 14. January 2018 18:44
by Altrea
Hi,

This is not working. You need to save your files outside of the OneDrive folder.

Relating to this it is working the otherway round. Save your files in your htdocs folder and create a symlink linking to your onedrive.

best wishes,
Altrea

Re: Xammp and symbolic link

PostPosted: 14. January 2018 20:29
by Nobbie
n.osenni wrote:What can I do?


Dont put Xampp into the cloud. I does not work, even worse, your database will crash definately and you will loose all data. Its your decision to do so or not, not support from here.