Category: Wordpress

  • Manual WordPress Installation via WP-CLI

    Manual WordPress Installation via WP-CLI

    Check access to server and WP-CLI version

    SSH into remote server

    ssh user@yoursite.com

    Check for WP-CLI

    wp --info

    If it prints information than you are good to go, otherwise check how to access your server remotely and if you can add WP-CLI to it.

    Download

    Go to your server’s document root and download wordpress

    wp core download

    Next, create a database — instructions will vary based on your host platform.

    Configuration

    Make sure you have the following

    • Database name
    • Database user with full access to the database
    • Password of the user with full access to the database
    • Your host… probably just localhost
    wp config create \
      --dbname=cpanel_dbname \
      --dbuser=cpanel_user \
      --dbpass='password' \
      --dbhost=localhost

    Fix any errors you might have and move on to installation.

    Installation

    Finally, run the installation

    wp core install \
    --url="https://example.com" \
    --title="My Site" \
    --admin_user="admin" \
    --admin_password="SuperPassword@55!" \
    --admin_email="user@example.com"

    WordPress is now live and you can access it by login into the admin.