{"id":1746,"date":"2018-11-25T10:57:23","date_gmt":"2018-11-25T10:57:23","guid":{"rendered":"https:\/\/www.hostnic.id\/blog\/?p=1746"},"modified":"2018-11-25T11:04:42","modified_gmt":"2018-11-25T11:04:42","slug":"cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7","status":"publish","type":"post","link":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/","title":{"rendered":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7"},"content":{"rendered":"<p>Askbot adalah perangkat lunak open source untuk membuat forum Q&amp;A yangg mengggunakan Python Django Framework. Pada dasarnya sistem Q&amp;A seperti StackOverflow, Yahoo Answers, dan lainnya. Dibuat oleh Mike Chan dan Sailing Cai pada tahun 2009, dan mudah untuk menginstal dan mengkonfigurasi pada sistem Linux seperti Ubuntu dan CentOS. Banyak proyek perangkat lunak open source besar seperti Fedora dan LibreOffice menggunakannya.<\/p>\n<p>Dalam tutorial ini, kami akan menunjukkan cara menginstal aplikasi Askbot Python Django menggunakan uWSGI dan Nginx web server pada sistem CentOS 7. Sedangkan untuk database, kami akan menggunakan PostgreSQL untuk instalasi Askbot.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_75 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Daftar Isi<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a37ab47e6578\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a37ab47e6578\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#What_we_will_do\" >What we will do<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_1_%E2%80%93_Install_dependencies\" >Step 1 &#8211; Install dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_2_%E2%80%93_Install_and_configure_PostgreSQL\" >Step 2 &#8211; Install and configure PostgreSQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_3_%E2%80%93_Install_and_configure_Askbot\" >Step 3 &#8211; Install and configure Askbot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_4_%E2%80%93_Install_and_configure_uWSGI\" >Step 4 &#8211; Install and configure uWSGI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_5_%E2%80%93_Install_and_configure_Nginx_webserver\" >Step 5 &#8211; Install and configure Nginx webserver<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Step_6_%E2%80%93_Test_the_setup\" >Step 6 &#8211; Test the setup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#Reference\" >Reference<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"what-we-will-do\"><span class=\"ez-toc-section\" id=\"What_we_will_do\"><\/span>What we will do<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Install dependencies<\/li>\n<li>Install and configure PostgreSQL<\/li>\n<li>Install and configure Askbot<\/li>\n<li>Install and configure uWSGI<\/li>\n<li>Install and configure Nginx Webserver<\/li>\n<li>Test the setup<\/li>\n<\/ol>\n<h2 id=\"prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>CentOS 7 Server<\/li>\n<li>Root privileges<\/li>\n<\/ul>\n<h2 id=\"step-install-dependencies\"><span class=\"ez-toc-section\" id=\"Step_1_%E2%80%93_Install_dependencies\"><\/span>Step 1 &#8211; Install dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Pada langkah ini, kami akan menginstal beberapa paket yang diperlukan untuk instalasi Askbot. termasuk &#8216;Alat Pengembangan&#8217;, Epel repositori, dan beberapa alat yang berhubungan dengan python (untuk mengelola paket Python). Jadi, mari kita mulai.<\/p>\n<p>Pertama, instal CentOS &#8216;Development Tools&#8217; dengan perintah grup yum di bawah ini.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">yum group install 'Development Tools'<\/code><\/pre>\n<p>Kemudian install the Epel repository.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">yum -y install epel-release<\/code><\/pre>\n<p>Terakhir install the python packages, termasuk python pip, python-devel and python six.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">yum -y install python-pip python-devel python-six<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-1\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/1.png?resize=500%2C410&#038;ssl=1\" alt=\"Installing python\" width=\"500\" height=\"410\" \/><\/a><\/p>\n<h2 id=\"step-install-and-configure-postgresql\"><span class=\"ez-toc-section\" id=\"Step_2_%E2%80%93_Install_and_configure_PostgreSQL\"><\/span>Step 2 &#8211; Install and configure PostgreSQL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sekarang kita membutuhkan database PostgreSQL, yang tersedia di repositori CentOS. Di bagian ini, kita akan membahas bagaimana Anda dapat menginstal database PostgreSQL, mengubah pengguna kata sandi postgres, membuat pengguna baru dan database untuk instalasi Askbot, dan akhirnya, mengubah konfigurasi otentikasi postgres.<\/p>\n<p>Jadi mari kita mulai dengan menginstal PostgreSQL dari repositori menggunakan perintah yum di bawah ini.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">yum -y install postgresql-server postgresql-devel postgresql-contrib<\/code><\/pre>\n<p>Setelah installation is complete, kita perlu menginisialisasi database, yang dapat Anda lakukan dengan menggunakan perintah di bawah ini.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">postgresql-setup initdb<\/code><\/pre>\n<p>Moving on, start postgres and enable it to launch automatically at the boot time.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">systemctl start postgresql\r\nsystemctl enable postgresql<\/code><\/pre>\n<p>At this point, the PostgreSQL database should be installed. Next, we need to reset the postgres user password. For this, first login as &#8216;postgres&#8217; user and access the psql command line tool.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">su - postgres\r\npsql<\/code><\/pre>\n<p>And then give the postgres user a new password.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">\\password postgres<\/code><\/pre>\n<p>Now, create a new database and user for Askbot. For example, we want to create a new user &#8216;<strong>hakaselabs<\/strong>&#8216; with password &#8216;<strong>hakase123<\/strong>&#8216;, and the database named &#8216;<strong>askbotdb<\/strong>&#8216;. The following postgres queries will help us create all of these.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">create database askbotdb;\r\ncreate user hakaselabs with password 'hakase123';\r\ngrant all privileges on database askbotdb to hakaselabs;<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-2\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/2.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/2.png?resize=492%2C511&#038;ssl=1\" alt=\"Install PostgreSQL\" width=\"492\" height=\"511\" \/><\/a><\/p>\n<p>So now, a database and user for Askbot installation have been created. The next step is to edit the postgres configuration for authentication setup, which you can do by heading to the &#8216;pgsql\/data&#8217; directory and editing the &#8216;pg_hba.conf&#8217; file with <a href=\"https:\/\/www.howtoforge.com\/vim-basics\">vim<\/a>.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd \/var\/lib\/pgsql\/data\/\r\nvim pg_hba.conf<\/code><\/pre>\n<p>Once inside the file, change all authentication to md5, as shown below.<\/p>\n<pre class=\"system\">local\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 md5\r\n # IPv4 local connections:\r\n host\u00a0\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 127.0.0.1\/32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 md5\r\n # IPv6 local connections:\r\n host\u00a0\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ::1\/128\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 md5<\/pre>\n<p style=\"text-align: center;\"><a id=\"img-3\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/3.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/3.png?resize=500%2C163&#038;ssl=1\" alt=\"Configure PostgreSQL\" width=\"500\" height=\"163\" \/><\/a><\/p>\n<p>Now, save and exit the file, and then restart the postgres service.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">systemctl restart postgresql<\/code><\/pre>\n<p>So by now, the PostgreSQL database has been installed; database for the Askbot installation has been created; and the postgres user authentication method has been changed to md5.<\/p>\n<h2 id=\"step-install-and-configure-askbot\"><span class=\"ez-toc-section\" id=\"Step_3_%E2%80%93_Install_and_configure_Askbot\"><\/span>Step 3 &#8211; Install and configure Askbot<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this step, we will discuss the installation and configuration of Askbot. We will install Askbot under a user named &#8216;askbot&#8217;, and using the virtualenv python. So let&#8217;s begin.<\/p>\n<p>Firstly, create a new user &#8216;askbot&#8217; and give the user a new password.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">useradd -m -s \/bin\/bash askbot\r\npasswd askbot<\/code><\/pre>\n<p>Then add the &#8216;askbot&#8217; user to the &#8216;wheel&#8217; group for sudo command access (not sure what &#8216;sudo&#8217; is? Learn more about it <a href=\"https:\/\/www.howtoforge.com\/tutorial\/sudo-beginners-guide\/\" target=\"_blank\" rel=\"noopener\">here<\/a>).<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">usermod -a -G wheel askbot<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-4\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/4.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/4.png?resize=500%2C173&#038;ssl=1\" alt=\"Install AskBot\" width=\"500\" height=\"173\" \/><\/a><\/p>\n<p>Now upgrade pip to the latest version and install the python virtualenv package.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">pip install --upgrade pip\r\npip install virtualenv six<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-5\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/5.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/5.png?resize=430%2C354&#038;ssl=1\" alt=\"Install pip\" width=\"430\" height=\"354\" \/><\/a><\/p>\n<p>Next. log in as &#8216;askbot&#8217; user and create new python virtual environment &#8216;hakase-labs&#8217; with virtualenv.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">su - askbot\r\nvirtualenv hakase-labs\/<\/code><\/pre>\n<p>Go to the &#8216;hakase-labs&#8217; directory and activate the virtual environment for Askbot installation.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd hakase-labs\/\r\nsource bin\/activate<\/code><\/pre>\n<p>Now install askbot and other python packages with pip command on &#8216;hakase-labs&#8217; virtual environment.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">pip install six \r\npip install askbot psycopg2<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-6\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/6.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/6.png?resize=500%2C363&#038;ssl=1\" alt=\"installing askbot\" width=\"500\" height=\"363\" \/><\/a><\/p>\n<p>Next, create a new directory for the &#8216;Askbot&#8217; project. Please make sure you don&#8217;t use &#8216;askbot&#8217; as the directory name. In our case, for example, we created a new directory named &#8216;myapp&#8217;<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">mkdir myapp\/<\/code><\/pre>\n<p>Go to the myapp directory and run the &#8216;askbot-setup&#8217; command.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd myapp\/\r\naskbot-setup<\/code><\/pre>\n<p>The &#8216;askbot-setup&#8217; command will ask you certain things. For example, you will be asked about directory path to deploy Askbot &#8211; you can type &#8216;.&#8217; and press Enter to continue. Similarly, when asked about database engine, type &#8216;1&#8217; to use postgresql and press Enter. For database-related details, enter databasename as &#8216;askbotdb&#8217;, database user as &#8216;hakaselabs&#8217;, and password as &#8216;hakase123&#8217;.<\/p>\n<p style=\"text-align: center;\"><a id=\"img-7\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/7.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/7.png?resize=442%2C546&#038;ssl=1\" alt=\"configure the application\" width=\"442\" height=\"546\" \/><\/a><\/p>\n<p>So Askbot is now installed on the &#8216;myapp&#8217; directory. Now we need to generate Askbot Django static files and the database.<\/p>\n<p>Run the command below to generate Askbot Django static files.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">python manage.py collectstatic<\/code><\/pre>\n<p>When asked for confirmation, type &#8216;yes&#8217; and press Enter.<\/p>\n<p style=\"text-align: center;\"><a id=\"img-8\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/8.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/8.png?resize=500%2C455&#038;ssl=1\" alt=\"python manage.py\" width=\"500\" height=\"455\" \/><\/a><\/p>\n<p>Now, to generate the database, run syncdb as below.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">python manage.py syncdb<\/code><\/pre>\n<p>You will be asked about creating the admin user and password. So when asked, type the username, email, and password for admin configuration.<\/p>\n<p style=\"text-align: center;\"><a id=\"img-9\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/9.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/9.png?resize=500%2C177&#038;ssl=1\" alt=\"Create admin user\" width=\"500\" height=\"177\" \/><\/a><\/p>\n<p>So by now, Askbot has been installed, static files have been generated, and the database configuration has been completed.<\/p>\n<p>You can test the Askbot installation with runserver command below.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">python manage.py runserver 0.0.0.0:8080<\/code><\/pre>\n<p>Open your Web browser and type the server IP address, and you should see a page similar to the following:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-10\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/10.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/10.png?resize=500%2C166&#038;ssl=1\" alt=\"Result in web browser\" width=\"500\" height=\"166\" \/><\/a><\/p>\n<h2 id=\"step-install-and-configure-uwsgi\"><span class=\"ez-toc-section\" id=\"Step_4_%E2%80%93_Install_and_configure_uWSGI\"><\/span>Step 4 &#8211; Install and configure uWSGI<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will be using uWSGI as service for the Askbot Django project. Specifically, we will be using uWSGI with Nginx web server for the Askbot installation. So let&#8217;s begin.<\/p>\n<p>Firstly, install uWSGI using the pip command, as shown below.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo pip install uwsgi<\/code><\/pre>\n<p>After the installation is complete, create a new directory for the uWSGI virtual host files. For example, in our case, we created &#8216;\/etc\/uwsgi\/sites&#8217;.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">mkdir -p \/etc\/uwsgi\/sites<\/code><\/pre>\n<p>Go to the newly-created directory and create new askbot uWSGI configuration with vim.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd \/etc\/uwsgi\/sites\r\nvim askbot.ini<\/code><\/pre>\n<p>Paste the following configuration in the file.<\/p>\n<pre class=\"system\">[uwsgi]\r\n \r\n # Project directory, Python directory\r\n chdir = \/home\/askbot\/hakase-labs\/myapp\r\n home = \/home\/askbot\/hakase-labs\/\r\n static-map = \/m=\/home\/askbot\/hakase-labs\/myapp\/static\r\n wsgi-file = \/home\/askbot\/hakase-labs\/myapp\/django.wsgi\r\n \r\n master = true\r\n processes = 5\r\n \r\n # Askbot will running under the sock file\r\n socket = \/run\/uwsgi\/askbot.sock\r\n chmod-socket = 664\r\n uid = askbot\r\n gid = nginx\r\n vacuum = true\r\n \r\n # uWSGI Log file\r\n logto = \/var\/log\/uwsgi.log<\/pre>\n<p>That&#8217;s it. Save the file and exit from the editor.<\/p>\n<p>Next, add new uWSGI service script file to the &#8216;\/etc\/systemd\/system&#8217; directory. Go to the directory and create the &#8216;uwsgi.service&#8217; file with vim.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd \/etc\/systemd\/system\/\r\nvim uwsgi.service<\/code><\/pre>\n<p>Paste the following uWSGI service configuration in the file.<\/p>\n<pre class=\"system\">[Unit]\r\n Description=uWSGI Emperor service\r\n \r\n [Service]\r\n ExecStartPre=\/bin\/bash -c 'mkdir -p \/run\/uwsgi; chown askbot:nginx \/run\/uwsgi'\r\n ExecStart=\/bin\/uwsgi --emperor \/etc\/uwsgi\/sites\r\n Restart=always\r\n KillSignal=SIGQUIT\r\n Type=notify\r\n NotifyAccess=all\r\n \r\n [Install]\r\n WantedBy=multi-user.target<\/pre>\n<p>Save and exit.<\/p>\n<p>Now, reload systemd services and enable uWSGI to start automatically at the boot time.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">systemctl daemon-reload\r\nsystemctl enable uwsgi<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-11\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/11.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/11.png?resize=500%2C233&#038;ssl=1\" alt=\"Reload services\" width=\"500\" height=\"233\" \/><\/a><\/p>\n<p>So with this, uWSGI has been installed, and you should see it running as a service.<\/p>\n<h2 id=\"step-install-and-configure-nginx-webserver\"><span class=\"ez-toc-section\" id=\"Step_5_%E2%80%93_Install_and_configure_Nginx_webserver\"><\/span>Step 5 &#8211; Install and configure Nginx webserver<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>So, Askbot is now installed, and it&#8217;s running under uWSGI sock file &#8216;askbot.sock&#8217;. In this step, we will be using Nginx web server as a reverse proxy for uWSGI application &#8216;Askbot&#8217;.<\/p>\n<p>To begin with, install Nginx with the yum command.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">yum -y install nginx<\/code><\/pre>\n<p>Now go to the Nginx &#8216;conf.d&#8217; directory and create new virtual host file &#8216;askbot.conf&#8217; with the vim editor.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">cd \/etc\/nginx\/conf.d\/\r\nvim askbot.conf<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-12\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/12.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/12.png?resize=500%2C258&#038;ssl=1\" alt=\"install nginx\" width=\"500\" height=\"258\" \/><\/a><\/p>\n<p>Paste the following Askbot Nginx configuration in the file.<\/p>\n<pre class=\"system\">server {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 listen 80;\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 server_name askbot.me www.askbot.me;\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location \/ {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 uwsgi_params;\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 uwsgi_pass\u00a0\u00a0\u00a0\u00a0\u00a0 unix:\/run\/uwsgi\/askbot.sock;\r\n \u00a0\u00a0 }\r\n }<\/pre>\n<p>Save the file and exit from the editor. Now, test the configuration to make sure there is no error.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">nginx -t<\/code><\/pre>\n<p>Next, start Nginx and uWSGI services.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">systemctl start nginx\r\nsystemctl start uwsgi<\/code><\/pre>\n<p>And enable them to start automatically at the boot time.<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">systemctl enable nginx\r\nsystemctl enable uwsgi<\/code><\/pre>\n<p style=\"text-align: center;\"><a id=\"img-13\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/13.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/13.png?resize=500%2C132&#038;ssl=1\" alt=\"test nginx config and restart nginx\" width=\"500\" height=\"132\" \/><\/a><\/p>\n<p>So Nginx is now installed as a reverse proxy for uWSGI application &#8216;Askbot&#8217;.<\/p>\n<h2 id=\"step-test-the-setup\"><span class=\"ez-toc-section\" id=\"Step_6_%E2%80%93_Test_the_setup\"><\/span>Step 6 &#8211; Test the setup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Open your web browser and visit the Askbot domain name: askbot.me, and you will get to see the home page, as shown below.<\/p>\n<p style=\"text-align: center;\"><a id=\"img-14\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/14.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/14.png?resize=500%2C152&#038;ssl=1\" alt=\"askbot domain\" width=\"500\" height=\"152\" \/><\/a><\/p>\n<p>Here&#8217;s the Askbot user login page:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-15\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/15.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/15.png?resize=500%2C246&#038;ssl=1\" alt=\"askbot login\" width=\"500\" height=\"246\" \/><\/a><\/p>\n<p>Askbot user dashboard:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-16\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/16.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/16.png?resize=500%2C262&#038;ssl=1\" alt=\"askbot dashboard\" width=\"500\" height=\"262\" \/><\/a><\/p>\n<p>Askbot admin setting:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-17\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/17.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/17.png?resize=500%2C286&#038;ssl=1\" alt=\"askbot admin dashboard\" width=\"500\" height=\"286\" \/><\/a><\/p>\n<p>Askbot Django admin login:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-18\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/18.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/18.png?resize=500%2C180&#038;ssl=1\" alt=\"Django admin login\" width=\"500\" height=\"180\" \/><\/a><\/p>\n<p>Askbot Django admin dashboard:<\/p>\n<p style=\"text-align: center;\"><a id=\"img-19\" class=\"fancybox\" href=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/big\/19.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.howtoforge.com\/images\/how_to_install_and_configure_askbot_with_nginx_on_centos_7\/19.png?resize=500%2C243&#038;ssl=1\" alt=\"Django admin dashboard\" width=\"500\" height=\"243\" \/><\/a><\/p>\n<p>So the Q&amp;A system application &#8216;Askbot&#8217; has been successfully installed with uWSGI and Nginx web server on CentOS 7 server.<\/p>\n<h2 id=\"reference\"><span class=\"ez-toc-section\" id=\"Reference\"><\/span>Reference<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/askbot.org\/en\/question\/14954\/how-to-configure-askbot-with-nginx-and-uwsgi\/\">https:\/\/askbot.org\/en\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Askbot adalah perangkat lunak open source untuk membuat forum Q&amp;A yangg mengggunakan Python Django Framework. Pada dasarnya sistem Q&amp;A seperti StackOverflow, Yahoo Answers, dan lainnya. Dibuat oleh Mike Chan dan Sailing Cai pada tahun 2009, dan mudah untuk menginstal dan mengkonfigurasi pada sistem Linux seperti Ubuntu dan CentOS. Banyak proyek perangkat lunak open source besar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[91],"tags":[],"class_list":["post-1746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"id_ID\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id\" \/>\n<meta property=\"og:description\" content=\"Askbot adalah perangkat lunak open source untuk membuat forum Q&amp;A yangg mengggunakan Python Django Framework. Pada dasarnya sistem Q&amp;A seperti StackOverflow, Yahoo Answers, dan lainnya. Dibuat oleh Mike Chan dan Sailing Cai pada tahun 2009, dan mudah untuk menginstal dan mengkonfigurasi pada sistem Linux seperti Ubuntu dan CentOS. Banyak proyek perangkat lunak open source besar [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostnic.id\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-25T10:57:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-25T11:04:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1394\" \/>\n\t<meta property=\"og:image:height\" content=\"888\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ari Sigit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ditulis oleh\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ari Sigit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimasi waktu membaca\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 menit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/\"},\"author\":{\"name\":\"Ari Sigit\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/#\\\/schema\\\/person\\\/a782d1235d484e7630007157996e5a49\"},\"headline\":\"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7\",\"datePublished\":\"2018-11-25T10:57:23+00:00\",\"dateModified\":\"2018-11-25T11:04:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/\"},\"wordCount\":1190,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.hostnic.id\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/askbot.png?fit=1394%2C888&ssl=1\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/\",\"name\":\"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.hostnic.id\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/askbot.png?fit=1394%2C888&ssl=1\",\"datePublished\":\"2018-11-25T10:57:23+00:00\",\"dateModified\":\"2018-11-25T11:04:42+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/#\\\/schema\\\/person\\\/a782d1235d484e7630007157996e5a49\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.hostnic.id\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/askbot.png?fit=1394%2C888&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.hostnic.id\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/askbot.png?fit=1394%2C888&ssl=1\",\"width\":1394,\"height\":888,\"caption\":\"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/tutorial\\\/linux\\\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/\",\"name\":\"hostnic.id\",\"description\":\"Info, Tips dan Tutorial Seputar Layanan Hostnic\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"id\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/#\\\/schema\\\/person\\\/a782d1235d484e7630007157996e5a49\",\"name\":\"Ari Sigit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g\",\"caption\":\"Ari Sigit\"},\"description\":\"Application Developer &amp; Support Specialist\",\"url\":\"https:\\\/\\\/www.hostnic.id\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/","og_locale":"id_ID","og_type":"article","og_title":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id","og_description":"Askbot adalah perangkat lunak open source untuk membuat forum Q&amp;A yangg mengggunakan Python Django Framework. Pada dasarnya sistem Q&amp;A seperti StackOverflow, Yahoo Answers, dan lainnya. Dibuat oleh Mike Chan dan Sailing Cai pada tahun 2009, dan mudah untuk menginstal dan mengkonfigurasi pada sistem Linux seperti Ubuntu dan CentOS. Banyak proyek perangkat lunak open source besar [&hellip;]","og_url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/","og_site_name":"Hostnic.id","article_published_time":"2018-11-25T10:57:23+00:00","article_modified_time":"2018-11-25T11:04:42+00:00","og_image":[{"width":1394,"height":888,"url":"https:\/\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png","type":"image\/png"}],"author":"Ari Sigit","twitter_card":"summary_large_image","twitter_misc":{"Ditulis oleh":"Ari Sigit","Estimasi waktu membaca":"7 menit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/"},"author":{"name":"Ari Sigit","@id":"https:\/\/www.hostnic.id\/blog\/#\/schema\/person\/a782d1235d484e7630007157996e5a49"},"headline":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7","datePublished":"2018-11-25T10:57:23+00:00","dateModified":"2018-11-25T11:04:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/"},"wordCount":1190,"commentCount":0,"image":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png?fit=1394%2C888&ssl=1","articleSection":["Linux"],"inLanguage":"id","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/","url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/","name":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7 - Hostnic.id","isPartOf":{"@id":"https:\/\/www.hostnic.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png?fit=1394%2C888&ssl=1","datePublished":"2018-11-25T10:57:23+00:00","dateModified":"2018-11-25T11:04:42+00:00","author":{"@id":"https:\/\/www.hostnic.id\/blog\/#\/schema\/person\/a782d1235d484e7630007157996e5a49"},"breadcrumb":{"@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#breadcrumb"},"inLanguage":"id","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#primaryimage","url":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png?fit=1394%2C888&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png?fit=1394%2C888&ssl=1","width":1394,"height":888,"caption":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-dan-konfigurasi-askbot-dengan-nginx-di-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostnic.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Cara Install dan Konfigurasi Askbot dengan Nginx di CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.hostnic.id\/blog\/#website","url":"https:\/\/www.hostnic.id\/blog\/","name":"hostnic.id","description":"Info, Tips dan Tutorial Seputar Layanan Hostnic","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostnic.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"id"},{"@type":"Person","@id":"https:\/\/www.hostnic.id\/blog\/#\/schema\/person\/a782d1235d484e7630007157996e5a49","name":"Ari Sigit","image":{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/secure.gravatar.com\/avatar\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/140001cab6874fc4d4cecb4b3519ceca05b4fa2543ed46c5dae3704831ed3a2d?s=96&d=mm&r=g","caption":"Ari Sigit"},"description":"Application Developer &amp; Support Specialist","url":"https:\/\/www.hostnic.id\/blog\/author\/admin\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/11\/askbot.png?fit=1394%2C888&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8D2mv-sa","jetpack-related-posts":[{"id":1844,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-linux-rhel-8\/","url_meta":{"origin":1746,"position":0},"title":"Cara Install Linux RHEL 8","author":"Ari Sigit","date":"2018-12-07","format":false,"excerpt":"Red Hat Enterprise Linux 8\u00a0versi beta telah di rilis. Rilis baru RHEL didasarkan pada Fedora 28 dan kernel 4.18. Download RHEL 8 ISO Image Untuk menyiapkan media instalasi Anda, Anda perlu mengunduh image instalasi nya terlebih dahulu. Untuk melakukan ini, Anda harus mendaftar untuk uji coba gratis di RedHat\u2019s website.\u2026","rel":"","context":"dalam &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/RHEL-8-Install-Menu.png?fit=635%2C462&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/RHEL-8-Install-Menu.png?fit=635%2C462&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/RHEL-8-Install-Menu.png?fit=635%2C462&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1837,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-redis-dan-php-redis-di-centos-web-panel-cwp\/","url_meta":{"origin":1746,"position":1},"title":"Cara Install Redis dan PHP Redis di Centos Web Panel CWP","author":"Ari Sigit","date":"2018-12-05","format":false,"excerpt":"Cara Install Redis dan PHP Redis di Centos Web Panel CWP. Redis adalah singkatan dari Remote DIctionary Server dan itu adalah basis data NoSQL nilai-kunci. Hampir semua bahasa program termasuk PHP memiliki Redis bindings. Dalam panduan ini, kami akan menunjukkan cara menginstal server Redis dan Redis ekstensi PHP pada server\u2026","rel":"","context":"dalam &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1942,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/website\/codeigniter\/cara-install-codeigniter-pada-centos-7\/","url_meta":{"origin":1746,"position":2},"title":"Cara Install CodeIgniter pada CentOS 7","author":"Ari Sigit","date":"2018-12-22","format":false,"excerpt":"CodeIgniter adalah aplikasi PHP dan banyak digunakan oleh pengembang untuk membangun aplikasi web berfitur lengkap. CodeIgniter memiliki beberapa persyaratan untuk dijalankan: Web server.\u00a0Untuk tutorial ini akan kita gunakan Apache. PHP 5.6 atau terbaru Database server MySQL 5.1 (atau terbaru). PostgreSQL, MS SQL,SQLite etc.\u00a0Untuk tutorial ini akan kita gunakan MariaDB. Composer\u2026","rel":"","context":"dalam &quot;Codeigniter&quot;","block_context":{"text":"Codeigniter","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/website\/codeigniter\/"},"img":{"alt_text":"Cara Install CodeIgniter pada CentOS 7","src":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Install-CodeIgniter-in-CentOS-7.png?fit=720%2C340&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Install-CodeIgniter-in-CentOS-7.png?fit=720%2C340&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Install-CodeIgniter-in-CentOS-7.png?fit=720%2C340&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Install-CodeIgniter-in-CentOS-7.png?fit=720%2C340&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1900,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-invoiceplane-dengan-nginx-di-centos-7\/","url_meta":{"origin":1746,"position":3},"title":"Cara Install InvoicePlane dengan Nginx di CentOS 7","author":"Ari Sigit","date":"2018-12-13","format":false,"excerpt":"InvoicePlane adalah aplikasi faktur sumber terbuka dan gratis. Kode sumbernya dapat ditemukan di Github. Tutorial kali ini akan menunjukkan cara menginstal InvoicePlane pada sistem CentOS 7 yang baru. Requirements WebServer (Apache, NGINX).\u00a0This tutorial will use Nginx. MySQL\u00a0version 5.5 or greater or the equivalent version of MariaDB. PHP version 7.0 or\u2026","rel":"","context":"dalam &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Screenshot_2018-12-09_at_21.39_.03_.png?fit=550%2C316&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Screenshot_2018-12-09_at_21.39_.03_.png?fit=550%2C316&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/Screenshot_2018-12-09_at_21.39_.03_.png?fit=550%2C316&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1992,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-nginx-mysql-mariadb-dan-php-pada-rhel-8\/","url_meta":{"origin":1746,"position":4},"title":"Cara Install Nginx, MySQL\/MariaDB dan PHP pada RHEL 8","author":"Ari Sigit","date":"2018-12-31","format":false,"excerpt":"Banyak pembaca tahu tentang LAMP, tetapi sedikit orang yang menyadari LEMP, yang menggantikan server web Apache dengan Nginx. Setiap server web memiliki pro dan kontra dan itu tergantung pada situasi spesifik Anda yang mana yang akan Anda pilih untuk digunakan. Dalam tutorial ini, kami akan menunjukkan kepada Anda bagaimana menginstal\u2026","rel":"","context":"dalam &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/linux\/"},"img":{"alt_text":"Cara Install Apache, MySQL\/MariaDB dan PHP pada RHEL 8","src":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/lamp.png?fit=940%2C529&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/lamp.png?fit=940%2C529&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/lamp.png?fit=940%2C529&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/lamp.png?fit=940%2C529&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1968,"url":"https:\/\/www.hostnic.id\/blog\/tutorial\/linux\/cara-install-virtualbox-6-0-pada-os-linux\/","url_meta":{"origin":1746,"position":5},"title":"Cara Install VirtualBox 6.0 Pada OS Linux","author":"Ari Sigit","date":"2018-12-25","format":false,"excerpt":"VirtualBox adalah perangkat lunak virtualisasi lintas-platform open source, dapat diinstal pada sistem operasi apa pun dan memungkinkan Anda untuk menginstal dan menjalankan beberapa sistem operasi di komputer yang sama. Misalnya, jika Anda menginstalnya di sistem Linux, Anda dapat menjalankan sistem operasi Windows XP di bawahnya sebagai OS Tamu atau menjalankan\u2026","rel":"","context":"dalam &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.hostnic.id\/blog\/.\/tutorial\/linux\/"},"img":{"alt_text":"Cara Install VirtualBox 6.0 Pada OS Linux","src":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/virtualbox-6-0-officially-released-with-major-new-features-here-s-what-s-new-524331-2.jpg?fit=625%2C361&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/virtualbox-6-0-officially-released-with-major-new-features-here-s-what-s-new-524331-2.jpg?fit=625%2C361&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.hostnic.id\/blog\/wp-content\/uploads\/2018\/12\/virtualbox-6-0-officially-released-with-major-new-features-here-s-what-s-new-524331-2.jpg?fit=625%2C361&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/posts\/1746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/comments?post=1746"}],"version-history":[{"count":2,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/posts\/1746\/revisions"}],"predecessor-version":[{"id":1748,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/posts\/1746\/revisions\/1748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/media\/1749"}],"wp:attachment":[{"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/media?parent=1746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/categories?post=1746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostnic.id\/blog\/wp-json\/wp\/v2\/tags?post=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}