{"id":18736,"date":"2016-03-30T13:38:46","date_gmt":"2016-03-30T18:38:46","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18736"},"modified":"2022-06-03T03:43:41","modified_gmt":"2022-06-03T08:43:41","slug":"how-to-install-elxis-cms-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elxis-cms-on-centos-7\/","title":{"rendered":"How to install Elxis CMS on CentOS 7"},"content":{"rendered":"
Elxis is powerful open source content management system (CMS ) it is free for use under the GNU\/GPL license. This CMS is modern, flexible, easy to use and it comes with many useful multi-lingual features, such as:<\/p>\n
<\/p>\n
<\/p>\n
Elxis can be installed and run on a wide range of platforms and operating systems with a web server (Apache, Nginx, Lighttpd), PHP version 5.2 or newer and an SQL server like MySQL, MariaDB and PostgreSQL. In today’s article we will guide you through the installation of Elxis CMS on a CentOS 7 VPS<\/a> with Apache, PHP and MariaDB.<\/p>\n The installation is pretty easy and fast. Log in to your CentOS 7 server as user root<\/p>\n and update all installed packages by executing the following command<\/p>\n Next, install Apache web server<\/p>\n Once the installation is completed, start the web server and set it to start automatically on system start up<\/p>\n Elxis is a PHP based application, so we need to install PHP with the PDO and GD modules<\/p>\n Install MariaDB server on your VPS using the following command<\/p>\n Once the installation is completed start the database server and set it to start on start up<\/p>\n Then, run the Login to the MariaDB server with the root user and create a blank database which will be used by Elxis to store the data.<\/p>\n Don\u2019t forget to replace \u2018PASSWORD\u2019 with an actual strong password.<\/p>\n Download the latest version of Elxis CMS from their official website and upload it to your server via FTP or sFTP. Once it is uploaded, unpack the Elxis ZIP archive to the document root directory of your server<\/p>\n Elxis uses a directory named ‘repository’ to store cached pages, log files, sessions, backups and more. It is recommended to rename this directory and move it in a place not reachable from the web.<\/p>\n Set the Apache user to be owner of the Elxis files and directories<\/p>\n Now, create Apache virtual host for your Elxis based website. Create \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content:<\/p>\n Create a ‘vhosts.d\/’ directory<\/p>\n and create the virtual host with the following content<\/p>\n Save the file and restart the Apache web server for the changes to take effect.<\/p>\n With this step the installation from the command line is completed. Now, open a web browser and navigate it to http:\/\/yourdomain.com and follow the on-screen installation process to complete the Elxis CMS installation.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our CMS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Elxis CMS<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Elxis is powerful open source content management system (CMS ) it is free for use under the GNU\/GPL license. This … <\/p>\nssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum -y install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum -y install php php-pdo php-gd<\/pre>\n
yum -y install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql_secure_installation<\/code> script to secure the database server and set your MariaDB root password.<\/p>\n
mysql -u root -p\r\n\r\nCREATE DATABASE elxis;\r\nCREATE USER 'elxisuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `elxis`.* TO 'elxisuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nexit<\/pre>\n
mkdir \/var\/www\/html\/elxis\r\nunzip elxis_4.3_proteas_rev1716.zip -d \/var\/www\/html\/elxis<\/pre>\n
mv \/var\/www\/html\/elxis\/repository \/var\/www\/data<\/pre>\n
chown -R apache: \/var\/www\/html\/elxis\/\r\nchown -R apache: \/var\/www\/repository<\/pre>\n
IncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d\/<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/elxis\/\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/elxis\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n