Skip to content

How to Install WordPress Step by Step (Manual + One-Click)

A guide to installing WordPress every way: one-click installation via Softaculous/your host, the famous 5-minute manual install (download, database, wp-config, run the installer), and local installation for development (LocalWP/XAMPP) — with hosting requirements, post-installation steps, and common mistakes and their fixes.

WordPressسارة خليل45 min read
Illustration of an opened box releasing site layers beside a one-click install button, representing installing a website platform
On this page

WordPress powers more than 40% of the world's websites, and one of the main reasons for its dominance is that installing it is within everyone's reach: from the beginner who has never written a line of code to the developer who wants an isolated local environment. But an "easy" install doesn't mean all methods are equal — each one has a scenario where it shines and another where it stumbles. Choosing the wrong method can cost you wasted time, or a site that is insecure from day one.

The secret that many superficial guides don't tell you is that the installation itself is only the first step in a longer journey. What separates a site that lasts for years from one that gets hacked in its first week isn't the installation method but what you do right after it: configuring security, closing the default doors that are left open, and building the habit of backing up. That is why we won't just teach you "how to install" here; we will explain why each step exists and what happens behind the scenes, so you go from someone who follows memorized steps to someone who understands their platform and can diagnose any failure on their own.

In this reference guide we take you through every method step by step: one-click installation if you are in a hurry, manual installation if you want to understand what happens under the hood, local installation for developers, and professional installation via WP-CLI for anyone managing several sites. And once your site is running, we take you through the crucial post-installation tour that many people neglect and pay for later. If you are completely new to the platform, start with the complete WordPress guide to understand the big picture, then come back here to put it into practice.

What is the difference between WordPress.org and WordPress.com?

Before any installation, you need to settle a point that confuses beginners: there are "two WordPresses." WordPress.org is the free, open-source software that you download and install on your own hosting (called "self-hosted"), which is what everyone means when they say "WordPress" and is the subject of this entire guide. WordPress.com, on the other hand, is a commercial service that hosts the site on your behalf with paid plans and restrictions on the free plan, and you don't need to "install" anything there.

The reason for this confusion is historical: the founder himself launched the commercial company (WordPress.com) to offer a hosted version of the open project (WordPress.org), so the two names became similar even though their philosophies are fundamentally different. When you choose WordPress.com, you are a tenant in a building someone else runs: you write and publish, but you don't hold the keys, and any serious expansion hits the ceiling of your plan. When you choose self-hosted WordPress.org, you own both the land and the building: the files are on your server, the database is in your hands, and any plugin or code change is possible without asking permission. This difference is the heart of the decision, which is why anyone building a real project — a store, a professional blog, a company site — leans toward self-hosting, even though it requires an extra installation step.

AspectWordPress.org (self-hosted)WordPress.com (managed service)
InstallationYou install it yourself on your hostingReady to use, no installation
Data ownershipComplete; the files and database are yoursLimited by the terms of service
Plugins and themesEvery plugin and theme (thousands)Restricted by plan
CostHosting + domain onlyA tiered monthly subscription
Code controlFull (FTP/SSH/database)Very limited
Best forSerious sites, stores and professional blogsA simple personal blog with no special requirements

The bottom line: if you want a site you truly own and can grow without a ceiling, you want self-hosted WordPress.org, and that is what we will install. All you need is hosting + a domain name. And don't worry if "self-hosting" sounds complicated — you will soon find that modern installers have made it simpler than opening an email account.

What does WordPress need to run on your hosting?

WordPress is a PHP application that stores its data in a MySQL/MariaDB database. That is why you need hosting that meets a minimum set of requirements. Any respectable WordPress hosting meets them by default, but knowing them protects you from choosing cheap, incapable hosting and helps you diagnose installation failures later.

Why do these requirements matter in the first place? Because WordPress isn't a static file served as is; it is a living application: every time a visitor opens a page, the server runs PHP code that queries the database, builds the page on the fly, and then sends it. This means your site's speed and stability depend directly on the strength of the runtime environment: the PHP version, database performance, the server memory available to each process, and the installed extensions. Hosting that meets only the "minimum" will run your site in theory, but it will choke at the first surge in visitors or the first heavy plugin. That is why we always recommend looking at the "recommended" column, not the "minimum" column.

RequirementMinimumRecommended (2026)Notes
PHP7.48.1 or laterNewer versions are faster and more secure
MySQL5.78.0 or laterOr MariaDB as a compatible alternative
MariaDB10.310.6 or laterCommon in cPanel and CyberPanel
Web serverApache/NginxLiteSpeed or NginxSupports mod_rewrite/URL rewriting
HTTPS/SSLRequired in practiceA valid certificateEssential for security and SEO
PHP memory128MB256MB+Stores need more
PHP extensionsmysqli, curl, gd, mbstring+ imagick, zip, intlNeeded for media and plugins

Crucial points before you start:

  • The version matters: don't run your site on PHP 7.4 in 2026 — its security support has ended. The speed difference between PHP 7.4 and 8.2 can be as much as twofold. See the complete WordPress guide to understand how the PHP version affects performance.
  • SSL isn't a luxury: modern WordPress assumes HTTPS, and search engines penalize insecure sites. Enable it from day one with the guide to installing SSL and enabling HTTPS.
  • The server type affects performance: LiteSpeed and Nginx servers are faster than traditional Apache under load, and they have built-in caching for WordPress.

