{"id":1903,"date":"2021-08-30T13:53:00","date_gmt":"2021-08-30T13:53:00","guid":{"rendered":"https:\/\/hostry.com\/blog\/?p=1903"},"modified":"2021-09-01T13:54:11","modified_gmt":"2021-09-01T13:54:11","slug":"easy-to-manage-bludit-cms-for-centos-8","status":"publish","type":"post","link":"https:\/\/hostry.com\/blog\/easy-to-manage-bludit-cms-for-centos-8\/","title":{"rendered":"Easy-To-Manage Bludit CMS for CentOS 8"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"508\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2021\/09\/image_2021-09-01_16-50-23.png\" alt=\"\" class=\"wp-image-2007\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2021\/09\/image_2021-09-01_16-50-23.png 892w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2021\/09\/image_2021-09-01_16-50-23-300x171.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2021\/09\/image_2021-09-01_16-50-23-450x256.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2021\/09\/image_2021-09-01_16-50-23-768x437.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Bludit CMS is a very fast, simple, popular and flexible content management system. <strong><a href=\"https:\/\/www.bludit.com\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">Bludit<\/a><\/strong> CMS uses JSON files to store content. With this use, you no longer need to install or configure a database. This <a href=\"https:\/\/help.hostry.com\/article-categories\/cms\/\" class=\"rank-math-link\"><strong>CMS<\/strong><\/a> includes a huge number of SEO tools for your comfortable work. It also boosts your site&#8217;s ranking in all search engines as well as social media. When it comes to security, this CMS has done well in that regard! She is concerned about user safety and does not track frameworks or other resources on your site. In order to correctly and successfully install this CMS, you need the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Server that supports CentOS<\/strong><\/li><li><strong>Server administrator rights<\/strong><\/li><li><strong>Latest CentOS Updates for Your VPS<\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">PHP Install required for Bludit CMS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Linux CentOS 7 distribution runs PHP with version 5. However, the minimum version for Bludit CMS PHP requirement is version 5.6. You can install PHP version 7.4 from the Remi repository, a long-standing and trusted community repository for CentOS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First you need to be logged in as root user. Some packages in the dedicated Remi repository are dependent on packages in the EPEL repository. This means that you need to enable the EPEL repository first:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install epel-release<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you need to enable the <strong><a class=\"rank-math-link\" href=\"https:\/\/blog.remirepo.net\/post\/2019\/09\/24\/CentOS-8-repository\" target=\"_blank\" rel=\"noopener\">Remi<\/a><\/strong> repository. This is available using a special program:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For comfortable work with Bludit CMS, it is recommended to install the <strong><em>yum-utils<\/em><\/strong> package for configuring repositories<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install yum-utils<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Enable Your PHP for Bludit CMS<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After successful installation, you need to enable your <strong>PHP<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum-config-manager --disable 'remi-php*'\nyum-config-manager --enable   remi-php74<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Your PHP needs <strong>PHP-FPM<\/strong> to be installed as well. You must then enable it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install php-cli php-fpm php-gd php-json php-mbstring php-xml\nsystemctl enable php-fpm.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then it should list all the time zones that are used for your CentOS system. Use the <strong>UP &amp; DOWN<\/strong> keys to move through the list and press <em>Q <\/em>to exit<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl list-timezones<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After successfully selecting the time zone, you need to edit the main PHP configuration file. This manual is used by nano as its editor, but you can use another editor like <strong>vim<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/php.ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It is important to increase the security of your server, create a special user named bludit user or PHP-FPM process group for Bludit. This user also owns the Bludit source files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser bludit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then you need to create a <strong>PHP-FPM<\/strong> configuration file from the default file. Please follow this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/etc\/php-fpm.d\/www.conf \/etc\/php-fpm.d\/bludit.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Rename the default file to disable it and save it as a backup<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv \/etc\/php-fpm.d\/www.conf \/etc\/php-fpm.d\/www.conf.default<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can edit the <strong>PHP-FPM<\/strong> configuration file like this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/php-fpm.d\/bludit.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the configuration file, any line starting with <strong><em><span style=\"text-decoration: underline;\">;<\/span><\/em><\/strong> symbol is a comment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure listen <strong>= 127.1.2.3:9000<\/strong> setting doesn&#8217;t start with;. This parameter forces PHP to listen on 127.1.2.3 and port <strong>9000<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then find the following settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change<strong> [www] <\/strong>to <strong> [bludit]<\/strong><\/li><li>Change<strong> user = apache <\/strong>to<strong> user = bludit<\/strong><\/li><li>Change<strong> group = apache <\/strong>to<strong> group = bludit<\/strong><\/li><li>Change<strong> \/var\/log\/php-fpm\/www-error.log <\/strong>to<strong> \/var\/log\/fpm-php\/bludit\/error.log<\/strong><\/li><li>Change<strong> \/ var \/ lib \/ php \/ session <\/strong>to<strong> \/var\/lib\/php\/session.bludit<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then please save this file and after that you can exit. Now you have similar folders, you need to fix that. For Bludit CMS This can be done as follows: create a separate folder named <strong>\/var\/log\/fpm-php\/bludit<\/strong>. It will store all log messages and a folder named <strong>\/var\/lib\/php\/session.bludit<\/strong>. In order to store all sessions and their <strong>PHP <\/strong>data. Please follow this special command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/log\/fpm-php\/bludit\nmkdir -p \/var\/lib\/php\/session.bludit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To work comfortably with Bludit CMS, you need to update the ownership and permissions for two folders. This is so that only PHP-FPM Bludit processes can write to them<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown bludit:bludit \/var\/log\/fpm-php\/bludit\nchmod 700 \/var\/log\/fpm-php\/bludit\nchown bludit:bludit \/var\/lib\/php\/session.bludit\nchmod 700 \/var\/lib\/php\/session.bludit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Please check your configuration now. It  is the new one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php-fpm -t<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, finally, you can run <strong>PHP-FPM<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start php-fpm.service<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Bludit CMS Installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, you need to download the Bludit source archive. This can be done both on the main site and via the <strong>link<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.bludit.com\/releases\/bludit-3-13-1.zip\" target=\"_blank\" rel=\"noopener\">https:\/\/www.bludit.com\/releases\/bludit-3-13-1.zip<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/bludit\/bludit\/archive\/refs\/tags\/3.13.1.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Unpack<\/strong> the archive file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar xzf 3.13.1.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After successfully unpacking the archive, make <strong>bludit<\/strong> as the owner of the source folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R bludit:bludit bludit*<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you will need to move the source code folder to the folder that is specified as <strong>\/var\/www\/bludit<\/strong>. This is required insofar as usually the website source folders are located in this <strong>\/var\/www<\/strong> folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/var\/www\nmv bludit* \/var\/www\/bludit<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Nginx Installation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For your <strong>Bludit CMS<\/strong> to work properly and comfortably, you need to install an <strong>Nginx<\/strong> web server. This will help make your work worthy and enjoyable! In order to install Nginx on your CentOS virtual server, enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install nginx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It will be great if your web server is always up and running. This can be done using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable nginx.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This CMS will request a new configuration file and of course you will need to create it. This can be followed as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/nginx\/conf.d\/bludit-http.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, after successfully creating a configuration file for your Bludit, you need to edit it. To do this, you need to supplement it and replace domainexample.com with the domain name or IP address of your server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n  listen 80;\n  listen &#91;::]:80;\n\n  server_name domainexample.com;\n\n  root  \/var\/www\/bludit;\n  index index.html index.php;\n\n  # All URLs are processed by index.php\n  location \/ {\n    try_files $uri $uri\/ \/index.php$is_args$args;\n  }\n\n  # For security, deny direct access to the following folders\n  location ^~ \/bl-content\/databases\/ { deny all; }\n  location ^~ \/bl-content\/workspaces\/ { deny all; }\n  location ^~ \/bl-content\/pages\/ { deny all; }\n  location ^~ \/bl-content\/tmp\/ { deny all; }\n\n  # For security, deny direct access to PHP files inside the \"bl-kernel\" folder\n  location ~ ^\/bl-kernel\/.+\\.php$ { deny all; }\n\n  # Pass PHP files to the FastCGI server listening on 127.1.2.3:9000\n  location ~ \\.php$ {\n    # Mitigate https:\/\/httpoxy.org\/ vulnerabilities\n    fastcgi_param HTTP_PROXY \"\";\n\n    fastcgi_pass 127.1.2.3:9000;\n    fastcgi_index index.php;\n    include fastcgi.conf;\n  }\n\n  # Set expiration of assets to MAX for caching\n  location ~* \\.(jpg|jpeg|gif|png|css|js|ico|svg|eot|ttf|woff|woff2|otf)$ {\n    expires max;\n    log_not_found off;\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After that, it is very important to save the changes in order for them to take effect. Then you can check your new configuration. There is a very simple command for this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -t<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Since you made the changes, now you will need to start your web server service with the <strong>start<\/strong> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start nginx.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You need to update your firewall in order for incoming <strong>HTTP and HTTPS<\/strong> requests. It needs to take over and succeed on your web server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --permanent --zone=public --add-service=http<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The last step is to <strong>reboot<\/strong>. This is required for your current firewall session.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --reload<\/code><\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Bludit CMS is a very fast, simple, popular and flexible content management system. Bludit CMS uses JSON files to store content. With this use, you no &#8230;<\/p>\n","protected":false},"author":6,"featured_media":2006,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[86,88,87],"class_list":["post-1903","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms","tag-bludit-cms","tag-centos","tag-installing"],"read_time":4,"_links":{"self":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/1903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/comments?post=1903"}],"version-history":[{"count":78,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/1903\/revisions"}],"predecessor-version":[{"id":2008,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/1903\/revisions\/2008"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/media\/2006"}],"wp:attachment":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/media?parent=1903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/categories?post=1903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/tags?post=1903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}