- WordPress needs a database to store all website data, so you will need to create a database before we install WordPress. Don’t worry, it’s not as hard as it sounds.
- Create a Database for your current environment. For example,
local_idm250_wp
- Download the latest version of WP from wordpress.org
- First you need to visit the WordPress.org website to download a copy of WordPress. After downloading the file, you need to unzip it.
Next, copy the wordpress folder inside and paste it into your servers root folder.
- Go to
http://{your-local-domain-here}/wp-admin
- Run
cp env.example .env
- Run
cp docker-compose.example.yml docker-compose.yml
- Fill out your new
.env
anddocker-compose.yml
- Run
docker-compose up -d
- Download and copy my theme into your
themes
folder. - you can use my latest db backup located in
/sql
as an example. I recommend making a new database name and updating thewp-config.php
to test my changes out.
- Once you get WP installed on your server, you should only need to transfer your theme files onto your server.
- Copying your local to production https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/#manual-method-local-to-live
How to import your database https://help.one.com/hc/en-us/articles/115005588189-How-do-I-import-a-database-to-phpMyAdmin-