Let's dig a little deeper into extensions, because they are the source of many silent failures. The gd and imagick extensions handle image processing: if they are missing, WordPress can't generate thumbnail sizes for the images you upload, and broken images will appear in your theme. The mbstring extension is essential for handling multibyte text correctly — which is especially sensitive for Arabic content, since its absence causes garbled characters and truncated text. curl is used by WordPress to communicate with external servers: updates, plugins and payment APIs. And the intl extension improves support for languages and local dates. The practical rule: before you install, open the PHP information page from your hosting panel (or ask support for it) and make sure these extensions are enabled; this will save you hours of confusion later.

PHP memory is a point that is often underestimated. Every PHP process has a memory ceiling (memory_limit); if it is low, the dreaded white screen of death (WSOD) appears at the first resource-hungry plugin, or when importing a large amount of content. For simple blogs 256MB may be enough, but WooCommerce stores and pages built with visual builders such as Elementor may need 512MB or more. Ask the provider about the actual ceiling before signing up, not the "theoretical maximum" in the marketing brochure.

What are the three ways to install WordPress?

Before the details, here is the full map. There are three main paths for getting WordPress onto your site, plus a fourth, professional path via the command line. The following diagram shows when to take each path:

Three ways to install WordPressOne-click installSoftaculous / your hostManual installDownload + database + wp-configLocal setupLocalWP / XAMPPA ready WordPress siteLog in and get startedOne click is fastest for beginners; manual gives more control; local is for testing and development
Three ways to install WordPress: one-click (Softaculous/your host), manual (download + database + wp-config), or a local environment (LocalWP/XAMPP) — all ending with a ready site.

The core idea that unites all these methods is the same: in the end, they all carry out four identical tasks — putting the WordPress files on the server, creating a database, connecting the two through wp-config.php, then creating the admin account and the database tables. The only difference between the methods is who carries out these tasks: the auto-installer does them all for you behind a single form, the manual method has you do them by hand step by step, and WP-CLI does them with short commands. Once you understand this, choosing a method becomes a matter of preference rather than mystery, and you can move between them with confidence.

Here is a comprehensive comparison table of the methods to help you choose before you start:

MethodSpeedDifficultyControlBest forRequires
One-click (Softaculous)~2 minutesVery easyMediumBeginners, a quick launchA hosting panel with an installer
Manual (5 minutes)5–15 minutesMediumFullThose who want understanding and controlFTP + phpMyAdmin
Local (LocalWP/XAMPP)5–10 minutesMediumFullDevelopers, testingSoftware on your computer
WP-CLI (command line)< 2 minutesAdvancedFullProfessionals, multiple sitesSSH access

The general rule: if you are a beginner and want to launch a production site right away → one-click. If you want to learn how WordPress really works or need fine-grained control → manual. If you are developing or testing themes and plugins without risk → local. If you are a professional managing multiple sites → WP-CLI. Now let's go through each in detail.

Method one: one-click installation via Softaculous

One-click auto-installation is the fastest and most common route for beginners. Most shared hosting companies provide an auto-installer inside the control panel — the best known is Softaculous, with similar tools such as Installatron, WordPress Toolkit and the "application installer" in panels such as CyberPanel. The idea is the same: the installer downloads WordPress, creates the database, configures wp-config.php and creates the admin account — all through a single form.

When should you choose this method, and who is it for? It is the ideal option if your goal is to launch a real production site as quickly as possible with the lowest chance of error. A beginner who is wary of dealing with FTP and databases will find a safe haven here, because the installer takes care of all the sensitive technical pieces they might get wrong by hand — generating the secret keys, connecting the database, setting permissions. The same goes for a business owner who wants a site now, not tomorrow, or someone launching several test blogs quickly. The only real drawback is that you give up some fine-grained control, but that sacrifice is barely noticeable in most cases, and you can always change any setting later from inside the WordPress dashboard itself.

Installation steps with Softaculous

  1. Log in to your hosting panel (usually cPanel) at https://yourdomain.com/cpanel or via the control panel link from your provider.
  2. Look for the "Softaculous Apps Installer" section or the WordPress icon directly, and click it.
  1. Click the "Install Now" button on the WordPress page inside the installer.
  2. Fill in the installation form carefully with the following fields:
FieldWhat to enterTip
Choose Protocolhttps:// or https://www.Always choose https (requires SSL to be enabled)
Choose DomainYour main domainDon't install in a subfolder unless you mean to
In DirectoryLeave it emptyEmpty = installing in the root yourdomain.com
Site Name / DescriptionYour site's name and descriptionThey can be changed later
Admin UsernameNot adminUse an unpredictable name for better security
Admin PasswordA strong password of 16+ charactersUse a password generator
Admin EmailYour real email addressPassword resets are sent there
Select LanguageArabic, or whatever suits your audienceIt can be changed later
  1. Click "Install" and wait for the progress bar to complete. Within two minutes you will see two links: the site link yourdomain.com and the admin dashboard link yourdomain.com/wp-admin.

Pay special attention to the "In Directory" field: it is the source of endless confusion for beginners. Many installers fill it with the default value wp, so the user thinks they installed their site in the root when it actually lives at yourdomain.com/wp — and then wonders why their main domain doesn't open the site. The rule: if you want your site directly on the domain, clear this field completely and leave it empty. And never choose http://, even if it seems faster, because fixing a site installed on http and moving it to https later opens the door to "mixed content" problems and redirect loops you will hate dealing with.

Pros and cons of one-click installation

ProsCons
Very fast (two minutes)Less control over the fine details
No technical knowledge neededSome installers add unwanted plugins
Creates the database automaticallyThe table prefix may be the default wp_
Built-in management (update/backup/clone)Depends on the provider's panel

