-
Install Duplicator plugin
-
Build package (optionally filter out large image files)
-
Download archive and installer to an empty directory
-
Create a softlink to the directory ({name}) in the webserver folder
$ sudo ln -s /{name} /var/www/html/{name}
-
Change ownership of the directory to make it writable
$ sudo chown -R www-data /{name}/
-
Start web server and database
$ sudo service apache2 restart $ sudo /etc/init.d/mysql start
-
Create new database
$ mysql -u root -p mysql> CREATE DATABASE {wp_name}; mysql> FLUSH PRIVILEDGES; mysql> exit
-
Go to http://localhost/{name}/installer.php in browser and run installation
Last active
February 6, 2017 21:16
-
-
Save joshuarrrr/b08e1ad8f1e12448ea3b122755cdce9d to your computer and use it in GitHub Desktop.
Clone a local version of a Wordpress site
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment