WordPress is the most widely used content management system in the world. You can use it to build websites, blogs, club sites, or even an online shop with plugins like WooCommerce—all without having to write code yourself. Thousands of themes and plugins add forms, forums, newsletters, and much more to WordPress. In this guide, we’ll show you two ways to get started: the easy way, using a One-Click App that makes WordPress and its database available over HTTPS in just a few clicks, and the manual installation using the LAMP stack (Linux, Apache, MySQL, PHP) from the command line. Afterward, you’ll set up email delivery and the upload limit, and secure your site.
WordPress also works with a traditional web hosting plan. A VPS or dedicated server is a good fit if:
- You want full control: You choose the PHP settings, upload limits, caching, and server software.
- Your site needs dedicated resources, for example, a WooCommerce shop, lots of plugins, or a high volume of visitors, without other customers on the same system slowing it down.
- You run additional services on the same server, such as a database for other projects, a game server, or other One-Click Apps.
- You want to run multiple separate WordPress sites, each in its own app with its own domain.
A server of your own is less suitable if you don’t want to manage anything: server updates, backups, and security are your responsibility. If you have a web hosting plan, follow the guide Install WordPress on Web Hosting instead. If you want to run multiple PHP sites with SFTP access and phpMyAdmin in one app, ZAP Webspace is the right One-Click App for you.
The app catalog offers WordPress in three versions. WordPress itself is the same in all of them; they differ only in the database:
| Catalog entry | Database | Suitable for |
|---|---|---|
| WordPress with MySQL | MySQL 8, included in the app | Most websites and blogs |
| WordPress with MariaDB | MariaDB 11, included in the app | Most websites and blogs |
| WordPress without Database | None | If you want to use your own existing database |
WordPress works equally well with MySQL and MariaDB. If you don’t have a reason to choose a specific database, either one is fine. With these options, the app creates the database and credentials for you. With WordPress without Database, enter the host, name, username, and password for an existing MySQL or MariaDB database that the server can access in the WordPress setup wizard.
Switching versions later You can’t change the database for an installed app. If you want to switch, install the other version and migrate your site with a migration plugin.
The quickest way to get your WordPress site up and running is through the One-Click Apps on your VPS or dedicated server. The app includes a web server, PHP, and a database, and is directly accessible over HTTPS with a domain. All you need to do is set up your site in a browser.
- A Linux server (Debian or Ubuntu) with One-Click Apps set up. For instructions, see Set Up One-Click Apps.
- At least 512 MB RAM for WordPress; 1 GB is recommended. You’ll need more with lots of plugins, a shop, or many visitors.
- Open your server in the ZapX dashboard and go to the One-Click Apps tab.
- Search the app catalog for WordPress, choose the version you want, and click Install app.
- Use a custom subdomain or zap.cloud is already selected, with a random name. Leave this option enabled or enter your own name: with a domain, your site will be accessible over HTTPS instead of HTTP only.
- You don’t need to enter anything under App configuration. The app generates the database credentials for you. You can find them later in the app settings (gear icon), under App environment > Automatically generated values.
- Click Queue installation. The app will show as Online after one to two minutes.
Open the app’s Access link. You’ll go straight to the WordPress setup wizard:
- Choose your site’s language.
- Enter your site title, username, a strong password, and email address.
- Click Install WordPress. You can then sign in at
/wp-adminwith your username and password.
Complete setup right away Until you finish the wizard, anyone who knows the address can set up WordPress and create the admin account. Complete the setup immediately after installation.
There are two things you should take care of as soon as you’ve finished setting up:
- Email delivery: By default, WordPress in the app doesn’t send emails. In that case, “Forgot password” will report that the email couldn’t be sent, and contact forms and shop emails won’t arrive either. The solution is an SMTP plugin; see “Send Emails via SMTP” below.
- Upload limit: By default, uploads are limited to 2 MB. To upload larger images, videos, or theme packages, add these two lines to the
.htaccessfile in the WordPress folder:
php_value upload_max_filesize 256M
php_value post_max_size 256M
The easiest way is to ask your server’s ZapX AI Agent to add the two lines to /var/www/html/.htaccess in the WordPress container. WordPress will then show the new limit when you upload files under Media.
- Update WordPress, plugins, and themes in WordPress itself, under Dashboard > Updates. By default, WordPress automatically installs new versions of WordPress in the app. Your files are stored in a separate volume and remain intact.
- The app itself (PHP, web server, database) is updated in the app settings (gear icon) under App update > Check for updates. If a new version is available, install it by clicking Apply update.
- Backups: The easiest way to back up your files and database is with a backup plugin that regularly sends backups to external storage, such as via SFTP or to cloud storage. Also use your VPS backups in the web interface.
Our guides WordPress Plugins and WordPress Elementor show you how to install plugins and design pages.
The rest of this guide covers the manual installation of WordPress using the LAMP stack (Linux, Apache, MySQL, PHP) from the command line. This is useful, for example, if you want to integrate WordPress into an existing server environment or choose every step yourself. We’ll use Ubuntu.
- A Linux server running a current Ubuntu LTS version (e.g. 24.04) and accessible via SSH. If you’re not sure how to do this, see our guide First Access (SSH). Older Ubuntu versions include PHP versions that WordPress no longer recommends. You can find the current requirements at wordpress.org/about/requirements.
- For HTTPS: a domain or subdomain whose A record points to your server’s IP address (e.g.
wp.example.com).
These resources are a good guideline for running the web server, database, and WordPress on one server:
| Hardware | Minimum | Recommended |
|---|---|---|
| CPU | 1 vCPU core | 2 vCPU cores |
| RAM | 1 GB | 2 GB |
| Storage | 10 GB | 25 GB |
You’ll need more for a shop, lots of plugins, many visitors, or a large media library.
Connect to your server via SSH and update the package lists first:
sudo apt update
Then install all the required packages. Copy and paste the entire command. Be patient—it may take a while.
sudo apt install apache2 \
ghostscript \
libapache2-mod-php \
mysql-server \
php \
php-bcmath \
php-curl \
php-imagick \
php-intl \
php-mbstring \
php-mysql \
php-xml \
php-zip
To make Apache accessible from the internet, open the ports for HTTP (80) and HTTPS (443) in the firewall. In this example, we’ll use the UFW firewall, which comes with a dedicated profile for Apache. For more about Linux firewalls, see our guide Manage the Firewall.
First, create a rule for SSH, enable the firewall, and then allow Apache:
# Regel für SSH erstellen
sudo ufw allow OpenSSH
# UFW Firewall aktivieren
sudo ufw enable
# Regel für Apache erstellen (Port 80 und 443)
sudo ufw allow in "Apache Full"
# UFW Firewall Regeln anzeigen
sudo ufw status
Don’t forget the SSH rule Make sure the SSH rule exists before enabling UFW. Without it, you won’t be able to log in to the server via SSH if your connection drops.
You should see Apache Full and Apache Full (v6) with the action ALLOW, as well as your SSH rule. Use sudo ufw app list to see which profiles are available.
Now open http://SERVER_IP in your browser. If everything is working, you’ll see the Apache default welcome page. If not, check the service status with systemctl status apache2.
Next, run the MySQL security script. It’s optional, but highly recommended:
sudo mysql_secure_installation
The script will guide you through the setup interactively. First, it will ask about password validation. We recommend entering Y to allow only secure passwords, then choosing either MEDIUM with 1 or STRONG with 2.
Next, you’ll be asked whether to remove the anonymous user and disable remote root login. Confirm both with Y. This means the database root user can only be used locally on the server.
Finally, you’ll be asked whether to delete the test database and reload the privilege tables. We recommend entering Y here as well.
Now check whether you can log in by running sudo mysql -u root. A welcome message will appear. Enter quit to end the session.
Check that PHP is working. Create an info.php file in the /var/www/html/ directory:
# Öffne den nano Editor für die neue Datei
sudo nano /var/www/html/info.php
# Füge folgenden Inhalt ein
<?php
phpinfo();
?>
Save the file with CTRL+X, then Y and Enter. Open http://SERVER_IP/info.php in your browser. You’ll see a page with information about your PHP installation.
The page reveals details about your server, so delete the test file right away:
sudo rm /var/www/html/info.php
Create a separate database and database user for WordPress. You’ll need these details in the setup wizard shortly.
# In MySQL einloggen
sudo mysql -u root
# Datenbank erstellen
CREATE DATABASE wordpress;
# Dedizierten WordPress-Benutzer anlegen
# Ersetze DEIN_PASSWORT durch ein eigenes, sicheres Passwort
CREATE USER wordpress@localhost IDENTIFIED BY 'DEIN_PASSWORT';
# Rechte für den Benutzer setzen (alles als ein Befehl kopieren)
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
ON wordpress.*
TO wordpress@localhost;
# Privilegientabellen neu laden
FLUSH PRIVILEGES;
Enter quit to exit MySQL.
Use the official version from wordpress.org instead of the APT package. WordPress recommends this too, to avoid issues with outdated packages. Download the latest version and extract it:
cd /tmp && wget https://wordpress.org/latest.tar.gz
tar -xvf latest.tar.gz
Copy the resulting wordpress folder to /var/www/html/, create the upload directory, and assign everything to the web server user www-data:
sudo cp -R wordpress /var/www/html/
sudo mkdir -p /var/www/html/wordpress/wp-content/uploads
sudo chown -R www-data:www-data /var/www/html/wordpress/
sudo chmod -R 755 /var/www/html/wordpress/
By default, Apache on Ubuntu doesn’t process .htaccess files. WordPress needs them for clean links (permalinks), so create a separate website configuration:
sudo nano /etc/apache2/sites-available/wordpress.conf
Add this content and replace wp.example.com with your domain:
<VirtualHost *:80>
ServerName wp.example.com
DocumentRoot /var/www/html/wordpress
<Directory /var/www/html/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Require all granted
</Directory>
</VirtualHost>
DocumentRootmakes your domain point directly to WordPress.AllowOverride Limit Options FileInfoallows WordPress to manage permalinks through.htaccess.
Enable the website and the rewrite module, disable the Apache default page, and reload Apache:
sudo a2ensite wordpress
sudo a2enmod rewrite
sudo a2dissite 000-default
sudo systemctl reload apache2
Open http://wp.example.com (or http://SERVER_IP if the domain doesn’t point to the server yet). The setup wizard will first ask you to choose a language.
Complete setup right away Until you finish the wizard, anyone who visits the address can connect WordPress to their own database and create the admin account. Complete the following steps immediately.
Next, enter the database settings: database name wordpress, username wordpress, your password, and localhost as the database host.
On the next screen, start the installation.
Enter your site title, a username, a strong password, and the email address for the admin account. You can also choose whether search engines are allowed to index your site. Then click Install WordPress.
On the success page, click Log In to go to the login page. Sign in with your credentials to open your WordPress dashboard.
Without HTTPS, passwords are transmitted unencrypted and browsers warn your visitors. With Certbot and the Apache plugin, you can get a free certificate from Let's Encrypt:
sudo apt install certbot python3-certbot-apache
sudo certbot --apache -d wp.example.com
Certbot updates the Apache configuration, redirects HTTP to HTTPS, and renews the certificate automatically. Then, in WordPress, go to Settings > General and change the WordPress Address (URL) and Site Address (URL) to https://wp.example.com. Learn more in our guides Set Up Certbot and Create an SSL Certificate.
A WordPress site consists of two parts: the files (themes, plugins, uploads, and wp-config.php) and the database. Always back up both:
sudo mysqldump --single-transaction wordpress > wordpress-db-$(date +%F).sql
sudo tar -czf wordpress-files-$(date +%F).tar.gz -C /var/www/html wordpress
Regularly download the backups from the server, for example via SFTP. Alternatively, a backup plugin can do this automatically on a schedule. To restore, copy the folder back and import the database with sudo mysql wordpress < wordpress-db-DATUM.sql.
- Update WordPress, plugins, and themes in the dashboard under Dashboard > Updates. Since the files belong to the
www-datauser, WordPress can install updates itself. By default, WordPress automatically installs security and maintenance updates. - Update the web server, PHP, and MySQL with the package manager:
sudo apt update && sudo apt upgrade
Back up your files and database before major updates, as described above.
After installation, the same three topics tend to raise questions, regardless of which method you chose.
By default, WordPress sends emails using the PHP mail() function. On a server without its own mail server, these emails won’t be delivered, whether you’re using the One-Click App or a manual installation. This affects “Forgot password,” notifications, contact forms, and order emails.
Here’s how to set up email delivery using an email account from a mail provider:
- In the dashboard, go to Plugins > Add New Plugin and install an SMTP plugin, such as WP Mail SMTP.
- Enter your mail provider’s SMTP details in the plugin settings: server, port
587with TLS or STARTTLS, username, and password. - Use the plugin’s test function to send a test email.
Use port 587 instead of 25
New VPSs can’t send outgoing mail over ports 25 and 465. Use port 587 for SMTP. Also make sure the sender address matches your email account, or messages may end up in spam.
By default, uploads are limited to 2 MB. In the One-Click App, increase the limit by adding the .htaccess lines described above. For a manual installation, change the values directly in Apache’s PHP configuration. Find the PHP version in the path by running php -v (e.g. 8.3):
sudo nano /etc/php/8.3/apache2/php.ini
Set these two values and then reload Apache with sudo systemctl reload apache2:
upload_max_filesize = 256M
post_max_size = 256M
- Install updates promptly: Most attacks on WordPress exploit vulnerabilities in outdated plugins and themes.
- Only install plugins and themes from trusted sources, preferably from the official directory on wordpress.org. Remove anything you don’t use.
- Use secure login credentials: Don’t use a username like
admin, and choose a long, unique password. You can add two-factor authentication with a plugin. - Back up your site regularly so you can restore it quickly after an error or an attack.
- An email account for sending messages: Neither the app nor the LAMP stack includes a mail server.
- Performance: If you have a lot of visitors or a shop, a cache plugin can help. If that isn’t enough, your server needs more RAM and CPU.
- One site per installation: Each One-Click App contains exactly one WordPress site. To run a second site, install the app again.
You’ve installed WordPress on your Linux server, secured it with HTTPS, and learned how to set up email delivery, the upload limit, backups, and updates. Our guides WordPress Plugins and WordPress Elementor show you how to get started with plugins and page design.
Prefer not to use the command line? Take the easy route with a One-Click App, as described above under “The Easy Way: WordPress as a One-Click App.”