Expert tip: after a one-click install, review the Softaculous settings and change the table prefix from wp_ to something random such as wpx7k_ to reduce the surface for automated SQL injection attacks. And never keep the username admin. One of the most important things beginners miss here: many installers show, at the end of the form, a list of pre-selected "suggested plugins and themes" — uncheck them all. These plugins weigh your site down from day one with things you didn't ask for, and some are commercial and will nag you to upgrade. Start clean, and install only what you actually need yourself. One last feature many people don't know about: the Softaculous panel keeps an "installations list" that lets you update the site, clone it into a test environment, or delete it entirely with one click — make use of this built-in management instead of ignoring it.

Method two: the famous 5-minute manual install

This is the "original" method the WordPress community is proud of, known as the "5-minute install." It gives you a complete understanding of what is going on and absolute control, and it is an essential skill for any serious site administrator. We will split it into five clear stages.

Why go to the trouble of a manual install when there is a button that does everything? For two practical reasons: first, some hosting — especially virtual private servers (VPS) and dedicated servers — doesn't come with an auto-installer at all, so there is no alternative to the manual method or WP-CLI. Second, and more important in the long run, anyone who installs manually once understands WordPress's anatomy in a way no magic button can give: they know where the files live, how the site connects to the database, and exactly what happens when the connection fails. That understanding is your capital when something breaks at 3 a.m. and there is no "fix everything" button.

StageWhat you doTool
1. DownloadDownload the latest version and unzip itA browser or wget
2. DatabaseCreate a database and a user and grant it privilegesphpMyAdmin or the MySQL CLI
3. Upload the filesUpload the WordPress files to the serverFTP or the file manager
4. Configure wp-configDefine the connection details and saltsA text editor / SSH
5. Run the installerOpen the site and complete the wizardThe browser

Stage 1: downloading WordPress

If you have SSH access, download the latest version directly on the server and unzip it:

bash
# Go to the web folder (the name varies by server)
cd /var/www/html

# Download the latest version of WordPress
wget https://wordpress.org/latest.tar.gz

# Unzip it
tar -xzvf latest.tar.gz

# Move the files from the wordpress/ folder straight into the root
mv wordpress/* .

# Clean up the temporary files and the empty folder
rm -rf wordpress latest.tar.gz

If you don't have SSH, download the .zip file from wordpress.org/download to your computer, unzip it, and move on to stage three to upload it via FTP.

Note the important detail in the code above: the WordPress archive unpacks into a subfolder named wordpress, which is why we move its contents into the root with mv wordpress/* . and then delete the empty folder. If you forget this step, your site will end up at yourdomain.com/wordpress instead of the root — a very common mistake. And an early security tip: always download WordPress only from the official source wordpress.org, never from third-party sites offering "ready-made copies," because some of them inject malicious code into the files before they reach you. Only the official release is guaranteed to be clean.

Stage 2: creating the database and the user

WordPress needs an empty database and a user with full privileges on it. If you use phpMyAdmin, create a new database, then a user from the "Privileges" tab. If you prefer the MySQL command line, run the following:

sql
-- Log in: mysql -u root -p
-- Create a database with proper encoding for Arabic text
CREATE DATABASE wp_mysite DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- Create a user with a strong password (change it)
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'StrongPass#2026!';

-- Grant the user all privileges on this database only
GRANT ALL PRIVILEGES ON wp_mysite.* TO 'wp_user'@'localhost';

-- Apply the changes immediately
FLUSH PRIVILEGES;

-- Exit
EXIT;

Note: always use utf8mb4 (not the old utf8) so it supports Arabic text and emoji without corruption. And save the three values (database name, username, password) — you will need them right away in the next stage.

What happens behind the scenes at this stage? The database is your site's "memory": it stores all your posts, pages, comments, settings and user accounts. The files you uploaded in the previous stage are the "brain" that does the processing, but it is worthless without the memory it reads from and writes to. Note also the security philosophy in the GRANT command: we grant the user full privileges on this database only (wp_mysite.*), not on the whole server. This applies the principle of least privilege: if an attacker compromises this account later, they will reach only this site's database, not the rest of your databases. That is also why we avoid using the root user to run the site — root owns everything, and leaking it is a total disaster. Choosing utf8mb4 specifically isn't a cosmetic detail either: MySQL's old utf8 encoding is incomplete and can't store four bytes per character, so it breaks on some symbols and puts Arabic content and emoji at risk of corruption, while utf8mb4 is the complete, correct encoding.

Stage 3: uploading the files (for FTP users)

If you downloaded WordPress to your computer, upload the contents of the WordPress folder (not the folder itself) to your site's root folder on the server — usually public_html in cPanel — using an FTP client such as FileZilla. Make sure that index.php and wp-config-sample.php appear directly inside public_html, not inside a subfolder.

Two tips will save you a common frustration at this stage. First: use the SFTP protocol (port 22) instead of plain FTP (port 21) when your provider offers it, because plain FTP sends your username and password as plain text that can be intercepted, while SFTP is encrypted. Second: uploading WordPress via FTP transfers thousands of small files, which is inherently slow and can stall midway, leaving incomplete files that cause mysterious failures. If you notice strange behavior after uploading, re-upload the core folders (wp-admin and wp-includes) to make sure they are complete. Many panels also provide a built-in "file manager" that lets you upload a single archive and extract it directly on the server — faster and more reliable than FTP for the initial upload.

Stage 4: configuring wp-config.php

This is the most important stage. WordPress comes with a template file named wp-config-sample.php; copy it as wp-config.php and then edit it. Over SSH:

bash
# Copy the template file to the real file
cp wp-config-sample.php wp-config.php

# Open it for editing
nano wp-config.php

Edit the database connection values to match what you created in stage two:

php
/** The name of the database */
define( 'DB_NAME', 'wp_mysite' );

