Xampp & DropBox/OneDrive/Google Drive

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.

Aloui Mohamed Habib

Mateo Perez Garzon

BCG | RWTH Dean's List | Digitalisation, Data Analytics, Blockchain certifications

2 年

Mohamed, please, the code!!!

回复
Marcelo Henrique

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. ??

回复
Marcelo Henrique

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!

Brandon Kunce

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.

回复
Ronny S

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?

回复

要查看或添加评论,请登录

Mohamed Habib ALOUI的更多文章

  • Handling Date and Time in Next.js: Best Practices and Common Pitfalls

    Handling Date and Time in Next.js: Best Practices and Common Pitfalls

    Working with dates and times in web development can be challenging, especially when dealing with applications that need…

  • Les "SOLID Principles"

    Les "SOLID Principles"

    Les principes SOLID représentent un ensemble de cinq concepts fondamentaux pour la conception et la structuration du…

  • JAVA - String concatenation in a loop does not scale Pitfall

    JAVA - String concatenation in a loop does not scale Pitfall

    Consider the following code as an illustration: Unfortunate this code is inefficient if the words list is long. The…

  • Types of Recursion in Java

    Types of Recursion in Java

    In java recursion can be categorized as Head recursion Tail recursion 1 - Head recursion A recursion is called head…

  • Contact Form 7 and custom post type

    Contact Form 7 and custom post type

    Contact Form 7 such a bless for wordpress blogs, But in my opinion it's limited "side-content"; meaning we customer…

  • Symfony achieves 100% PHP7 compatibility

    Symfony achieves 100% PHP7 compatibility

    PHP7, the new version of the programming language Symfony is built with, will be released at the end of the year. The…

  • Activate Caching in your website

    Activate Caching in your website

    Some people still hate the idea of using ready website such Wordpress , Prestashop..

  • Why GET Freelancer Not en Employee, "Six Whys"

    Why GET Freelancer Not en Employee, "Six Whys"

    So, why would you hire a freelancer over an employee? BEING PAID BY THE HOUR OR DAY MAKES US MORE PRODUCTIVE When…

社区洞察

其他会员也浏览了