How to Install WonderCMS on Debian Latest

WonderCMS is a lightweight Content Management System (CMS) that enables the creation of websites without requiring databases. In this tutorial, we will show you how to install WonderCMS on Debian Latest.

Prerequisites

Before we begin, ensure that your Debian system has the following:

Step 1: Download WonderCMS

The first step is to download the latest version of WonderCMS from their official website using the following command:

wget https://www.wondercms.com/download

Step 2: Extract WonderCMS

Once the download is complete, extract the downloaded zip file to the web server's document root directory.

sudo unzip wondcrcms_latest.zip -d /var/www/html/

Step 3: Set Permissions

Ensure that the webserver user has read and write access to the WonderCMS directory by executing the following command:

sudo chown -R www-data:www-data /var/www/html/WonderCMS
sudo chmod -R 755 /var/www/html/WonderCMS

Step 4: Configure the Web Server

Apache

If you are using Apache, create a new virtual host file for WonderCMS using the following command:

sudo nano /etc/apache2/sites-available/wondercms.conf

Copy and paste the following configuration:

<VirtualHost *:80>
    ServerName yourdomain.com

    DocumentRoot /var/www/html/WonderCMS
    <Directory /var/www/html/WonderCMS>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/log/apache2/wondercms_error.log
    CustomLog /var/log/apache2/wondercms_access.log combined

</VirtualHost>

Save and close the file.

Enable the virtual host and restart Apache:

sudo a2ensite wondercms.conf
sudo systemctl restart apache2

Nginx

If you are using Nginx, create a server block file for WonderCMS using the following command:

sudo nano /etc/nginx/conf.d/wondercms.conf

Copy and paste the following configuration:

server {
    listen 80;
    server_name yourdomain.com;

    root /var/www/html/WonderCMS;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    }

    error_log /var/log/nginx/wondercms_error.log;
    access_log /var/log/nginx/wondercms_access.log;
}

Save and close the file.

Restart Nginx:

sudo systemctl restart nginx

Step 5: Install WonderCMS

Visit your website in your browser and follow the WonderCMS installation wizard. You will be prompted to set up an administrator account and create a website title and description.

Once the installation is complete, you can log in to the WonderCMS dashboard and start creating your website.

Congratulations! You have successfully installed WonderCMS on Debian Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!