/** Database username */
define( 'DB_USER', 'wp_user' );

/** Database password */
define( 'DB_PASSWORD', 'StrongPass#2026!' );

/** Database hostname (usually localhost) */
define( 'DB_HOST', 'localhost' );

/** Charset — leave it as utf8mb4 */
define( 'DB_CHARSET', 'utf8mb4' );

/** Table prefix — change it from wp_ for better security */
$table_prefix = 'wpx7k_';

Next come the secret keys (salts), which encrypt cookies and login sessions. Don't make them up by hand — generate them with the official generator, then paste them in place of the default lines:

bash
# Generate random salts ready to paste into wp-config.php
curl -s https://api.wordpress.org/secret-key/1.1/salt/

The following table summarizes the most important values in wp-config.php and what each one does:

ValueFunctionTip
DB_NAMEThe database nameMatches exactly what you created
DB_USERThe database userNot root in production
DB_PASSWORDThe database passwordStrong and unique
DB_HOSTThe database server addresslocalhost or the provider's IP/port
$table_prefixThe table name prefixChange it from wp_
AUTH_KEY and its siblingsSession encryption keysFrom the official generator; never leave them empty
WP_DEBUGDebug modefalse in production, true when troubleshooting

Why is this file the heart of your site? Because it is the only bridge between the "brain" (the files) and the "memory" (the database). Any mistake in the first four values — even an extra space or a missing semicolon — breaks this bridge, and the famous "Error establishing a database connection" message appears. That is why we recommend copying and pasting the values rather than typing them by hand.

Its security importance runs deeper than it seems. The secret keys (salts) aren't a cosmetic detail: WordPress uses them to encrypt the cookies that prove you are logged in. If you leave them at their empty default values, it becomes much easier for an attacker to forge a login session and impersonate the administrator. Generating them randomly with the official generator makes every session on your site unique and impossible to guess — ten minutes of effort that buys you a real layer of security. A side benefit: whenever you want to force every user to log out (for example, after a suspected breach), you only need to generate new salts, and all existing sessions are invalidated immediately.

The table prefix $table_prefix deserves a closer look. By default it is wp_, a value every automated bot in the world knows. Many SQL injection attacks are written to target table names that start with wp_ specifically (such as wp_users and wp_options). Changing it to something random such as wpx7k_ doesn't make your site invulnerable, but it breaks the lazy automated attacks that assume the default name — which are the overwhelming majority. The last value worth mentioning is DB_HOST: on most shared hosting it is localhost, but some providers put the database on a separate server and give you a different address (sometimes with a port number). If the connection fails even though the other values are correct, this is the first value to check with your host's support.

Stage 5: running the installation wizard

Open your browser at https://yourdomain.com/wp-admin/install.php. A friendly wizard will ask for: the language, the site title, the admin username (avoid admin), a strong password and your email. Fill them in and click "Install WordPress."

Within seconds, WordPress creates the tables in the database and tells you the installation succeeded. Log in, and you now own a live site. Congratulations — you have completed a full manual installation and understood every piece of it.

What actually happens in those few seconds? This is the moment the empty database turns into a complete site. The wizard reads the connection details from wp-config.php, then writes all the core tables into the database — the options table, the users table, and the tables for posts, comments and links — and fills them with default values. Then it creates your account with a password that is stored hashed (not as plain text). That is why the manual install is called the "5-minute install" even though the wizard itself takes seconds: the four previous stages are the preparation, and this stage is the launch. One last tip: after a successful installation, don't leave the wp-config.php file with open permissions; we cover setting permissions in detail in the common mistakes section.

Method three: local installation for development

Local installation means running WordPress on your own computer (not on the internet) for development and testing. It is ideal for trying a new theme, testing a plugin before deploying it to a live site, or building an entire site before uploading it. Nobody but you can see it, it costs nothing in hosting, and it works offline.

Who exactly is this method for? Anyone who doesn't want to experiment on a live site that visitors can see. Imagine you want to try a radically new theme, a plugin that might conflict with others, or a major PHP update — would you do that on your store while it is selling? Of course not. The local environment is your safe "lab": you can break whatever you like without hurting anyone, and rebuild from scratch with one click if everything goes wrong. Professional developers build the whole site locally first, then move it "ready-made" to production. And even if you are a beginner, learning in a local environment frees you from both fear and the hosting bill while you experiment.

ToolPlatformDifficultyBest for
LocalWPWindows/Mac/LinuxVery easyBeginners and developers — recommended
XAMPPWindows/Mac/LinuxMediumThose who want control over the server
DockerAllAdvancedProfessionals and development teams
MAMPMac (and Windows)MediumMac users

A free application dedicated to WordPress: it downloads and installs everything (PHP, MySQL, the web server) behind the scenes. You click "Create a new site," choose a name, and within a minute you have a ready local site, with one button that opens the admin dashboard and another that opens phpMyAdmin. No manual configuration is needed. This is our first choice for beginners who want to develop. Its big advantage for developers is the "Live Link" feature, which creates a temporary link that lets your client or colleague preview the local site from the internet without uploading anything — ideal for getting approval before launch. It also lets you switch the PHP version with one click to test compatibility, a valuable feature before upgrading your real server.

