In this tutorial we will explain how to install Website Baker on a CentOS 7 VPS using Apache web server and MariaDB database.
Website Baker is an open source content management system (CMS) written in PHP and it uses a database to store the data. Website Baker has an easy to use interface, template based front-end, multi-user administration with privilege levels etc. This guide should work on any other RPM based Linux distribution, but it was tested and written for CentOS 7.
At the time of writing this tutorial, WebsiteBaker 2.8.3 is the latest stable version available and it requires:
– Apache Web Server.
– PHP (version 5.3.6 or higher) with the MySQLi extension enabled.
– MySQL or MariaDB installed on your Linux VPS.
Log in to your VPS via SSH:
Make sure that all packages are up-to-date by executing the following command:
yum -y update
Website Baker uses a database to store the information, so run the following command to install the MariaDB server:
yum install mariadb mariadb-server
Start the MariaDB service and enable it to start at boot time:
systemctl start mariadb systemctl enable mariadb
In order to secure the MariaDB server for production, remove the test database and set the MariaDB root password, run the ‘mysql_secure_installation’ script.
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:
mysql -u root -p CREATE DATABASE wbaker; CREATE USER 'wbakeruser'@'localhost' IDENTIFIED BY 'PASSW0RD'; GRANT ALL PRIVILEGES ON 'wbaker'.* TO 'wbakeruser'@'localhost'; FLUSH PRIVILEGES; quit
Do not forget to replace ‘PASSW0RD’ with a strong password.
Install Apache web server:
yum install httpd
Start the Apache web server and configure it to automatically start on boot:
systemctl start httpd systemctl enable httpd
Install PHP and PHP MySQLi extension:
yum -y install php php-mysqli
Download the latest stable version of Website Baker from their official website:
Extract the zip archive to the ‘/var/www/html/’ directory on your server:
unzip Wb2-8-3WithSP4.zip -d /var/www/html/
The archive will be extracted to a new directory named ‘wb’. Change the ownership of that directory so it can be accessed by the web server:
cd /var/www/html/ chown -R apache:apache wb/
Rename the config.php.new file to config.php:
cd /var/www/html/wb mv config.php.new config.php
Create a new Apache virtual host for your domain. Edit the ‘/etc/httpd/conf.d/vhosts.conf’ Apache configuration file:
and insert the following line:
Create a new directory named ‘vhosts.d’:
and create the virtual host:
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot "/var/www/html/wb/" ServerName yourdomain.com ServerAlias www.yourdomain.com ErrorLog "/var/log/httpd/yourdomain.com-error_log" CustomLog "/var/log/httpd/yourdomain.com-access_log" combined <Directory "/var/www/html/wb/"> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>
Restart the Apache web server for the changes to take effect:
systemctl restart httpd
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.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Website Baker for you. They are available 24×7 and will take care of your request immediately.
PS. 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.