How to install Website Baker on a CentOS 7 VPS


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.

Installation instructions:

Log in to your VPS via SSH:

ssh user@IP

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 USER 'wbakeruser'@'localhost' IDENTIFIED BY 'PASSW0RD';
GRANT ALL PRIVILEGES ON 'wbaker'.* TO 'wbakeruser'@'localhost';

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 -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 file to config.php:

cd /var/www/html/wb
mv config.php

Create a new Apache virtual host for your domain. Edit the ‘/etc/httpd/conf.d/vhosts.conf’ Apache configuration file:

Need a fast and easy fix?
✔ Unlimited Managed Support
✔ Supports Your Software
✔ 2 CPU Cores
✔ 2 GB RAM
✔ 50 GB PCIe4 NVMe Disk
✔ 1854 GeekBench Score
✔ Unmetered Data Transfer

Now just $43 .99

vim /etc/httpd/conf.d/vhosts.conf

and insert the following line:

IncludeOptional vhosts.d/*.conf

Create a new directory named ‘vhosts.d’:

mkdir /etc/httpd/conf.d/vhosts.d/

and create the virtual host:

vim /etc/httpd/vhosts.d/
<VirtualHost *:80>
DocumentRoot "/var/www/html/wb/"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/wb/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Restart the Apache web server for the changes to take effect:

systemctl restart httpd

Navigate your favorite web browser to 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.

Leave a Comment