XAMPP — for manual control

XAMPP installs an Apache + MySQL + PHP bundle, and you set up WordPress inside it manually. The steps in brief:

  1. Install XAMPP and start the Apache and MySQL modules from the control panel.
  2. Put the WordPress files in a subfolder inside htdocs (for example htdocs/mysite).
  3. Open http://localhost/phpmyadmin and create an empty database.
  4. Open http://localhost/mysite and complete the installation wizard — use root with no password as the default database credentials in XAMPP.

Security warning: root credentials with no password are acceptable locally only. Never carry this setup over to a production server. When you move your local site to the internet, see the guide to migrating WordPress without downtime and set secure connection details.

XAMPP suits you if you want to understand how the pieces of a server fit together, or if you develop other PHP projects besides WordPress on the same computer, because it gives you a general-purpose server rather than a WordPress-only tool. Its drawback is that you are responsible for everything manually: creating the database, configuring the connection and managing versions. And if you work in a team and need everyone's environment to match byte for byte, Docker is the professional solution: it describes the entire environment in a text file that is shared with the team, so every developer gets the same version of PHP, MySQL and settings, and the "it works on my machine" excuse disappears.

The professional method: installing with WP-CLI

WP-CLI is an official command-line tool that lets you manage WordPress entirely from the terminal — installation, updates, plugins, users and everything else. For professionals managing multiple sites, WP-CLI condenses the whole manual installation into four commands. You need SSH access and wp available on the server.

bash
# 1) Download the WordPress core files into the current folder
wp core download --locale=ar

# 2) Create wp-config.php with the details (salts are generated automatically)
wp config create --dbname=wp_mysite --dbuser=wp_user \
  --dbpass='StrongPass#2026!' --dbhost=localhost \
  --dbprefix=wpx7k_ --locale=ar

# 3) Create the database itself (if it doesn't exist and you have privileges)
wp db create

# 4) Run the installation and create the admin account in one go
wp core install --url='https://yourdomain.com' \
  --title='My Site' --admin_user='manager' \
  --admin_password='AdminStrong#2026!' \
  --admin_email='you@example.com'

After these commands your site is completely ready — no need to open a browser or fill in any wizard. You can even automate installing your essential plugins right away: wp plugin install wordfence wordpress-seo --activate. WP-CLI is the secret behind deploying dozens of identical sites with a single script.

Consider the second command, wp config create: notice that it generates the secret keys automatically without you asking — eliminating one of the most common mistakes in manual installs (forgetting to generate salts). This is where WP-CLI's real power lies: not just speed, but repeatability without human error. When you combine these commands into a single script, you can install a new site with your preferred standard settings — a random table prefix, security plugins enabled, the Arabic language — in under a minute, with the same quality every time. This is what web development agencies do: they build a single installation "recipe" and run it for every new client. And what makes WP-CLI indispensable for professionals isn't installation alone, but its ability to do what is hard to do by hand: safe search-and-replace in the database when migrating a site (wp search-replace), updating hundreds of plugins at once, and exporting the database for backups — all with short commands.

What are the important post-installation steps?

Installing WordPress isn't the end but the beginning. A freshly installed site carries default settings, sample content and well-known security gaps. Ignoring the post-installation steps is the number one reason new sites get hacked and rank poorly in search. Complete the following list in order before anything else.

StepWhyWhere
Set up permalinksClean, SEO-friendly URLsSettings > Permalinks > "Post name"
Delete the default contentRemove the "Hello World" post/comment/pagePosts/Pages/Comments
Delete unused themes and pluginsReduces the attack surfaceAppearance/Plugins
Set the site title and taglineIdentity and basic SEOSettings > General
Set up site email via SMTPSite emails actually reach the inboxAn SMTP plugin
Enable HTTPS fullySecurity, trust and SEOInstall SSL + redirect
Install essential pluginsSecurity + SEO + caching + backupsPlugins
Set up automatic backupsProtection against disastersA backup plugin

The first thing to configure — which many people postpone and pay dearly for — is the permalink structure. By default your post URLs may look like yourdomain.com/?p=123, which are ugly links that visitors don't understand and that don't help SEO. Change them right away under "Settings > Permalinks" to the "Post name" option, so your links become clean, like yourdomain.com/my-article. Doing this early matters because changing the link structure after you, and others, have published your links means breaking all those old links and losing their indexing in Google — unless you set up precise redirects. Start with the right structure from day one and avoid this whole headache.

Cleaning up the default content

A new WordPress site comes with sample content: a "Hello World" post, a "Sample Page," a default comment, and sometimes a theme and plugins you didn't ask for. Delete all of it. There is also a security dimension not to be underestimated: every installed theme or plugin — even a deactivated one — is exploitable code and a potential attack surface that needs updating. The rule: keep only what you actually use. Delete the extra default themes and keep just one as a fallback, and delete any plugin you don't intend to activate. A clean site is faster, more secure and easier to maintain.

Basic security from day one

A new site is an easy target for bots. Apply the basic protection layers right away, not later. The following diagram shows the WordPress security layers that should work together:

WordPress security layers (defense in depth)Automatic backupsRegular updates (core/plugins/themes)Firewall / WAFStrong login + two-factor authSSL / HTTPSWordPress coreEvery layer reduces risk — don't rely on just one
Multi-layered defense for WordPress: backups, updates, a WAF, strong login + 2FA, and SSL/HTTPS around the core.

