Install Bludit CMS on Ubuntu 20.04 with Apache
Tags: bludit, cms, ubuntu, apache
Published: 2021-05-14 01:46:52

In this article, we'll explain how to install Bludit CMS on Ubuntu 20.04 with Apache.

Bludit is a web application to build your own website or blog in seconds; it's completely free and open source. Bludit is a Flat-File CMS, which (in this case) means that Bludit uses files in the JSON format to store the content. You don't need to install or configure a database; you only need a web server with PHP support.
<h4>Prerequisites</h4>
<ul>
 	<li>An Ubuntu 20.04 installed <a href="https://www.hostnextra.com/dedicated-server.html">dedicated server</a> or <a href="https://www.hostnextra.com/vps-hosting.html">KVM VPS</a>.</li>
 	<li>A root user access or normal user with administrative privileges.</li>
</ul>
<p><a href="https://www.hostnextra.com/kb/install-bludit-cms-on-ubuntu-with-apache/">Install Bludit CMS on Ubuntu 20.04 with Apache</a></p>
<h4>1. Keep the server updated</h4>
Update the package repository index, and upgrade the installed packages.
<blockquote># apt update &amp;&amp; sudo apt -y upgrade</blockquote>
<h4>2. Install Apache webserver</h4>
<blockquote># apt install apache2 -y</blockquote>
In case, you enabled firewall and firewall block requests of the apache web server, open a port in the firewall.
<blockquote># ufw allow 80/tcp

# ufw allow 443/tcp

# ufw reload</blockquote>
Start and enable apache2 service.
<blockquote># systemctl start apache2 &amp;&amp; systemctl enable apache2</blockquote>
<h4>3. Install PHP and dependency</h4>
Here we are installing the default PHP version 7.4 and other modules for web deployments using the following command:
<blockquote># apt install php php-common php-mysql php-gd php-cli php-fpm php-mbstring php-xml php-json -y</blockquote>
Install unzip tool.
<blockquote># apt install -y unzip</blockquote>
<h4>4. Enable Apache <em>mod_rewrite</em> feature.</h4>
The Bludit application requires this module to craft user-friendly URLs.
<blockquote># a2enmod rewrite</blockquote>
Restart the Apache web server to load the new modules and extensions.
<blockquote># systemctl restart apache2</blockquote>
With the PHP extensions and <em>mod_rewrite</em> enabled, we can now download the Bludit CMS from the official repository.
<h4>5. Download Bludit CMS</h4>
Create a bludit directory in the root of your web server.
<blockquote># mkdir -p /var/www/bludit</blockquote>
Next, navigate to the tmp directory and download current Bludit version from the <a href="https://www.bludit.com/">Official Bludit Repository</a> using the <strong><em>wget</em></strong> command.
<blockquote># cd /tmp &amp;&amp; wget https://www.bludit.com/releases/bludit-3-13-1.zip</blockquote>
Use the unzip command to unpack the bludit-3-13-1.zip archive file.
<blockquote># unzip bludit-*.zip</blockquote>
Then, move the content of the unzipped bludit-3-13-1 directory to the /var/www/bludit/ directory that you've created earlier.
<blockquote># rsync -rtv bludit-3-13-1/ /var/www/bludit/</blockquote>
Ensure Bludit has the right ownership to the /var/www/bludit directory.
<blockquote># chown -R www-data:www-data /var/www/bludit</blockquote>
You've now set the correct server environment for Bludit to work. Next, you'll create a virtual host file for your Bludit site.
<h4>6. Create a Virtual Host File</h4>
Create a virtual host <em>bludit.conf</em>.
<blockquote># nano /etc/apache2/sites-available/bludit.conf</blockquote>
Then, enter the information below into the file. Replace 192.168.0.1 with your domain name or public IP address of your server.
<blockquote>&lt;VirtualHost *:80&gt;
ServerName 192.168.0.1
DocumentRoot /var/www/bludit
&lt;Directory /var/www/bludit&gt;
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
&lt;/Directory&gt;
&lt;/VirtualHost&gt;</blockquote>
Save and close

Then, enable your new <em>/etc/apache2/sites-available/bludit.conf</em> configuration file.
<blockquote># a2ensite bludit.conf</blockquote>
Restart the Apache web server to load the new virtual host file.
<blockquote># systemctl restart apache2</blockquote>
The installation has been completed successfully at this stage. Lets navigate to browser and open <em>http:192.168.0.1/install.php</em>.

Follow the setup wizard.

<img class="alignnone size-large wp-image-2228" src="https://www.hostnextra.com/kb/wp-content/uploads/2021/05/install-bludit-cms-on-ubuntu-with-apache-1024x808.png" alt="Install Bludit CMS on Ubuntu 20.04 with Apache" width="700" height="552" />

From this point forward, your Bludit site is ready, and you can log in using the <em>admin</em> account and start creating new content for your audience.

In this article, we have explain how to install Bludit CMS on Ubuntu 20.04 with Apache.