How to Install WebsiteBaker on Ubuntu 18.04

Install WebsiteBaker on Ubuntu 18.04

In this tutorial we are going to learn how to install WebsiteBaker on Ubuntu 18.04. We will also install and configure its prerequisites. Website Baker is a open source content management system (CMS) written in PHP and it uses a database to store the information. Website Baker comes with an easy to use interface, template based front-end, multi-user management with privilege levels etc.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 Bionic Beaver minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install WebsiteBaker on Ubuntu 18.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing LAMP on Ubuntu 18.04.

You should check out this LAMP stack install tutorial for Ubuntu 18.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that WebsiteBaker relies on:

apt-get install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip

Step 3. Installing WebsiteBaker on Ubuntu 18.04.

First, download the latest stable version of Website Baker from their official website:

wget https://addon.websitebaker.org/pages/en/browse-add-ons.php?download=04A499A4
unzip 'browse-add-ons.php?download=04A499A4' -d website

Next, move the file to HMTL directory:

mv website/ /var/www/html/

Give proper permission to WebsiteBaker directory:

chown -R www-data.www-data website/
chmod -R 775 website/

Then, rename the config.php.new file:

mv config.php.new config.php

Step 4. Configure Apache for WebsiteBaker.

Next, you will need to create a virtual host file for WebsiteBaker:

nano /etc/apache2/sites-available/website.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot "/var/www/website/ "
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory "/var/www/website/ ">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Once done it’s time to enable the new site and enable Apache mods that are needed by WebsiteBaker:

a2ensite website
a2enmod rewrite headers env dir mime
systemctl restart apache2

Step 5. Accessing WebsiteBaker Web Installation.

Now you can access the WebsiteBaker web install wizard in your browser by entering the domain name or http://your-ip-address 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.

Congratulation’s! You have successfully install and configured WebsiteBaker on your Ubuntu 18.04 server. Thanks for using this tutorial installing WebsiteBaker open source content management system (CMS) on Ubuntu 18.04 LTS (Bionic Beaver) system.