
You can maintain this configuration or, as we suggest, change it to use standard ports: 80 for Apache, and 3306 for MySQL. MAMP uses custom ports for Apache and MySQL server instances: Apache runs on port 8888, MySQL runs on port 8889. Don't start MAMP yet: we must first make a change to the configuration. Now the symbolic link /Applications/MAMP/db points to the Dropbox shared folder ~/Dropbox/Development/db that contains the MAMP Databases. Lastly on both Desktop and Notebook create a symbolic link from MAMP to Dropbox with the following command: ln -s ~/Dropbox/Development/db /Applications/MAMP/db On Notebook open a Terminal and delete the database folder using the following command: cd /Applications/MAMP On Desktop move database folder from MAMP standard location to db directory on Dropbox, to do this open a Terminal and use the following commands: cd /Applications/MAMP/db Don't start MAMP yet: before doing this you have to move the database and modify the default configuration. Its installation is very easy: download MAMP from here, unzip the archive and double-click it, then follow the instructions. MAMP is an acronym that stands for: Mac, Apache, MySQL and PHP, it is an application that installs a local server environment on your Mac. In the Dropbox folder on Desktop, create the following directory structure:Ĭheck that the same directory structure is propagated on Notebook. Step 1 Create Directory Structure on Dropboxĭownload and install Dropbox on your Desktop and your Notebook (see here for instructions).


configure Git, setup the local repository.setup MySQL for the WordPress production site.configure Git, setup the remote repository and the necessary hook.setup and run WordPress development sites on both your Desktop and your Notebook.install and setup MAMP (both on your Desktop and your Notebook) to work in a Dropbox environment.create a basic directory structure on Dropbox.We will use Dropbox to synchronize files and DB between Desktop and Notebook, and we will use Git to track changes locally and to deploy them to the Remote Server.įor simplicity we define as the development site on the Local Environment and as the production site on the Remote Server. On both computers we will setup MAMP, Dropbox and Git so that you can work on your Desktop when you are in the office and on your Notebook when you are not in the office and all changes will be synchronized. In the Local Environment we will use a Desktop computer and a Notebook computer. The scenario that we will see consists of a Local Environment that allows the development of a WordPress site with plugins and themes and a Remote Server that will host the "production" WordPress site. Additionally we assume that the remote server has Git already installed and SSH access configured with public key authentication (the SSH and Git installations are out of the scope of this tutorial). In this tutorial we refer to Mac OS X but you can easily adapt it to any other OS. make quick changes on some files on the remote server and then fetch them on the local environment.locally update the WordPress core files or update already installed plugins/themes in a safe way, check that nothing breaks the site and deploy this changes to the production server.locally develop and test your new plugin or theme in a safe way and deploy it to the production server.


Nowadays in order to be a freelance WordPress developer you often need to develop simultaneously several WordPress sites for different clients.
