{"id":18027,"date":"2015-11-09T15:30:07","date_gmt":"2015-11-09T21:30:07","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18027"},"modified":"2022-06-03T03:44:05","modified_gmt":"2022-06-03T08:44:05","slug":"how-to-install-website-baker-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-website-baker-on-a-centos-7-vps\/","title":{"rendered":"How to install Website Baker on a CentOS 7 VPS"},"content":{"rendered":"
<\/p>\n
In this tutorial we will explain how to install Website Baker on a CentOS 7 VPS<\/a> using Apache web server and MariaDB database.<\/p>\n Website Baker is an open source content management system (CMS)\u00a0written\u00a0in PHP and it uses a database to store the data. Website Baker\u00a0has an easy to use interface,\u00a0template based front-end, multi-user administration with privilege levels etc. This guide should work on any other RPM\u00a0based Linux distribution,\u00a0but it was tested and written for CentOS 7.<\/p>\n At the time of writing this tutorial, WebsiteBaker 2.8.3 is the latest stable version available and it requires:<\/p>\n – Apache Web Server. Log in to your VPS via SSH:<\/p>\n Make sure that all packages are up-to-date by executing the following command:<\/p>\n Website Baker uses a database to store the information, so run the following command to install the MariaDB server:<\/p>\n Start the MariaDB service and enable it to start at boot time:<\/p>\n In order to secure the MariaDB server for production, remove the test database\u00a0and set the MariaDB root password, run the \u2018mysql_secure_installation\u2019 script.<\/p>\n Then, use the following command to connect to the MariaDB server as the MariaDB root user and create a new MariaDB database and user account:<\/p>\n Do not forget to replace ‘PASSW0RD’ with a strong password. Start the Apache web server and configure it to automatically start on boot:<\/p>\n Install PHP and PHP MySQLi extension:<\/p>\n Download the latest stable version of Website Baker from their official website:<\/p>\n Extract\u00a0the zip archive to the ‘\/var\/www\/html\/’\u00a0directory on your server:<\/p>\n The archive will be extracted\u00a0to a new directory named ‘wb’. Change\u00a0the ownership of that directory so it can be accessed by the web server:<\/p>\n Rename the config.php.new file to config.php:<\/p>\n Create a new Apache virtual host for your domain. Edit the ‘\/etc\/httpd\/conf.d\/vhosts.conf’ Apache configuration file:<\/p>\n and insert the following line:<\/p>\n Create a new directory named ‘vhosts.d’:<\/p>\n and create the virtual host:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Navigate your favorite web browser to http:\/\/yourdomain.com and follow the on-screen instructions to finish the installation, then log in to Website Baker administration back-end and configure it according to your needs.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS <\/a> Hosting services, in which case you can simply ask our expert Linux admins to install Website Baker<\/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":" In this tutorial we will explain how to install Website Baker on a CentOS 7 VPS using Apache web server … <\/p>\n
\n– PHP (version 5.3.6 or higher) with the MySQLi extension enabled.
\n– MySQL or MariaDB\u00a0installed on your Linux VPS<\/a>.<\/p>\nInstallation instructions:<\/h4>\n
ssh user@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\nCREATE DATABASE wbaker;\r\nCREATE USER 'wbakeruser'@'localhost' IDENTIFIED BY 'PASSW0RD';\r\nGRANT ALL PRIVILEGES ON 'wbaker'.* TO 'wbakeruser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nquit<\/pre>\n
\nInstall Apache web server:<\/p>\nyum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum -y install php php-mysqli<\/pre>\n
wget http:\/\/wiki.websitebaker.org\/wbdownload\/Wb2-8-3WithSP4.zip<\/pre>\n
unzip Wb2-8-3WithSP4.zip -d \/var\/www\/html\/<\/pre>\n
cd \/var\/www\/html\/\r\nchown -R apache:apache wb\/<\/pre>\n
cd \/var\/www\/html\/wb\r\nmv config.php.new config.php<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf<\/pre>\n
IncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/conf.d\/vhosts.d\/<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/wb\/\"\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\/wb\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost>\r\n<\/pre>\n
systemctl restart httpd<\/pre>\n