WordPress Setup

To create new website using WordPress:

  1. Create subdomain from web server.
  2. Find out FTP/SFTP information from web server. Login, and create a folder for the page.
  3. Link the subdomain to this folder.
  4. Get the latest wordpress library from https://wordpress.org/download/
  5. Unzipped the files locally on your machine.

Now following these steps from https://wordpress.org/support/article/how-to-install-wordpress/

  1. Create database from web host. Make sure to remember the database name, password, and database user name (different than name!). On mine, user is automatically generated when a new database is created.
  2. Find and rename wp-config-sample.php to wp-config.php on your local machine.
  3. Open and edit wp-config.php file as follow:

Look for these lines:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

Enter your database information next to these variables:

DB_NAME = database name

DB_USER = database user name

DB_PASSWORD = database password

DB_HOST = database host (from server)

For example, my edited version may look like below:

/** The name of the database for WordPress */
define( 'DB_NAME', 'fuzzyThings' );
/** MySQL database username */
define( 'DB_USER', 'SuperFluff' );
/** MySQL database password */
define( 'DB_PASSWORD', 'fluffsAreWonderful!!oneone1' );
/** MySQL hostname */
define( 'DB_HOST', 'fluffy.database.io' );

Scroll down a little until you see the authentication key lines as follow:

define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );

To make your life easier, just go to the link described above these line, https://api.wordpress.org/secret-key/1.1/salt/

Copy and replace the key lines.

For example:

  • Save the wp-config.php file.
  • Using FTP, transfer the files from your local machine to the folder created at the server earlier.
  • Once this finished, type in your subdomain name, followed by /wp-admin/install.php to start installing wordpress. For example, my url would look like http://fluffy.popoko.com/wp-admin/install.php
  • At this point, the site will ask you to create a username, password, and email. Make sure to remember the username and password, since this will be used to log in to your blog editor right after that.
  • Log in, and set up your front end part through wordpress~

Leave a Reply

Your email address will not be published. Required fields are marked *