How to Install Bolt CMS 3.6v on Ubuntu 18.10

Installation of Bolt CMS 3.6 On Ubuntu 18.10

Features:

It uses Twigs for its templates.

It is completely free to use for both personal and commercial websites.

It is very easy to add a download or to insert images.

Pre-requisites:

Apache 2.4.34

MariaDB 5+

PHP 5.5.9 or higher

PHP Modules:

php php-gd php-pdo php-sqlite3 php-mysql php-mbstring php-intl php-mcrypt php-curl php-zip

Download Link:

https://bolt.cm/distribution/bolt-latest.zip

Default htaceess Link:

https://bolt.cm/distribution/default.htaccess

You can download the installation package of bolt CMS 3.6v using wget command. The link is mentioned in the following command.

root@linuxhelp:/var/www/bolt# wget https://bolt.cm/distribution/bolt-latest.zip
--2019-04-30 00:23:19--  https://bolt.cm/distribution/bolt-latest.zip
Resolving bolt.cm (bolt.cm)... 82.196.12.59, 2a03:b0c0:0:1010::20f:5001
Connecting to bolt.cm (bolt.cm)|82.196.12.59|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23647708 (23M) [application/zip]
Saving to: ‘bolt-latest.zip’

bolt-latest.zip               100%[==============================================>]  22.55M   759KB/s    in 55s     

2019-04-30 00:24:16 (418 KB/s) - ‘bolt-latest.zip’ saved [23647708/23647708]

List the contents to check the downloaded zip file of Bolt CMS.

root@linuxhelp:/var/www/bolt# ll
total 23104
drwxr-xr-x 2 root root     4096 Apr 30 00:23 ./
drwxr-xr-x 4 root root     4096 Apr 30 00:12 ../
-rw-r--r-- 1 root root 23647708 Apr 11 07:01 bolt-latest.zip

Extract the zip file of Bolt CMS.

root@linuxhelp:/var/www/bolt# unzip bolt-latest.zip 
Archive:  bolt-latest.zip
   creating: bolt-v3.6.7/
   creating: bolt-v3.6.7/app/
   creating: bolt-v3.6.7/app/database/
 extracting: bolt-v3.6.7/app/database/bolt.db  
   creating: bolt-v3.6.7/app/cache/
 extracting: bolt-v3.6.7/app/cache/.gitignore  
   creating: bolt-v3.6.7/app/config/
   creating: bolt-v3.6.7/app/config/extensions/
    linking: bolt-v3.6.7/app/nut     -> ../vendor/bin/nut 
  inflating: bolt-v3.6.7/index.php   .
.
.
bolt-v3.6.7/app/nut    -> ../vendor/bin/nut
  bolt-v3.6.7/vendor/bin/uaparser -> ../ua-parser/uap-php/bin/uaparser
  bolt-v3.6.7/vendor/bin/validate-json -> ../justinrainbow/json-schema/bin/validate-json
  bolt-v3.6.7/vendor/bin/composer -> ../composer/composer/bin/composer
  bolt-v3.6.7/vendor/bin/jsonlint -> ../seld/jsonlint/bin/jsonlint
  bolt-v3.6.7/vendor/bin/doctrine-dbal -> ../doctrine/dbal/bin/doctrine-dbal
  bolt-v3.6.7/vendor/bin/bolt-requirements -> ../bolt/requirements/bin/bolt-requirements
  bolt-v3.6.7/vendor/bin/requirements-checker -> ../symfony/requirements-checker/bin/requirements-checker
  bolt-v3.6.7/vendor/bin/nut -> ../bolt/bolt/app/nut

View the extracted folders by listing.

root@linuxhelp:/var/www/bolt# ll
total 23108
drwxr-xr-x 3 root root     4096 Apr 30 00:24 ./
drwxr-xr-x 4 root root     4096 Apr 30 00:12 ../
-rw-r--r-- 1 root root 23647708 Apr 11 07:01 bolt-latest.zip
wxr-xr-x 7 root root     4096 Apr 11 07:01 bolt-v3.6.7/

Rename the directory to final.

root@linuxhelp:/var/www/bolt# mv bolt-v3.6.7/ final

Change the directory to final.

root@linuxhelp:/var/www/bolt# cd final/

List the contents in the final directory.

root@linuxhelp:/var/www/bolt/final# ll
total 248
drwxr-xr-x  7 root root   4096 Apr 11 07:01 ./
drwxr-xr-x  3 root root   4096 Apr 30 00:24 ../
drwxr-xr-x  5 root root   4096 Aug 25  2018 app/
-rw-r--r--  1 root root     53 Apr 11 07:01 .bolt.yml.dist
-rw-r--r--  1 root root    971 Apr 11 07:01 composer.json.dist
-rw-r--r--  1 root root 204220 Apr 11 07:00 composer.lock.dist
drwxr-xr-x  2 root root   4096 Apr 11 07:01 extensions/
-rw-r--r--  1 root root    931 Apr 11 07:01 .gitignore
-rw-r--r--  1 root root   3912 Aug 25  2018 index.php
drwxr-xr-x  7 root root   4096 Aug 25  2018 public/
-rw-r--r--  1 root root    345 Aug 25  2018 README.md
drwxr-xr-x  3 root root   4096 Aug 25  2018 src/
drwxr-xr-x 35 root root   4096 Apr 11 07:01 vendor/

