<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bolt cms ubuntu 20.04 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/bolt-cms-ubuntu-20-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 19 Jan 2021 10:01:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Bolt CMS On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-bolt-cms-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-bolt-cms-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 19 Jan 2021 10:01:06 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bolt cms]]></category>
		<category><![CDATA[bolt cms ubuntu 20.04]]></category>
		<category><![CDATA[how to install bolt cms]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26464</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install bolt CMS with Nginx on Ubuntu 20.04. Bolt CMS(Content Management System) is an open source used to design &#38; develop powerful &#38; dynamic websites. Bolt is based on PHP &#38; it is built on Silex microframework. It is great alternative for those developeres who are [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-bolt-cms-on-ubuntu-20-04/">How To Install Bolt CMS On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how to install bolt CMS with Nginx on Ubuntu 20.04. Bolt CMS(Content Management System) is an open source used to design &amp; develop powerful &amp; dynamic websites. Bolt is based on PHP &amp; it is built on Silex microframework. It is great alternative for those developeres who are looking for a modern PHP system. So, here we&#8217;ll go through with the steps that can be taken to install bolt CMS on Ubuntu 20.04.</p>



<h2>Step 1: Update Your System</h2>



<p>As usual we do, first of all update your system to have the latest packages installed.</p>



<pre class="wp-block-verse">sudo apt update -y<br>sudo apt upgrade -y</pre>



<p>Once, updated, reboot your system by typing</p>



<pre class="wp-block-verse">sudo reboot</pre>



<h3>Step 2: Install LEMP Server On Ubuntu 20.04</h3>



<p>First of all, hit the below commands to install Nginx &amp; MariaDB Server on Ubuntu 20.04.</p>



<pre class="wp-block-verse">sudo apt install nginx mariadb-server -y</pre>



<p>After installing the above packages, you&#8217;ve to install PHP 7.2 to suit the requirements of Bolt CMS. Ubuntu repositories provides the latest PHP version but you&#8217;v to download the PHP 7.2 manually. For this add the below reposiotry.</p>



<pre class="wp-block-verse">sudo add-apt-repository ppa:ondrej/php</pre>



<p>Once added, hit the below commands to install the PHP 7.2 on your system.</p>



<pre class="wp-block-verse">sudo apt update -y<br>sudo apt install php7.2 php7.2-cli php7.2-fpm php7.2-common php7.2-mbstring php7.2-zip php7.2-pgsql php7.2-sqlite3 php7.2-curl php7.2-gd php7.2-mysql php7.2-intl php7.2-json php7.2-opcache php7.2-xml -y</pre>



<p>Make sure to verify that all packages are installed successfully. Then move towards the next step.</p>



<h3>Step 3: Create A Database For Bolt CMS</h3>



<p>Now, it&#8217;s time to create a database for bolt CMS. Hit the below commands to login to the MariaDB by typing</p>



<pre class="wp-block-verse">sudo mysql</pre>



<p>After the login, hit the below commands to create a new database.</p>



<pre class="wp-block-verse">CREATE DATABASE boltdb;
CREATE USER 'bolt'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON boltdb.* TO 'bolt'@'localhost';
FLUSH PRIVILEGES;
EXIT;</pre>



<h3>Step 4: Downloading Bolt CMS on Ubuntu 20.04</h3>



<p>Switch to the <strong>/var/www/html/</strong> directory &amp; clone the latest version of bolt CMS using git.</p>



<pre class="wp-block-verse">cd /var/www/html<br>sudo git clone https://github.com/bolt/bolt.git</pre>



<p>When the download finished, switch to the bolt directory.</p>



<pre class="wp-block-verse">cd bolt</pre>



<p>And then hit the below command to copy the sample configuration file.</p>



<pre class="wp-block-verse">sudo cp app/config/config.yml.dist app/config/config.yml</pre>



<p>After copying the file, edit it with the help of your favourite editor.</p>



<pre class="wp-block-verse">sudo nano app/config/config.yml</pre>



<p>Then delete the default sqlite DB line &amp; add the below lines.</p>



<pre class="wp-block-verse">database:
driver: mysql
username: osradaruser
password: password
databasename: osradardb
host: localhost
prefix: prefix_</pre>



<p>Once done, save the file &amp; exit.</p>



<p>Then, hit the below commands to install the composer on your system as it is a dependency manager for PHP.</p>



<pre class="wp-block-verse">sudo wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer</pre>



<p>You&#8217;ll see the similar output when composer is installed.</p>



<pre class="wp-block-verse">sabi@Ubuntu20:/var/www/html/bolt$ sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
 All settings correct for using Composer
 Downloading…
 Composer (version 2.0.8) successfully installed to: /usr/local/bin/composer
 Use it: php /usr/local/bin/composer</pre>



<p>Then hit the following command to install the required dependencies.</p>



<pre class="wp-block-verse">sudo composer install</pre>



<p>Now, give proper permissions to the bolt directory.</p>



<pre class="wp-block-verse">sudo chown -R www-data:www-data /var/www/html/bolt<br>sudo chmod -R 755 /var/www/html/bolt</pre>



<h3>Step 5: Configuring Nginx For Bolt On Ubuntu 20.04</h3>



<p>Now, it&#8217;s time to configure the Nginx for bolt CMS on Ubuntu 20.04. Edit the bolt.conf file by typing.</p>



<pre class="wp-block-verse">sudo nano /etc/nginx/sites-available/bolt.conf</pre>



<p>And then add the below content into the file.</p>



<pre class="wp-block-verse">server {
listen 80;
root /var/www/html/bolt;
index index.php index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ [^/].php(/|$) {
try_files /index.php =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location = /bolt {
try_files $uri /index.php?$query_string;
}
location ^~ /bolt/ {
try_files $uri /index.php?$query_string;
}
}</pre>



<p>Next, save &amp; close the file &amp; link the file with nginx.</p>



<pre class="wp-block-verse">sudo ln -s /etc/nginx/sites-available/bolt.conf /etc/nginx/sites-enabled/bolt.conf</pre>



<p>Check the nginx syntax.</p>



<pre class="wp-block-verse">nginx -t</pre>



<p>If everything ok, you&#8217;ll see the success message.</p>



<p>And finally, restart the nginx.</p>



<pre class="wp-block-verse">sudo systemctl restart nginx</pre>



<h3>Step 6: Accessing Bolt CMS on Ubuntu 20.04</h3>



<p>After updating all the configuration, it&#8217;s time to access the bolt CMS. Type <strong>bolt.example.com</strong> or <strong>http://localhost:80</strong> in your favourite browser to access bolt CMS. You&#8217;ll see the similar page as seen below:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="500" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-33-1024x500.png" alt="" class="wp-image-27582" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-33-1024x500.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-33-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-33-768x375.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-33-1536x749.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/image-33-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-33-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-33.png 1810w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Note: Replace the <strong>bolt.example.com</strong> with your domain name.</p>



<p>Fill the required details &amp; press on <strong>&#8220;Create the first user&#8221;</strong> button. You&#8217;ll see the Bolt CMS dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-34-1024x455.png" alt="" class="wp-image-27583" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-34-1024x455.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-34-300x133.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-34-768x341.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-34-1536x683.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/image-34-696x309.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-34-1068x475.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-34.png 1822w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3>Step 7: Secure Bolt CMS with Let&#8217;s Encrypt SSL on Ubuntu 20.04</h3>



<p>For security reasons, it is recommended to use the SSL certificates. For this purposes, we&#8217;ll use Let&#8217;s Encrypt to install the SSL over bolt CMS. To install the certs, hit the below commands.</p>



<pre class="wp-block-verse">sudo apt install python3-certbot-nginx -y</pre>



<p>And then hit the given command to install SSL for your site.</p>



<pre class="wp-block-verse">certbot --nginx -d bolt.example.com</pre>



<p>Fill the required fields to finish installing SSL.</p>



<p>So, this is how you can install bolt CMS on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-bolt-cms-on-ubuntu-20-04/">How To Install Bolt CMS On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-bolt-cms-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
