Xampp & DropBox/OneDrive/Google Drive
With me where ever i go
As many developer we would like to have ower workspace available were ever we go.
Recently i got some problem with my computer and unfortunately i lost all my data and i don't have any backup so my need to have a up to date backup of my projects and have them available at any time and from any place is "VITAL". That ‘s why I tried using xampp on a cloud; with a storage space of 30GB offered by OneDrive or Dropbox or 10GB of Google drive that put us in the right spot!
How to do it?
The steps to get xampp on Dropbox (Same for the others ) in Windows are these:
- Install Dropbox on your computer
- Install xampp in a directory in a primary level (ex. c:\xampp).
- Run the setup-xampp
- Copy the directory “htdocs” from path “c:\xampp\htdocs” to the Dropbox directory “C:\Users\YOUR NAME\Dropbox\htdocs”. (Replace “YOUR NAME” with your user name!)
- Create the directory “mysql” in Dropbox.
- Copy the directory “data” from path “C:\xampp\mysql\data” to the Dropbox directory “C:\Users\YOUR NAME\Dropbox\mysql\data”
-
- Now edit the configuration file : “C:\xampp\apache\conf\httpd.conf”
- Find the code:
- replace with:
- Now edit the configuration file: “C:\xampp\apache\conf\extra\httpd-ssl.conf”
- Find the code:
- Replace with:
- Now edit the configuration file: “C:\xampp\apache\conf\extra\httpd-xampp.conf”
- Find the code:
<Directory "C:/Users/YOUR NAME/Dropbox/htdocs/xampp">
-
- Now edit the configuration file: “C:\xampp\mysql\bin\my.ini”
- Find the code:
- Replace with:
Now everything is ready to work ;) .
Some tips:
- Be sure to install the same version of xampp on each pc.
- Be sure to close apache and mysql process before switch to another computer.
- When you start the computer, before you start working on xampp, waiting for Dropbox has finished sync files.
- After each change to your project, and after closing xampp, waiting for Dropbox has finished sync files before switch to another computer.
BCG | RWTH Dean's List | Digitalisation, Data Analytics, Blockchain certifications
2 年Mohamed, please, the code!!!
Desenvolvedor Front End - HTML5 | CSS3 | JS | REACTJS | TYPESCRIPT | TAILWIND
3 年Can you add the missing find and replace code sections in the comments? I could really use it to make my setup for school more mobile. ??
Desenvolvedor Front End - HTML5 | CSS3 | JS | REACTJS | TYPESCRIPT | TAILWIND
3 年can you add the missing find and replace code sections in the comments? i could really use it to make my stup for school more mobile. thanks!
Student at University of Missouri-Saint Louis
6 年Can you add the missing find and replace code sections in the comments? I could really use it to make my setup for school more mobile. I jump between my laptop and home pc a lot.
Chief Technology Officer at vSure
7 年It seems after automatic Windows Update, I am no longer able to use OneDrive for xampp htdocs. I did not do any manual settings update I get the following error: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'C:/Users/<username>/OneDrive/Work/xampp/htdocs/index.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0 Anyone else got this? or is it just me?