Back to Knowledge Base

How to install WordPress?

WordPress comes pre-installed with our WordPress & Online Store plans. 
However, you can also install WordPress with WP-CLI as well. First login to your Hostbox account, and go to Services.
Login to your CloudPanel account.
  • Click on "Databases". 
  • Then "Add Database".
  • Type your Database Name, User and Password.
  • Now you can SSH into your Hostbox account.
  • Go to the public directory /htdocs/www.yourdomain.com/
  • To download WordPress run the command:
wp core download 
  • To configure your wp-config.php run the command: 
wp config create --dbname=DBNAME --dbuser=DBUSER --dbpass="DBPASS"
  • Make sure to change DBNAME, DBUSER and DBPASS
  • Then to install WordPress run:
wp core install --url=https://yourdomain.com --title="Site Title" --admin_user="admin" --admin_password="password" [email protected]
That's it. Your WordPress website is ready.