Skip to content

Web Hosting: Set Up a Website with ZAP Webspace

Set up your website on a VPS with the ZAP Webspace app: install it, upload files via SFTP, configure a database with phpMyAdmin, choose a PHP version, add nginx rules, and set up cron jobs.

26 November 20266 min read1 Views0 helpful

Introduction

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.

Easy option: ZAP Webspace as a One-Click App

Requirements

  • 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.cloud address.
Info

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.

Install

  1. Open your VPS in the ZapX Dashboard and go to the One-Click Apps tab.
  2. Search the App catalog for “ZAP Webspace” and click Install next to ZAP Webspace.
  3. 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.
  4. You can adjust the defaults under App configuration. This isn't required; you can also change all values later:
FieldDefaultDescription
PHP_VERSION8.3PHP version for your website: 8.2, 8.3, or 8.4
PHP_MEMORY_LIMIT256MMaximum memory a PHP request can use
PHP_UPLOAD_MAX128MLargest file that can be uploaded through your website
TIMEZONEEurope/BerlinTime zone for PHP and the database
MARIADB_BUFFER_POOL64MDatabase memory; increase this for large shops or databases
NODE_MEMORY_LIMIT1gMemory available to all Node.js apps combined
SFTP_PORT2222Port for SFTP access
  1. Click Queue installation. The app will be Online in about three to four minutes.
Warning

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.

Find your login credentials

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.

ValueUse
SERVICE_USER_SFTP and SERVICE_PASSWORD_SFTPSFTP username and password
SERVICE_USER_MYSQL and SERVICE_PASSWORD_MYSQLUsername and password for the database and phpMyAdmin
SERVICE_PASSWORD_MYSQLROOTPassword 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.

Upload your website

Connect using an SFTP program such as FileZilla or WinSCP:

SettingValue
ProtocolSFTP
ServerApp domain or your VPS IP address
Port2222 or the value of SFTP_PORT
Username and passwordSERVICE_USER_SFTP and SERVICE_PASSWORD_SFTP

After logging in, you'll see these folders:

FolderContents
htmlYour website. By default, this contains a placeholder page, index.php, which you can replace with your website.
sitesAdditional domains, each in its own folder
nginxCustom nginx rules in the server.d subfolder
cronYour cron jobs in the crontab file
nodeNode.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.

Database and phpMyAdmin

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:

SettingValue
Database nameweb
Database hostmariadb
Username and passwordSERVICE_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.

Change the PHP version and limits

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.

Redirects and rules: nginx instead of .htaccess

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:

Code
# 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.

Additional domains

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.

Cron jobs

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:

Code
*/5 * * * * php /var/www/html/wp-cron.php > /dev/null 2>&1

Emails from your website

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.

Node.js apps

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.

Updates

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.

Manual installation

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.

Conclusion

With ZAP Webspace, your website can be online in just a few steps: install the app, upload your files to the html folder via SFTP, and enter the database details on your website. If you need help, our support team will be happy to assist.

Free tools

Related tools for HTTPS, domains and servers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.