top of page
Search
shendin1996

Bludit CMS with NGINX on Debian 9: A Step-by-Step Guide



PS. If you liked this post on how to install Bludit on Debian 9, please share it with your friends on the social networks using the buttons below or simply leave a reply in the comments sections. Thanks.




How To Install Bludit CMS With NGINX On Debian 9



Bludit is a simple, fast, secure, flat-file CMS that allows you to create your own website or blog in seconds. It's completely free and open source. You can browse its source code on Github. Bludit uses files in 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. Bludit incorporates all the SEO tools to improve your ranking in all the search engines and social networks. It has a rich themes and plugins system that you can use to change the look and feel of your site. In this tutorial, we will go through the Bludit CMS installation and setup on Ubuntu 18.04 LTS system by using NGINX as a web server.if(typeof ez_ad_units!='undefined')ez_ad_units.push([[728,90],'howtoforge_com-box-3','ezslot_3',106,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-box-3-0');RequirementsMake sure your system meets the following requirements:if(typeof ez_ad_units!='undefined')ez_ad_units.push([[728,90],'howtoforge_com-medrectangle-3','ezslot_4',121,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-medrectangle-3-0');PHP version 5.3 or greater with the following extensions:mbstring,gd,dom,jsonA web server with PHP support like Nginx, Apache, Lighttpd, H2O. This tutorial will use NGINX.PrerequisitesAn operating system running Ubuntu 18.04 LTS.A non-root user with sudo privileges.Initial stepsCheck your Ubuntu version:lsb_release -ds# Ubuntu 18.04.1 LTSSet up the timezone:sudo dpkg-reconfigure tzdataUpdate your operating system packages (software). This is an important first step because it ensures you have the latest updates and security fixes for your operating system's default software packages:sudo apt update && sudo apt upgrade -yInstall some essential packages that are necessary for basic administration of Ubuntu operating system:(adsbygoogle=window.adsbygoogle[]).push();sudo apt install -y curl wget vim git unzip socat bash-completionStep 1 - Install PHPInstall PHP, as well as the necessary PHP extensions:sudo apt install -y 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-xmlTo show PHP compiled in modules, you can run:php -mctypecurlexiffileinfo. . .. . .Check the PHP version:php --version# PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )# Copyright (c) 1997-2018 The PHP Group# Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies# with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend TechnologiesPHP-FPM service is automatically started and enabled on reboot on Ubuntu 18.04 system, so there is no need to start and enable it manually. We can move on to the next step, which is the database installation and setup.if(typeof ez_ad_units!='undefined')ez_ad_units.push([[580,400],'howtoforge_com-medrectangle-4','ezslot_1',108,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-medrectangle-4-0');Step 2 - Install Acme.sh client and obtain Let's Encrypt certificate (optional)Securing your website with HTTPS is not necessary, but it is a good practice to secure your site traffic. In order to obtain a TLS certificate from Let's Encrypt we will use acme.sh client. Acme.sh is a pure Unix shell software for obtaining TLS certificates from Let's Encrypt with zero dependencies. Download and install acme.sh:sudo su - rootgit clone cd acme.sh ./acme.sh --install --accountemail [email protected]source /.bashrccd Check acme.sh version:acme.sh --version# v2.8.1Obtain RSA and ECC/ECDSA certificates for your domain/hostname:# RSA 2048acme.sh --issue --standalone -d example.com --keylength 2048# ECDSAacme.sh --issue --standalone -d example.com --keylength ec-256If you want fake certificates for testing you can add --staging flag to the above commands.if(typeof ez_ad_units!='undefined')ez_ad_units.push([[580,400],'howtoforge_com-box-4','ezslot_2',110,'0','0']);__ez_fad_position('div-gpt-ad-howtoforge_com-box-4-0');After running the above commands, your certificates and keys will be in:For RSA: /home/username/example.com directory.For ECC/ECDSA: /home/username/example.com_ecc directory.To list your issued certs you can run:acme.sh --listCreate a directory to store your certs. We will use a directory /etc/letsencrypt.mkdir -p /etc/letsencrypt/example.comsudo mkdir -p /etc/letsencrypt/example.com_eccInstall/copy certificates to /etc/letsencrypt directory.# RSAacme.sh --install-cert -d example.com --cert-file /etc/letsencrypt/example.com/cert.pem --key-file /etc/letsencrypt/example.com/private.key --fullchain-file /etc/letsencrypt/example.com/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"# ECC/ECDSAacme.sh --install-cert -d example.com --ecc --cert-file /etc/letsencrypt/example.com_ecc/cert.pem --key-file /etc/letsencrypt/example.com_ecc/private.key --fullchain-file /etc/letsencrypt/example.com_ecc/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"All the certificates will be automatically renewed every 60 days.After obtaining certs exit from root user and return back to normal sudo user:exitStep 3 - Install and configure NGINXDownload and install NGINX from the Ubuntu repository:sudo apt install -y nginxCheck the NGINX version:sudo nginx -v# nginx version: nginx/1.14.0 (Ubuntu)Run sudo vim /etc/nginx/sites-available/bludit.conf and configure NGINX for Bludit.server listen 80; listen 443 ssl; ssl_certificate /etc/letsencrypt/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/example.com/private.key; ssl_certificate /etc/letsencrypt/example.com_ecc/fullchain.pem; ssl_certificate_key /etc/letsencrypt/example.com_ecc/private.key; server_name example.com; root /var/www/bludit; index index.php; location \.php$ fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; fastcgi_index index.php; include fastcgi.conf; location / try_files $uri $uri/ /index.php?$args; location ^ /bl-content/tmp/ deny all; location ^ /bl-content/pages/ deny all; location ^ /bl-content/databases/ deny all; Activate new bludit.conf configuration by linking the file to the sites-enabled directory:sudo ln -s /etc/nginx/sites-available/bludit.conf /etc/nginx/sites-enabled/Test NGINX configuration:sudo nginx -tReload NGINX:sudo systemctl reload nginx.serviceStep 4 - Install BluditCreate a document root directory where Bludit should reside in:sudo mkdir -p /var/www/bluditChange the ownership of the /var/www/bludit directory to jour_user:sudo chown -R your_user:your_user /var/www/bluditNavigate to the document root directory:cd /var/www/bluditDownload the latest version from the official page and extract the zip file:wget -3-8-1.zipunzip bludit-3-8-1.ziprm bludit-3-8-1.zipmv bludit-3-8-1/* . && mv bludit-3-8-1/.* .rmdir bludit-3-8-1NOTE: Update download URL if there is a newer release.Change ownership of the /var/www/bludit directory to www-data:sudo chown -R www-data:www-data /var/www/bluditStep 5 - Complete the Bludit installation wizardOpen your site in a web browser. After opening your site in a web browser, you should be redirected to the following page, to choose your language:Next, create a password for the user admin, and click "Install":After creating admin password, you will be redirected to the Bludit frontend:To access Bludit admin area, append /admin to your site IP or URL. This is how Bludit admin looks like:Installation is complete. Happy blogging with Bludit CMS.Links About Blago EresBlago Eres is a freelance Web Developer, Linux System Administrator and Technical Writer with more than 3 years of experience. Blago is skilled at RHEL/CentOS, Debian/Ubuntu, Web Servers, Database Servers, HTTP, PHP, JavaScript, Load Balancing, Caching etc. view as pdf printShare this page:Suggested articles1 Comment(s)Add commentName *Email *tinymce.init(selector:"textarea#commentedit",theme:"modern",height:100,apply_source_formatting:true,remove_linebreaks:false,menubar:false,plugins:["link"],content_css:" ",toolbar:"undo redo );CommentsBy: Cykuta Reply Tip: Typo @Create a directory to store your certs. We will use a directory /etc/letsencrypt.


This is just a snapshot from the GIT repository and is NOT A STABLEversion of Roundcube. It's not recommended to replace an existing installationof Roundcube with this version. Also using a separate database for thisinstallation is highly recommended.


Starting with Pico 2.0 we recommend installing Pico using Composer whenever possible. Trust us, you won't regret it when it comes to upgrading Pico! Anyway, if you don't want to use Composer, or if you simply can't use Composer because you don't have access to a shell on your server, don't despair, installing Pico using a pre-bundled release is still easier than everything you know!


This is a fork of ZeroBin, originally developed bySébastien Sauvage. ZeroBin was refactoredto allow easier and cleaner extensions. PrivateBin has many more features than theoriginal ZeroBin. It is, however, still fully compatible to the original ZeroBin 0.19data storage scheme. Therefore, such installations can be upgraded to PrivateBinwithout losing any data.


openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, RSync, BitTorrent client and many more. Thanks to the modular design of the framework it can be enhanced via plugins. openmediavault is primarily designed to be used in home environments or small home offices, but is not limited to those scenarios. It is a simple and easy to use out-of-the-box solution that will allow everyone to install and administrate a Network Attached Storage without deeper knowledge. 2ff7e9595c


1 view0 comments

Recent Posts

See All

Comments


bottom of page