Contents
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_htmlcontains an old file such asindex.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
- In cPanel, search for WP Toolkit in the search box at the top and open it.
- Click Install (or Install WordPress).
- Under Installation path, choose
https://and your domain, and leave the directory field empty to install on the main domain. - Enter a Website title, pick the Website language, and leave Version on the latest release.
- Under WordPress Administrator, enter the username, password and email.
- The Database section is pre-filled with a database name and a random table prefix; leave it as is.
- Set Automatic update settings; automatic security updates suit most sites.
- Click Install, then Log in to open the dashboard.
With Softaculous
- In cPanel open Softaculous Apps Installer, then WordPress, then Install Now.
- Under Choose Installation URL, select the
https://protocol and your domain, and leave In Directory empty. - Under Site Settings, enter the site name and description.
- Under Admin Account, enter the username, password and email.
- Pick a language in Choose Language.
- Open Advanced Options if you want to change the database name or table prefix, or turn on Softaculous backups.
- 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):
- Under Create New Database, enter a name such as
wp; it becomescpuser_wpbecause cPanel prefixes your account name. - Under MySQL Users → Add New User, create a user with a strong password.
- 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
- Settings → General: check the site language and timezone, and that both the WordPress Address and Site Address start with
https://. - Settings → Permalinks: choose Post name and save.
- Delete the sample post and page, plus unused themes and plugins, keeping one default theme as a fallback.
- Install LiteSpeed Cache and follow speed up a WordPress site.
- 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 missingcpuser_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.htmlis still inpublic_htmland loads beforeindex.php, or the files are still inside thewordpressfolder. - Posts return 404: the
.htaccessfile 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 tohttps://. - 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.