The most urgent measures: use a username other than admin and a long, unique password, enable two-factor authentication (2FA), install a firewall and a malware scanner, and limit failed login attempts. For full details, follow the guide to securing a WordPress site, and also see the best essential WordPress plugins to choose the right security plugin.

Why these layers specifically? Because most WordPress breaches aren't targeted attacks driven by human intelligence, but blind automated attacks that bots try against millions of sites. The most common is the "brute force" attack: a bot tries thousands of passwords on the wp-login.php page, hoping to hit the right one. Imagine how easy this attack becomes if your username is admin (half the equation is already known) and your password is short. This is where the layers come in: an unpredictable username makes guessing far harder, limiting login attempts blocks the bot after a few failed tries, and two-factor authentication makes the password alone insufficient in the first place. And don't forget a point many people neglect: keep WordPress, plugins and themes up to date at all times, because the vast majority of successful breaches exploit known vulnerabilities that were fixed in versions the site owner never updated to. Regular updates alone close that door.

Performance from the start

A slow site loses visitors and rankings. From day one: install a caching plugin (such as LiteSpeed Cache if your server runs LiteSpeed), enable automatic image compression, and choose a lightweight theme. The hosting itself is the biggest factor — fast hosting on modern PHP and a LiteSpeed server gives you a solid foundation that no plugin can make up for. Dig deeper in the complete WordPress guide to understand the full performance picture.

Why does caching matter so much? Remember that WordPress builds every page on the fly, running PHP and querying the database on every visit — and that is expensive. A caching plugin saves a ready-made HTML copy of the page after it is built the first time and serves it to subsequent visitors instantly without rebuilding it, cutting load time many times over and protecting your server from collapsing under load. Images are another common cause of slowness: a photo taken with a modern phone can be several megabytes, and uploading it as is slows the page down badly on mobile. An image compression plugin shrinks images significantly with no noticeable loss in quality and converts them to modern formats such as WebP. Choosing a theme is decisive too: a "heavy" theme stuffed with features you don't use slows every page from day one, while a lightweight theme gives you a fast foundation. Build on a fast foundation from the start instead of chasing slowness later with more plugins.

Backups — your safety net

Don't put this step off, not even for a day. A backup is the difference between "a passing incident" and "a disaster that ends your project." Imagine an update failed, a plugin broke the site, or a breach encrypted your data — with a recent backup, you restore everything in minutes; without one, you lose all your work. Install a reliable backup plugin, set it to an automatic schedule (daily for active stores, weekly for blogs), and most importantly: have the backups saved somewhere outside your server (cloud storage such as Google Drive or R2), because a backup saved on the same server is lost along with it if the server crashes or is compromised. Test restoring a backup once in a test environment to make sure it actually works before you need it in a real crisis.

When should you choose each installation method?

Now that we have reviewed all the methods, here is the practical summary for choosing confidently based on your situation:

Your situationThe best methodReason
A complete beginner who wants to launch a site todayOne-click (Softaculous)Fastest and simplest, with no manual mistakes
You want to understand WordPress and have full controlManual (5 minutes)Shows you every piece
A developer testing themes/pluginsLocal (LocalWP)Isolated, free and offline
Your hosting has no auto-installerManual or WP-CLIThere is no alternative
You manage several sites professionallyWP-CLIAutomation and top speed
You are building a site before moving it onlineLocal, then migrateSafe development, then launch

What are the common installation mistakes and their fixes?

Even with the simplest methods, you may run into obstacles during installation. Most of them are well known, with straightforward fixes. The following table links each symptom to its cause and fix — keep it as a reference:

SymptomLikely causeFix
«Error establishing a database connection»Wrong wp-config.php details, or the database doesn't existCheck DB_NAME/USER/PASSWORD/HOST and that the user has privileges
A blank white page (WSOD)A fatal PHP error or out of memoryEnable WP_DEBUG, raise memory_limit, check the PHP version
The installation wizard doesn't appear / 404Files in the wrong folder, or URL rewriting disabledPut the files in the root, make sure index.php is there, enable mod_rewrite
"Sorry, you are not allowed..." / a permissions errorWrong file/folder permissionsSet the permissions (see the code below)
Connection failure during a one-click installSSL not enabled while https was chosenEnable SSL first, then reinstall
Arabic text appears garbled (???)The database encoding isn't utf8mb4Create the database with utf8mb4 encoding
"The site is experiencing technical difficulties"A conflict or a low resource limitCheck debug.log, raise PHP limits
A redirect loop after SSLA wrong URL setting or .htaccessCorrect the site address and redirect rules
Inner pages return 404 even though the home page worksPermalinks weren't refreshed, or mod_rewrite is disabledGo to Settings > Permalinks and click "Save" to regenerate the rules
A "Maximum execution time exceeded" messageA long operation exceeded PHP's time limitRaise max_execution_time, or run the operation in batches

How to diagnose any failure: enable debug mode

Before trying random fixes, make WordPress tell you what the problem is. Most failures — the best known being the white screen of death (WSOD) — hide a real error message that isn't shown by default in production. Enable debug mode to see the actual cause. Open wp-config.php and set:

php
/* Enable debug mode and log to a file instead of showing it to visitors */
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );    // Writes errors to wp-content/debug.log
define( 'WP_DEBUG_DISPLAY', false ); // Don't show errors to visitors

With this setup, errors are quietly logged to the wp-content/debug.log file without your visitors seeing them. Open the file after retrying the failing operation, and you will usually find the name of the plugin or file responsible and the line number — turning your guesswork into a precise diagnosis. When you finish fixing it, set WP_DEBUG back to false immediately, because leaving debugging enabled in production is a security risk (it can leak sensitive paths and files) and slows the site down.

