How to Install Sitemagic CMS on CentOS 7
Sitemagic is an amazing free open source CMS that helps you to build and maintain professional websites. Sitemagic CMS is a simple, lightweight, user-friendly Content Management System and it is written in PHP. It is a very capable framework that enables any users to extend and customize everything. It uses XML to store its file and it also supports multiple languages. It is very easy to translate Sitemagic CMS into your own language.
Components of Sitemagic
Here, we need a server running CentOS 7.
PHP: – Sitemagic runs on PHP 5.2 or higher versions with the following PHP extensions enabled: GD, mbstring and SimpleXML.
MySQL: – Every web application, simple or complicated, requires a database for storing collected data. We can either use MySQL or MariaDB for Sitemagic. Here, we are using MySQL.
Web Server: – Sitemagic can run on either the Apache or Nginx web server installed on your virtual server. Here, we are using http server.
1) Login to your server as root user via SSH.
2) Then go to the location where the Sitemagic needs to be installed. Here, we are installing Sitemagic in the home directory of the user “test”. Also, it is the document root of my domain “mydomain.com”.
# su – test
3) We need to ensure that the all the OS packages are up to date by running the following commands:
# yum clean all
# yum update
4) Now, we can install Sitemagic CMS by downloading the latest stable version of Sitemagic CMS using the following link. We can use “wget” command to download.
# wget http://sitemagic.org/index.phpSMExt=SMDownloads HYPERLINK “http://sitemagic.org/index.phpSMExt=SMDownloads%26SMDownloadsFile=SitemagicCMS412.zip”& HYPERLINK “http://sitemagic.org/index.phpSMExt=SMDownloads%26SMDownloadsFile=SitemagicCMS412.zip”SMDownloadsFile=SitemagicCMS412.zip
5) Once the download is complete, unpack the package.
# unzip SitemagicCMS412.zip
6) Now the Sitemagic installation package has been unpacked. You can rename the extracted directory for your convenience. After that, we need to change the ownership of the file using chown command.
7) Now we need to create database and database user for Sitemagic. For this, we need to log into the MySQL shell as the root user by running the following command.
# mysql -u root -p
You should provide the correct password for the Mysql root user to log in.
8) Use the following command to create the Database for Sitemagic.
# create database db_sitemagic;
9) Use the following command to create the Database User for Sitemagic.
# create user ‘user_sitemagic’@’localhost’ identified by ‘sitemagicpassword’;
Here “user_sitemagic” is the MySQL user name and “sitemagicpassword” is the password for the database “db_sitemagic”.
10) Now we have to grant privileges for the user to access the database. You can use the following command for this.
# grant all privileges on db_sitemagic.* to user_sitemagic@localhost identified by ‘sitemagicpassword’;
11) Use the following command to flush all privileges.
# FLUSH PRIVILEGES;
12) Use the following command to exit from the Mysql server.
13) Sitemagic CMS will be available on HTTP port 80 by default. Open your browser and navigate to http://mydomain.com/ to complete the required steps to finish the installation.
Now, you have successfully installed Sitemagic CMS on centos 7.
If you need any further help please do reach our support department.