Skip to content
WordPress and WooCommerce5 min read

How to install WordPress on your hosting

Short answer

The easiest way is a one-click install from cPanel with WP Toolkit or Softaculous: pick the domain, the language and an admin username and password, and the files and database are created for you. A manual install means uploading the WordPress files to public_html, creating a database and user, then finishing the installer in your browser.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Before you start
  2. Method 1: one-click install
  3. Method 2: manual install
  4. Right after installing
  5. Troubleshooting
  6. On ArabyHost

WordPress is a PHP application that needs three things: its files in your site’s folder, a MySQL or MariaDB database, and a wp-config.php file connecting the two. A one-click installer does all three in about a minute; a manual install gives you full control and works when no installer is available. This guide covers both.

Before you start

  • A domain pointing to your hosting. If it isn’t yet, see connect a domain to your hosting.
  • An SSL certificate issued for the domain, so the site is installed on https:// from the start and you don’t have to fix URLs later.
  • An empty folder: if public_html contains an old file such as index.html, delete or move it.
  • Admin details: a username other than admin, a strong password, and an email address you actually read.

Method 1: one-click install

With WP Toolkit

  1. In cPanel, search for WP Toolkit in the search box at the top and open it.
  2. Click Install (or Install WordPress).
  3. Under Installation path, choose https:// and your domain, and leave the directory field empty to install on the main domain.
  4. Enter a Website title, pick the Website language, and leave Version on the latest release.
  5. Under WordPress Administrator, enter the username, password and email.
  6. The Database section is pre-filled with a database name and a random table prefix; leave it as is.
  7. Set Automatic update settings; automatic security updates suit most sites.
  8. Click Install, then Log in to open the dashboard.

With Softaculous

  1. In cPanel open Softaculous Apps Installer, then WordPress, then Install Now.
  2. Under Choose Installation URL, select the https:// protocol and your domain, and leave In Directory empty.
  3. Under Site Settings, enter the site name and description.
  4. Under Admin Account, enter the username, password and email.
  5. Pick a language in Choose Language.
  6. Open Advanced Options if you want to change the database name or table prefix, or turn on Softaculous backups.
  7. Click Install and wait for the success message and the admin link.

Method 2: manual install

1. Upload the WordPress files

Download the latest release from wordpress.org. In cPanel open Files → File Manager, go into public_html, click Upload and upload the ZIP. Back in the folder, right-click the file and choose Extract. The files land in a wordpress folder: open it, click Select All, then Move, and enter /public_html as the destination. Then delete the empty folder and the ZIP.

If your plan includes SSH, it’s quicker:

cd ~/public_html
curl -O https://wordpress.org/latest.zip
unzip latest.zip && mv wordpress/* . && rm -rf wordpress latest.zip

2. Create the database and user

In cPanel open Databases → Manage My Databases (called MySQL Databases in older versions):

  1. Under Create New Database, enter a name such as wp; it becomes cpuser_wp because cPanel prefixes your account name.
  2. Under MySQL Users → Add New User, create a user with a strong password.
  3. Under Add User To Database, pick the user and the database, tick ALL PRIVILEGES and click Make Changes.

Full walkthrough in create a MySQL database and user.

3. Run the installer

Open https://example.com in your browser, pick a language, then enter the database name, username, password, host localhost, and a table prefix other than wp_, such as wp7k_. Click Submit, then Run the installation, fill in the site title and admin details, and click Install WordPress.

If the installer can’t write wp-config.php, copy wp-config-sample.php to wp-config.php and edit these lines:

define( 'DB_NAME', 'cpuser_wp' );
define( 'DB_USER', 'cpuser_wpuser' );
define( 'DB_PASSWORD', 'a-strong-password' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8mb4' );

Replace the security keys (salts) with fresh values generated at https://api.wordpress.org/secret-key/1.1/salt/.

Right after installing

  1. Settings → General: check the site language and timezone, and that both the WordPress Address and Site Address start with https://.
  2. Settings → Permalinks: choose Post name and save.
  3. Delete the sample post and page, plus unused themes and plugins, keeping one default theme as a fallback.
  4. Install LiteSpeed Cache and follow speed up a WordPress site.
  5. For Arabic sites, set language and direction as in WordPress for Arabic and RTL, and lock things down with secure a WordPress site.

Troubleshooting

  • Error establishing a database connection: wrong database name, username or password, a missing cpuser_ prefix, or the user was never added to the database. See error establishing a database connection.
  • An old page or a file listing appears instead of WordPress: an index.html is still in public_html and loads before index.php, or the files are still inside the wordpress folder.
  • Posts return 404: the .htaccess file is missing. Save the permalinks again, or create the file with:
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
  • “Not secure” warning or missing images: the site was installed on http:// before SSL was issued. Change both addresses under Settings → General to https://.
  • The installer says the folder isn’t empty: move the old files to another folder first, or install into a subfolder.

On ArabyHost

You can install WordPress or WooCommerce with one click from the control panel, and sites run on a LiteSpeed web server with the LiteSpeed Cache plugin. A free SSL certificate is issued automatically once the domain points to ns1.arabicode.com and ns2.arabicode.com, so install right after that on https://. You choose PHP 8.1 to 8.3, each account has its own resource limits isolated with CageFS, and there are daily backups and Imunify360 protection. See our WordPress plans, and if your site is with another host, we offer free migration help.

FAQ

Should I install WordPress on the main domain or in a subfolder?

For your main site, install on the domain itself by leaving the directory field empty. Use a subfolder such as /blog or a subdomain only when WordPress is part of another site or a test copy.

Is a one-click install less secure than a manual one?

No. The installer downloads the same official WordPress release and usually adds a random table prefix and a strong password. It saves time, and often lets you manage updates and backups from the same tool.

Can I switch WordPress to another language after installing?

Yes. In the dashboard go to Settings → General, choose the language under Site Language and save. WordPress downloads the translation files automatically, and Arabic switches the interface to right-to-left.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.