23 C
Senior Writer and partner

Install WonderCMS on Ubuntu 18.04

In the times we live in, there are many alternatives to solve a problem or need. In the case of computer science, we have many programs that help to solve a specific need. So, the internet and blogs take a large part of the current technological needs. Therefore, there are alternatives to create Blogs and content websites. Some more complete as WordPress but others do not require so much. In this post, I will show you how to install WonderCMS in Ubuntu 18.04.

WonderCMS is an application that allows you to create and deploy blogs on our server. As its name indicates, it is a CSM. That is to say, it will also help to manage the content of the same one. It’s open source, it’s written in PHP and it’s quite light. It does not require a database manager such as MySQL or MariaDB, this means that it consumes practically no resources.

So, let us start.

Install WonderCMS

1.- Install Apache and PHP

WonderCMS requires a functional web server. It is compatible with several of them, including Nginx and Apache. The latter is one of the most popular and will be the one you install for this post.

- Advertisement -

Open a terminal or connect to your web server and run:

:~$ sudo apt install apache2

Then, install PHP. WonderCMS requires PHP 7.1, but Ubuntu in its repositories has version 7.2. So there will not be any problems with it.

:~$ sudo apt install php7.2 php7.2-cli libapache2-mod-php php7.2-common php7.2-curl php7.2-zip php7.2-mbstring

Then, test PHP. Create a new file on /var/www/html/ called test.php and add the following:

:~$ sudo nano /var/www/html/test.php

1.- PHPinfo
1.- PHPinfo

Press CTRL + O to save the changes and CTRL + X to exit.

Now, open the file using the web browser. http://your-server/test.php.

2.- Apache and PHP are correctly installed
2.- Apache and PHP are correctly installed

So, Apache and PHP are working properly.

2.- Install WonderCMS

Now it’s time to download and install WonderCMS. First, you need to install some necessary packages:

:~$ sudo apt install wget unzip curl git

After that, download WonderCMS.

:~$ wget -c https://github.com/robiso/wondercms/releases/download/2.7.0/WonderCMS-2.7.0.zip

3.- Donwload and install WonderCMS
3.- Donwload and install WonderCMS

Then, decompress it on /var/www/html/.

:~$ sudo unzip WonderCMS-2.7.0.zip -d /var/www/html/

After that, change the folder owner to www-data.

:~$ sudo chown -R www-data:www-data /var/www/html/wondercms/

Finally, create a new virtualhost for WonderCMS. To do it, create a new file and add the following.

4.- Installing WonderCMS on Ubuntu 18.04
4.- Installing WonderCMS on Ubuntu 18.04

:~$ sudo nano /etc/apache2/sites-available/wonder.conf
<VirtualHost *:80>
     ServerAdmin admin@your_domain.com
      DocumentRoot /var/www/html/wondercms
     ServerName your-domain.com

     <Directory /var/www/html/wondercms>
          Options FollowSymlinks
          AllowOverride All
          Require all granted

     ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
     CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined


5.- Creating a new virtual host for WonderCMS
5.- Creating a new virtual host for WonderCMS

NOTE: you have to replace your-domain with yours. Do not forget to do it.

Save the changes and close the file.

Next, enable the new virtualhost, the rewrite module and restart apache.

:~$ sudo ln -s /etc/apache2/sites-available/wonder.conf /etc/apache2/sites-enabled/your-domain.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2

6.- Enabling the new virtualhost
6.- Enabling the new virtualhost

Now, complete the installation using the web browser.

Complete the installation using the web browser

Open your web browser and go to your domain to complete the installation. You should see the following:

7.- WonderCMS working
7.- WonderCMS working

Right there, you will see the temporary password and a login link.

8.- Log in into WonderCMS
8.- Log in into WonderCMS

Now, you can start to build your site.

9.- WonderCMS on Ubuntu 18.04
9.- WonderCMS on Ubuntu 18.04


In conclusion, we can say that WonderCMS is a very reliable alternative for personal projects. It is true that there are more complete alternatives but also focused on other needs.

Please share this post with your friends. And leave us a comment.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article