{"id":17331,"date":"2015-07-21T01:03:38","date_gmt":"2015-07-21T06:03:38","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17331"},"modified":"2022-12-13T14:05:16","modified_gmt":"2022-12-13T20:05:16","slug":"how-to-install-wolf-cms-on-a-centos-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wolf-cms-on-a-centos-vps\/","title":{"rendered":"How to install Wolf CMS on a CentOS VPS"},"content":{"rendered":"
Wolf CMS is free and open-source, PHP based content management system that offers simple and elegant user interface. Wolf CMS is a fork of Frog CMS. In order to run Wolf CMS on your server you need to have a web server, PHP5 and MySQL or SQLite 3 database server installed. In this tutorial we will install Wolf CMS on a CentOS 7 VPS<\/a> with Apache, PHP and MariaDB.<\/p>\n <\/p>\n Af the very beginning we need to make sure that all packages installed on the server are up to date<\/p>\n Wolf CMS depends on a database, so we will install MariaDB server<\/p>\n Start the MariaDB database server and enable the service at boot time<\/p>\n Run the \u2018mysql_secure_installation\u2019 post installation script which removes the test database and secures MariaDB. It will also prompt you to set your MariaDB root password.<\/p>\n Log in to the MariaDB server using the \u2018root\u2019 user and create new user and database with Unicode collation type<\/p>\n Next, we will install Apache web server, start it and add it to automatically start on the system start-up<\/p>\n Install PHP and with PHP modules<\/p>\n Download the latest stable version of Wolf CMS from their official website.<\/p>\n Unpack the zip archive to the document root directory on your server<\/p>\n The archive will be unpacked in a new ‘wolfcms’ directory. Change your current working directory and change the owner of the directory<\/p>\n In order to use clean URLs we will rename activate the .htaccess file by renaming it<\/p>\n If it is not already turned off, it is recommended to turn off magic_quotes_gpc because this feature is deprecated. To do this we need to edit PHP’s configuation file and make sure that the following line is set to off<\/p>\n We can find the loaded PHP configating file by executing<\/p>\n In order to access Wolf CMS using your domain name, you need to create Apache virtual host. Create \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 directory with the following content<\/p>\n and restart Apache for the changes to take effect.<\/p>\n Finally, open you favorite web browser, navigate to http:\/\/yourdomain.tld\/\u00a0 and follow the steps of the setup wizard to complete the installation.<\/p>\n After the setup is completed, delete the \/install<\/em> and \/docs<\/em> directories and remove the write permissions for the config.php file.<\/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 Wolf CMS 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":" Wolf CMS is free and open-source, PHP based content management system that offers simple and elegant user interface. Wolf CMS … <\/p>\nyum -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\nCREATE DATABASE wolfcms CHARACTER SET utf8 COLLATE utf8_unicode_ci;\r\nCREATE USER 'wolfcmsuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `wolfcms`.* TO 'wolfcmsuser'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n
yum install httpd\r\nsystemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-mysql php-common<\/pre>\n
wget https:\/\/bitbucket.org\/wolfcms\/wolf-cms-downloads\/downloads\/wolfcms-0.8.2.zip<\/pre>\n
unzip wolfcms-0.8.2.zip -d \/var\/www\/html\/<\/pre>\n
cd \/var\/www\/html\/wolfcms\r\nchown -R apache:apache wolfcms<\/pre>\n
mv _.htaccess .htaccess<\/pre>\n
magic_quotes_gpc = Off<\/pre>\n
php --ini\r\nConfiguration File (php.ini) Path: \/etc\r\nLoaded Configuration File:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/etc\/php.ini<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf\r\n\r\nCreate the virtual host\r\n\r\nvim \/etc\/httpd\/vhosts.d\/yourdomain.tld.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.tld\r\nDocumentRoot \"\/var\/www\/html\/wolfcms\"\r\nServerName yourdomain.tld\r\nServerAlias www.yourdomain.tld\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.tld-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.tld-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/wolfcms\/\">\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