In this tutorial, we are going to provide you with step by step instructions on how to install Quick.CMS with Apache on an Ubuntu 16.04 VPS
Quick.CMS is one of the simplest and easy to customize CMS. Quick.CMS is a lightweight CMS, focused on speed. The installation process is easy and it takes only a couple of minutes.
At the time of writing this tutorial, the latest stable version of Quick.CMS is 6.2 and it requires:
- PHP 5.2 or higher (preferably the latest), compiled with PDO and GD PHP Library enabled.
- allow_url_fopen option enabled
- Apache Web Server 2.0 or higher compiled with mod_rewrite module;
This install guide assumes that Apache is already installed and configured on your virtual server.
Let’s start with the installation. Make sure your server OS packages are fully up-to-date:
apt-get update apt-get upgrade
Enable Apache mod_rewrite module and restart Apache for the changes to take effect:
a2enmod rewrite service apache2 restart
Download the latest version of Quick.CMS available at ‘http://opensolution.org/download/’ to a directory on the server and extract it using the following commands:
cd /opt/ wget http://opensolution.org/download/home.html?sFile=Quick.Cms_v6.2-en.zip -O quickcms.zip unzip quickcms.zip -d /var/www/html/quickcms/
Edit the PHP configuration file (/etc/php5/cli/php.ini):
and modify these lines:
allow_url_fopen = On file_uploads = On upload_max_filesize = 32M
Create a new virtual host directive in Apache. For example, edit your Apache configuration file (‘/etc/httpd/conf/httpd.conf’ by default) and un-comment the following line:
Then, add the following lines at the end:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /var/www/html/quickcms/ ServerName yourdomain.com ServerAlias www.yourdomain.com <Directory /var/www/html/quickcms/> DirectoryIndex index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog logs/yourdomain.com-error_log CustomLog logs/yourdomain.com-access_log common </VirtualHost>
Run the following command to set proper permissions:
chown apache:apache -R /var/www/html/quickcms/
Restart the Apache service for the changes to take effect:
systemctl restart httpd.service
Edit the Quick.CMS configuration file and set the email address and password which will be used for loging into the administration back-end:
vi /var/www/html/quickcms/database/config.php $config['login_email'] = "firstname.lastname@example.org"; $config['login_pass'] = "Axn4mVkei5Wr$D";
To access the administration back-end, open http://yourdomain.com/admin.php in your favorite browser and enter the administrator email address and password defined in the ‘config.php’ file.
define( 'DEVELOPER_MODE', true );
For security reason, after publishing your website you should change name of the “admin.php” file to something else, i.e. make it more difficult for others to guess, for example edit the ‘config.php’ configuration file and modify the $config[‘admin_file’] variable:
$config['admin_file'] = 'adm1nqcm5.php'
Also, change the name of ‘database.db’ file:
$config['database'] = $config['dir_database'].'db1quickCMS.db';
Then, run the following commands on your server:
cd /var/www/html/quickcms mv admin.php adm1nqcm5.php mv database/database.db database/db1quickCMS.db
That is it. The Quick.CMS installation is now complete.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.