Would you like to run a PHP website, such as WordPress, a forum, or your own PHP site? With the ZAP Webspace app, you get a ready-to-use web hosting space on your VPS: the nginx web server with PHP 8.2, 8.3, or 8.4, a MariaDB database, phpMyAdmin, an SFTP account, and cron jobs. Upload your files and your website is online. You don't have to manage the web server or PHP yourself.
In this guide, we'll show you the easy way using a One-Click App: install it, upload your website, use the database, and adjust the settings. At the end, you'll also find instructions for setting up the web server, PHP, and database yourself using the console.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. For instructions, see VPS: One-Click Apps.
- At least 2 GB RAM for the app.
- An optional custom domain. Without one, your website will have a
zap.cloudaddress.
Web hosting with email addresses? ZAP Webspace does not include a mail server. If you also need email addresses for your domain, install the ZAP Webspace + Mail app instead. It includes everything in this guide, plus mailboxes and webmail. For instructions on setting up email, see Web Hosting: Set Up Email with Your Own Mail Server.
- Open your VPS in the ZapX Dashboard and go to the One-Click Apps tab.
- Search the App catalog for “ZAP Webspace” and click Install next to ZAP Webspace.
- Use a custom subdomain or zap.cloud is already selected, with a random name. Enter a custom name or select your own domain under Domain selection. With a domain, your website will be accessible via HTTPS.
- You can adjust the defaults under App configuration. This isn't required; you can also change all values later:
| Field | Default | Description |
|---|---|---|
PHP_VERSION | 8.3 | PHP version for your website: 8.2, 8.3, or 8.4 |
PHP_MEMORY_LIMIT | 256M | Maximum memory a PHP request can use |
PHP_UPLOAD_MAX | 128M | Largest file that can be uploaded through your website |
TIMEZONE | Europe/Berlin | Time zone for PHP and the database |
MARIADB_BUFFER_POOL | 64M | Database memory; increase this for large shops or databases |
NODE_MEMORY_LIMIT | 1g | Memory available to all Node.js apps combined |
SFTP_PORT | 2222 | Port for SFTP access |
- Click Queue installation. The app will be Online in about three to four minutes.
Port 2222 is already in use?
If another app on your VPS is already using port 2222, ZapX will stop the installation and display a notice. In App configuration, enter an available port for SFTP_PORT, such as 2223, then click Queue installation again.
Afterward, the app card will show the Website and phpMyAdmin links, and the IP address and SFTP port under Connection.
The app generates the login credentials during installation. You can find them in the app settings (gear icon) under App environment > Automatically generated values. Click the eye icon to show a value, or the copy icon to copy it.
| Value | Use |
|---|---|
SERVICE_USER_SFTP and SERVICE_PASSWORD_SFTP | SFTP username and password |
SERVICE_USER_MYSQL and SERVICE_PASSWORD_MYSQL | Username and password for the database and phpMyAdmin |
SERVICE_PASSWORD_MYSQLROOT | Password for the database user root; only needed to create your own database users or additional databases |
By default, the username for both SFTP and the database is zapx.
Connect using an SFTP program such as FileZilla or WinSCP:
| Setting | Value |
|---|---|
| Protocol | SFTP |
| Server | App domain or your VPS IP address |
| Port | 2222 or the value of SFTP_PORT |
| Username and password | SERVICE_USER_SFTP and SERVICE_PASSWORD_SFTP |
After logging in, you'll see these folders:
| Folder | Contents |
|---|---|
html | Your website. By default, this contains a placeholder page, index.php, which you can replace with your website. |
sites | Additional domains, each in its own folder |
nginx | Custom nginx rules in the server.d subfolder |
cron | Your cron jobs in the crontab file |
node | Node.js apps alongside PHP |
The sites, nginx, and node folders each contain a README.txt file with examples. SFTP paths start with /www; on the server itself, they start with /var/www. You'll need this path, for example, in cron jobs.
The app creates a database for you. Enter these details on your website, for example in the wp-config.php file or the WordPress setup wizard:
| Setting | Value |
|---|---|
| Database name | web |
| Database host | mariadb |
| Username and password | SERVICE_USER_MYSQL and SERVICE_PASSWORD_MYSQL |
The database is only accessible to your website and phpMyAdmin, not from the internet. To manage it, click phpMyAdmin on the app card and log in using the same credentials. For example, you can import an existing database from an SQL file.
Open the app settings (gear icon) > App environment, change PHP_VERSION to 8.4, for example, and click Save. The app will restart, and your website will run with the new setting after about a minute. Your files and database will be preserved. You can change PHP_MEMORY_LIMIT, PHP_UPLOAD_MAX, and the other values in the table above in the same way.
ZAP Webspace runs on nginx, so .htaccess files are not processed. WordPress permalinks and PHP pages that use index.php as their entry point will still work without any additional rules. Add your own rules in a file with the .conf extension in the nginx/server.d folder, for example nginx/server.d/regeln.conf:
# Weiterleitung von /alt nach /neu
location = /alt { return 301 /neu; }
# Ordner sperren
location ^~ /intern/ { deny all; }
The rules will take effect within 10 seconds. If a file contains an error, the previous configuration remains active, and the error will appear in the app log. ZAP Webspace automatically applies simple access-denial files, such as an .htaccess file with Deny from all. Find more examples in the README.txt file in the nginx folder.
For each additional domain, create a folder with its name in the sites folder, such as sites/shop.deinedomain.de, and upload that website's files there. The app will then serve requests for that domain from this folder, and requests for all other domains from html.
The domain must also point to the app: Open the app settings (gear icon) > App actions and enter it under Additional domains. If the domain is hosted by ZAP-Hosting, ZapX will create the DNS record automatically. With another provider, create an A record pointing to your VPS IP address.
Add your cron jobs to the cron/crontab file, with one job per line. They run as the www-data user, and the app automatically applies any changes. Here's an example for WordPress that runs every 5 minutes:
*/5 * * * * php /var/www/html/wp-cron.php > /dev/null 2>&1
The PHP mail() function does not send emails in ZAP Webspace. Use SMTP with your mail provider for contact forms and notifications. For WordPress, for example, you can use the WP Mail SMTP plugin. Alternatively, use the ZAP Webspace + Mail app, where mail() works.
In addition to PHP, ZAP Webspace can also run Node.js apps (Node.js 20, 22, or 24), such as Next.js or Express. To do this, create a configuration file for each domain in the node folder. See the README.txt file in that folder for details about the file format.
Open the app settings (gear icon) > App update and click Check for updates. If a new version is available, install it by clicking Apply update. Your files and database will be preserved.
Would you rather set up the web server, PHP, and database yourself using the console, for example on a Dedicated Server or because you want to control every step? Follow the guide Set Up a LEMP Stack on a Linux Server. It explains how to install nginx, MariaDB, and PHP individually. Then set up phpMyAdmin by following Set Up phpMyAdmin on a Linux Server.