For the white screen or "The site is experiencing technical difficulties" specifically, the three most common causes are: a plugin conflict (deactivate all plugins and reactivate them one by one to find the culprit), PHP running out of memory (raise memory_limit in wp-config.php by adding define( 'WP_MEMORY_LIMIT', '256M' );), or a PHP version that isn't compatible with an old theme or plugin. Start with the debug log and you will save yourself hours of guessing.

Fixing permission problems

Many installation failures are caused by wrong file permissions — either too permissive (a security risk) or so strict that WordPress can't write. The correct standard setup:

bash
# Set file ownership to the web server user (change www-data to match your system)
chown -R www-data:www-data /var/www/html

# Folders: 755 (read/execute for everyone, write for the owner)
find /var/www/html -type d -exec chmod 755 {} \;

# Files: 644 (read for everyone, write for the owner)
find /var/www/html -type f -exec chmod 644 {} \;

# The sensitive configuration file: tighter permissions
chmod 640 /var/www/html/wp-config.php

The golden rule: never use chmod 777 — it is an open invitation to a breach. When you set 777 on a file or folder, you give anyone on the server the right to write to it, including any malicious script an attacker uploaded through a vulnerability. If WordPress can't write, the problem is usually ownership (chown), not permissions that need throwing wide open: the right fix is to make your files owned by the web server user (as in the first command above), not to open them to the world. Note the logic behind the numbers: folders need 755 because the web server must be able to "enter" them (the execute permission x), files are fine with 644 because they are only read, not executed, and wp-config.php gets the tighter 640 because it holds your secret database credentials and should be readable only by its owner and the web server. For a deeper diagnosis of post-installation errors, see the guide to fixing common WordPress errors.

The final launch checklist

Before you announce your site to the world, go through this list. Completing it separates a professional site from a rushed one prone to problems:

ItemDone?
WordPress installed on the latest version☐
PHP 8.1+ and a recent MySQL/MariaDB☐
SSL/HTTPS enabled and the site opens on https☐
The admin username isn't admin☐
A strong password + two-factor authentication☐
A table prefix other than wp_☐
Permalinks set to "Post name"☐
Default content deleted (Hello World)☐
Unused themes and plugins deleted☐
A security plugin + firewall enabled☐
An SEO plugin installed and configured☐
Caching and performance optimization enabled☐
Scheduled automatic backups☐
Site email (SMTP) working☐
Site title, tagline and icon set☐

Frequently asked questions

How long does it take to install WordPress? A one-click install via Softaculous is done within two minutes. The "5-minute" manual install actually takes between 5 and 15 minutes depending on your experience. With WP-CLI it takes less than two minutes. The post-installation steps (security and configuration) take an extra 30–60 minutes, but they are worth every second. And don't fall into the trap of rushing: the minutes you save by skipping security setup and backups can cost you days of repairs later.

Do I need programming experience to install WordPress? No. A one-click install requires no technical knowledge — you fill in a form and press a button. A manual install needs a basic familiarity with FTP and databases, but it is easy to learn by following the steps above. Start with a one-click install if you are nervous, then try the manual method in a local environment to learn without risk.

What is the difference between WordPress.org and WordPress.com for installation? WordPress.org is the software you install on your own hosting and own completely, and it is the subject of this guide. WordPress.com is a ready-made hosted service where you don't install anything, but it is restricted. For serious sites, choose self-hosted WordPress.org.

Can I install WordPress on free hosting? Technically yes, if it supports PHP and MySQL, but it comes with harsh limitations: slowness, forced ads, a subdomain, and no support or backups. For a serious site, simple paid hosting is far better. See the complete WordPress guide for choosing the right hosting.

How do I install WordPress in a subfolder instead of the root? In a one-click install, type the folder name in the "In Directory" field (such as blog), and your site will live at yourdomain.com/blog. Manually, put the files inside that subfolder. Leave the field empty if you want to install directly in the root.

Why do I see "Error establishing a database connection" after installing? Because WordPress can't connect to the database. Check the four values in wp-config.php: DB_NAME, DB_USER, DB_PASSWORD and DB_HOST, and that the user has privileges on the database and that the database actually exists. The cause is usually a simple typo in the password or a wrong DB_HOST value for your provider. Details of the fix are in the guide to fixing common WordPress errors.

Do I need SSL before installing WordPress? It is strongly recommended to enable SSL first and install on https from the start, to avoid "mixed content" and redirect problems later. Most hosts provide a free Let's Encrypt certificate. Follow the guide to installing SSL and enabling HTTPS.

Is a local installation enough to launch a real site? No. A local installation is for development and testing only, and nobody on the internet can reach it. To launch a real site you need hosting and a domain, and then you move your local site to them. Build locally, then move to production when you are ready.

What should I do right after installing WordPress? Complete the post-installation steps: set up permalinks, delete the default content, enable HTTPS, secure the login with a strong password and 2FA, install security, SEO and caching plugins, and set up automatic backups. See the best essential WordPress plugins to start with.

How do I secure WordPress right after installation? Change the username from admin, use a long unique password, enable two-factor authentication, install a firewall and a malware scanner, limit login attempts, and change the table prefix. The full details are in the guide to securing a WordPress site.

Can I install more than one WordPress site on the same hosting? Yes, as long as the hosting allows multiple domains or subdomains. Repeat the installation for each site with a separate database (or a different table prefix) for each one. WP-CLI makes managing several sites much easier.

