There are many convenient methods to install WordPress, such as Softaculous or WordPress Toolkit, but there are some situations where those options are not available or you may prefer to perform a manual installation.
Here we cover the steps to install WordPress manually via command line, using WP-CLI.
Related Articles
Install WordPress with Softaculous
Manually Install WordPress Using File Manager
Getting Started with cPanel
Create Database Using MySQL Database Wizard
Find the Document Root of a Domain
SSH into Shared Server
How to SSH into VPS or Dedicated Server
Install WordPress
- Log into cPanel
- Create a new database and user using the MySQL Database Wizard
NOTE: Make note of the database name, user, and password as you will need them to complete the installation. - Access the server via SSH or using the Terminal in cPanel
- Navigate to the site's document root using the cd command
cd public_html
REPLACE: public_html with your domain's document root if different. See the guide on finding the document root of a domain for guidance. - Run the following command
wp core download
- Navigate to the domain in your web browser
Complete Installation in Browser
- Select your desired language and click the Continue button
- Click the Let's go! button
- Enter the database name, username, and password created in the previous section then click the Submit button
NOTE: Leave the Database Host field set to localhost unless connecting to a database hosted on another server. Table Prefix can be left as wp_ or changed if desired. - Click the Run the installation button
- Complete the following fields and click the Install WordPress button
- Site Title: Enter the name of the site (e.g. "My Blog" or the name of your business)
- Username: The desired username for the admin username
TIP: As a security measure, it is strongly recommended to avoid using "admin" as the username. - Password: Enter the desired password for the admin user or use the one that was automatically generated
- Your email: The email address that will be associated with the admin user
- Search engine visibility: Check this box if you do not want your site to appear on search engines like Google and Bing
TIP: This is useful for staging sites or sites that aren't meant to be accessed by the general public.
Comments
0 comments
Article is closed for comments.