{"id":17745,"date":"2015-12-28T12:26:43","date_gmt":"2015-12-28T18:26:43","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17745"},"modified":"2022-12-16T06:12:07","modified_gmt":"2022-12-16T12:12:07","slug":"install-zenario-with-apache-php-and-mariadb-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-zenario-with-apache-php-and-mariadb-on-centos-7\/","title":{"rendered":"Install Zenario with Apache, PHP and MariaDB on CentOS 7"},"content":{"rendered":"
Zenario is free and open source, multi-lingual content management system (CMS) designed for creating simple or complex blogs, news items, events and other content types.<\/p>\n
In this article we will install Zenario on a CentOS 7 VPS<\/a> with Apache, PHP and MariaDB.<\/p>\n To run Zenario on your server you have to install the following requirements<\/p>\n Log in to your server via SSH as user root<\/p>\n and run the following command to update all packages on your server<\/p>\n Zenario needs an SQL database to store the information. Run the following command to install MariaDB database server<\/p>\n Start the MariaDB database server and enable it to start at the boot time<\/p>\n In order to secure MariaDB and set the MariaDB root password we will run the ‘mysql_secure_installation’ script.<\/p>\n Now, log in to the MariaDB server using the ‘root’ user and create new database end user.<\/p>\n Do not forget to replace ‘PASSWORD’ with an actual strong password.<\/p>\n Next, we will install Apache web server<\/p>\n Same as we did with MariaDB, start the Apache web server and add it to automatically start on the system start-up<\/p>\n Execute the following command to install PHP among with few PHP modules<\/p>\n Go to Zenario’s official website and download the latest stable release of the software. At the moment of writing this article it is version 7.0.6.<\/p>\n Unpack the zip archive in the document root directory of your server<\/p>\n Rename the directory<\/p>\n All files have to be readable by the web server, so we need to set the proper ownership<\/p>\n We need to create two directories, ‘backup’ and ‘docstore’ outside of the document root directory.<\/p>\n and change the ownership of the directories<\/p>\n Next, create Apache virtual host for your domain. Create ‘\/etc\/httpd\/conf.d\/vhosts.conf’ directory with the following content<\/p>\n and create the virtual host<\/p>\n Restart the web server for the changes to take effect.<\/p>\n Finally, open a web browser and access http:\/\/yourdomain.com to run the Zenario installer and finish the installation. More information about Zenario you can find at their official documentation<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Zenario 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":" Zenario is free and open source, multi-lingual content management system (CMS) designed for creating simple or complex blogs, news items, … <\/p>\n\n
ssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql -u root -p\r\n\r\nCREATE DATABASE zenario;\r\nCREATE USER 'zenariouser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `zenario`.* TO 'zenariouser'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-gd php-common<\/pre>\n
wget http:\/\/zenar.io\/public\/downloads\/XBE3u\/zenario-probusiness-7.0.6b.zip<\/pre>\n
unzip zenario-probusiness-7.0.6b.zip -d \/var\/www\/html\/<\/pre>\n
mv zenario-probusiness-7.0.6b\/ zenario<\/pre>\n
chown -R apache:apache \/var\/www\/html\/zenario<\/pre>\n
mkdir \/var\/www\/backup\r\nmkdir \/var\/www\/docstore<\/pre>\n
chown apache:apache \/var\/www\/backup\r\nchown apache:apache \/var\/www\/docstore<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d\/\r\nvim \/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\/zenario\/\"\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\/zenario\/\">\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