Quick Lesson On Using Terminal on Mac
Spatterings of stuff that interests me
wordpress
folder after your project
_
) when naming a database8888
. Change the port to 80
Sites
http://localhost
and not http://localhost:8888
phpMyAdmin
to create a new empty database
Sites
folderhttp://localhost
you should now see your new WordPress project
Tells you that you are about to populate your database with the WordPress tables.
Click the Let's go!
button
This is your database connection info. When you enter this, WordPress will be able to connect to your database and populate the database you just created with the WordPress database tables. It will also create a wp-config.php
file and put your database info in that file. This file is important to keep safe because if someone gets a hold of it, they can access and delete your database. The MAMP default username is root
and the default password is root
. This is fine for local development but when deploying to production you obviously want a more secure user name and password. In production your Database Host is usually localhost
but some hosts use a different URL. They will let you know if they do in their cpanel. It is also a good security practice to rename the Table prefix to something other than wp_
. Click Submit
button when your Database info is correctly entered.
You’ll get this is you typed any of the info incorrectly. It’s a good idea to write down and store all your connection information in a safe place. Click Try again
to take another stab at putting in the correct info.
If all is well, you’ll get this. Click Run the install
.
This will start to add info to specific WordPress database tables. Put your Site Title in (great SEO boost right out of the gate). Enter a username (Never use admin
as the password as most hackers try that first because most people use it.). For local development you can put an easy password like password
as you are the only one that has access to this. But when you put it live, you obviously want a better password. It should be noted that the username and password here are to enable you to login to the WordPress Admin Dashboard with Admin privlidges.
Check confirm use of weak password
checkbox if you use a weak password.
Enter your email. This is important if you ever forget your password as WordPress will send you an email when you request to reset your password.
When working locally or on a staging server, you obviously don’t want SEO engines to see your site so check Discourage search engines from indexing this site
. Make sure to uncheck it when in production or else your site will be invisible to all search engines which is obviously bad for business.
.
Finally, click Install WordPress
.
If all goes well you will see:
.
If not, troubleshoot and try and find the error of your ways. Click the Log In
button.
.
Use your login credentials to login to the admin Dashboard.
To login in the future go to http://localhost/your-wordpress-site/wp-admin
In this 7 part video, two dudes pair program to get trellis, bedrock, sage running locally, on a staging server and a production server. Ansible actually enables you to set up your Production and Staging server on the same Digitial Ocean IP. Not sure how it does that (but also learned they don’t recommend it for a real production web site) but for practice, it is really great to pay $5/mo and have a VPS to experiment with (edited)