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.
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 <?php 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
.
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
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.
:~$ 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 </Directory> ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined </VirtualHost>
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
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:
Right there, you will see the temporary password and a login link.
Now, you can start to build your site.
Conclusion
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.