Xammp and symbolic link

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

Xammp and symbolic link

Postby n.osenni » 14. January 2018 12:15

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?
n.osenni
 
Posts: 3
Joined: 14. January 2018 12:07
XAMPP version: 7.2.0
Operating System: windows

Re: Xammp and symbolic link

Postby Altrea » 14. January 2018 18:44

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xammp and symbolic link

Postby Nobbie » 14. January 2018 20:29

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 86 guests