What is the difference between a WordPress Multisite installation and separate sites? Separate sites are completely independent installations, each with its own database and admin dashboard, and they are the best fit for most people. Multisite, on the other hand, is a feature that lets you run a network of sites from a single installation with a central dashboard that shares the core and plugins — useful for universities and companies that manage dozens of similar sites. You enable it by adding the line define( 'WP_ALLOW_MULTISITE', true ); to wp-config.php and then completing the setup. Don't choose Multisite unless you truly need central management, because it is more complex to back up and migrate than separate sites.

Do I need to reinstall WordPress when I change the theme or move the domain? No. Changing the theme is done from inside the admin dashboard without any reinstallation, and so is installing plugins. Moving the site to a new domain or new hosting doesn't require a "reinstall" but a migration: you copy the files and the database, then update the site address and links in the database (the wp search-replace tool is ideal for this). Reinstalling from scratch means losing all your content, so only do it when creating a completely new site.

Conclusion

Installing WordPress isn't an obstacle but a gateway. You have chosen the path that fits your situation — one-click for speed, manual for understanding and control, local for development, or WP-CLI for professional work — and in every case the result is a ready site within minutes. But remember that installation is only half the journey: the post-installation steps for security, performance and backups are what turn an ordinary install into a solid site that lasts and grows.

When choosing hosting, prefer an environment with a modern PHP version and a fast web server such as LiteSpeed to give your site a good start, then continue your journey with the complete WordPress guide to master everything after installation.

Frequently asked questions

How long does it take to install WordPress?

A one-click install via Softaculous is done within two minutes. The "5-minute" manual install actually takes between 5 and 15 minutes depending on your experience. With WP-CLI it takes less than two minutes. The post-installation steps (security and configuration) take an extra 30–60 minutes, but they are worth every second. And don't fall into the trap of rushing: the minutes you save by skipping security setup and backups can cost you days of repairs later.

Do I need programming experience to install WordPress?

No. A one-click install requires no technical knowledge — you fill in a form and press a button. A manual install needs a basic familiarity with FTP and databases, but it is easy to learn by following the steps above. Start with a one-click install if you are nervous, then try the manual method in a local environment to learn without risk.

What is the difference between WordPress.org and WordPress.com for installation?

WordPress.org is the software you install on your own hosting and own completely, and it is the subject of this guide. WordPress.com is a ready-made hosted service where you don't install anything, but it is restricted. For serious sites, choose self-hosted WordPress.org.

Can I install WordPress on free hosting?

Technically yes, if it supports PHP and MySQL, but it comes with harsh limitations: slowness, forced ads, a subdomain, and no support or backups. For a serious site, simple paid hosting is far better. See the complete WordPress guide for choosing the right hosting.

How do I install WordPress in a subfolder instead of the root?

In a one-click install, type the folder name in the "In Directory" field (such as blog), and your site will live at yourdomain.com/blog. Manually, put the files inside that subfolder. Leave the field empty if you want to install directly in the root.

Why do I see "Error establishing a database connection" after installing?

Because WordPress can't connect to the database. Check the four values in wp-config.php: DB_NAME, DB_USER, DB_PASSWORD and DB_HOST, and that the user has privileges on the database and that the database actually exists. The cause is usually a simple typo in the password or a wrong DB_HOST value for your provider. Details of the fix are in the guide to fixing common WordPress errors.

Do I need SSL before installing WordPress?

It is strongly recommended to enable SSL first and install on https from the start, to avoid "mixed content" and redirect problems later. Most hosts provide a free Let's Encrypt certificate. Follow the guide to installing SSL and enabling HTTPS.

Is a local installation enough to launch a real site?

No. A local installation is for development and testing only, and nobody on the internet can reach it. To launch a real site you need hosting and a domain, and then you move your local site to them. Build locally, then move to production when you are ready.

What should I do right after installing WordPress?

Complete the post-installation steps: set up permalinks, delete the default content, enable HTTPS, secure the login with a strong password and 2FA, install security, SEO and caching plugins, and set up automatic backups. See the best essential WordPress plugins to start with.

How do I secure WordPress right after installation?

Change the username from admin, use a long unique password, enable two-factor authentication, install a firewall and a malware scanner, limit login attempts, and change the table prefix. The full details are in the guide to securing a WordPress site.

Can I install more than one WordPress site on the same hosting?

Yes, as long as the hosting allows multiple domains or subdomains. Repeat the installation for each site with a separate database (or a different table prefix) for each one. WP-CLI makes managing several sites much easier.

What is the difference between a WordPress Multisite installation and separate sites?

Separate sites are completely independent installations, each with its own database and admin dashboard, and they are the best fit for most people. Multisite, on the other hand, is a feature that lets you run a network of sites from a single installation with a central dashboard that shares the core and plugins — useful for universities and companies that manage dozens of similar sites. You enable it by adding the line define( 'WP_ALLOW_MULTISITE', true ); to wp-config.php and then completing the setup. Don't choose Multisite unless you truly need central management, because it is more complex to back up and migrate than separate sites.

Do I need to reinstall WordPress when I change the theme or move the domain?

No. Changing the theme is done from inside the admin dashboard without any reinstallation, and so is installing plugins. Moving the site to a new domain or new hosting doesn't require a "reinstall" but a migration: you copy the files and the database, then update the site address and links in the database (the wp search-replace tool is ideal for this). Reinstalling from scratch means losing all your content, so only do it when creating a completely new site.