Rename the following files which are essential for the accessing the Bolt CMS.

root@linuxhelp:/var/www/bolt/final# mv .bolt.yml.dist .bolt.yml
root@linuxhelp:/var/www/bolt/final# mv composer.json.dist composer.json
root@linuxhelp:/var/www/bolt/final# mv composer.lock.dist composer.lock
root@linuxhelp:/var/www/bolt/final# mv src/Site/CustomisationExtension.php.dist src/Site/CustomisationExtension.php

Download the default htaccess file

root@linuxhelp:/var/www/bolt/final# wget https://bolt.cm/distribution/default.htaccess
--2019-04-30 00:28:47--  https://bolt.cm/distribution/default.htaccess
Resolving bolt.cm (bolt.cm)... 82.196.12.59, 2a03:b0c0:0:1010::20f:5001
Connecting to bolt.cm (bolt.cm)|82.196.12.59|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1684 (1.6K) [text/plain]
Saving to: ‘default.htaccess’

default.htaccess              100%[==============================================>]   1.64K  --.-KB/s    in 0s      

2019-04-30 00:28:48 (95.4 MB/s) - ‘default.htaccess’ saved [1684/1684]

List the contents to check the downloaded htaccess file.

root@linuxhelp:/var/www/bolt/final# ll
total 252
drwxr-xr-x  7 root root   4096 Apr 30 00:28 ./
drwxr-xr-x  3 root root   4096 Apr 30 00:24 ../
drwxr-xr-x  5 root root   4096 Aug 25  2018 app/
-rw-r--r--  1 root root     53 Apr 11 07:01 .bolt.yml
-rw-r--r--  1 root root    971 Apr 11 07:01 composer.json
-rw-r--r--  1 root root 204220 Apr 11 07:00 composer.lock
-rw-r--r--  1 root root   1684 Apr 25  2016 default.htaccess
drwxr-xr-x  2 root root   4096 Apr 11 07:01 extensions/
-rw-r--r--  1 root root    931 Apr 11 07:01 .gitignore
-rw-r--r--  1 root root   3912 Aug 25  2018 index.php
drwxr-xr-x  7 root root   4096 Aug 25  2018 public/
-rw-r--r--  1 root root    345 Aug 25  2018 README.md
drwxr-xr-x  3 root root   4096 Aug 25  2018 src/
drwxr-xr-x 35 root root   4096 Apr 11 07:01 vendor/

Rename the htaccess file

root@linuxhelp:/var/www/bolt/final# mv default.htaccess .htaccess

Assign ownership permissions to the final directory.

root@linuxhelp:/var/www/bolt/final# chown -R www-data. ./

Assign writable permissions to the final directory.

root@linuxhelp:/var/www/bolt/final# chmod -R 775 ./

Create a customised configuration file for bolt cms as follows.

root@linuxhelp:/var/www/bolt/final# vim /etc/apache2/sites-available/bolt.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/bolt/final/public/

<directory /var/www/bolt/final/>
allowoverride all
allow from all
</directory>
</virtualhost>

Disable the default access sitesr

root@linuxhelp:/var/www/bolt/final# a2dissite 000-default.conf 
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable the bolt access site.

root@linuxhelp:/var/www/bolt/final# a2ensite bolt.conf 
Enabling site bolt.
To activate the new configuration, you need to run:
  systemctl reload apache2

And then, enable the rewrite module as follows.

root@linuxhelp:/var/www/bolt/final# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

After that, restart the service of Apache.

root@linuxhelp:/var/www/bolt/final# systemctl restart apache2

After all the above process, open the browser and enter the servername and hit enter. Enroll the Admin credentials And click Create First User The Admins Account Dashboard has opened Therefore, installation Of Bolt CMS 3.6v On Ubuntu 18.10 comes to end here

Comment
oliverusselldev
Nov 27 2019
I have been trying to install Bolt on my PHP web hosting platform, Cloudways, but I am keep getting 503 error when accessing the site. I installed it through ssh and i think it was installed successfully. I don't understand why I am still getting this error.
Add a comment
FAQ
Q
Do we have to rename the htaccess file after downloading default htaccess in bolt cms?
A
Rename the default htaccess file to .htaccess as it is a requirement Of bolt CMS.
Q
What is the document root folder of Bolt CMS?
A
the document root folder of bolt cms is /var/www/bolt/final/public/ in Apache's Customised COnfiguration File
Q
Do we have to configure anything inside app/config/config.yml in Bolt CMS?
A
Inside the config.yml configuration file,you need to set debug=true and log as true In bolt CMS
Q
What is the link to download the default htaccess file in Bolt CMS?
A
https://bolt.cm/distribution/default.htaccess is the link to download the default htaccess file in Bolt CMS
Q
What are the files to be renamed in the Bolt CMS?
A
In Bolt CMS, .bolt.yml , composer.json composer.lock and src/Site/CustomisationExtension.php are the files to be renamed where you need to remove .dist in the original files.