tag:blogger.com,1999:blog-14484351905916736982024-03-13T20:17:33.884-07:00Teknik Komputer JaringanBlog Welly di SMK TKJWelly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-1448435190591673698.post-91018165174136562602021-07-17T19:32:00.003-07:002021-07-17T19:32:42.831-07:00How to Install Moodle on Ubuntu 20.04 | 18.04 with Nginx and Let’s Encrypt<p> <span style="background-color: white; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px;">To get started with installing Moodle, follow the steps below:</span></p><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 1: Install Nginx HTTP Server</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Moodle requires a web server to function, and Nginx is one of the most popular opensource web server available today.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To install Nginx on Ubuntu, run the commands below:</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt update
sudo apt install nginx</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After installing Nginx, the commands below can be used to <span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">stop</span>, <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">start</span> and <span class="has-inline-color has-light-black-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">enable</span> Nginx service to always start up with the server boots.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo systemctl <span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">stop</span> nginx.service
sudo systemctl <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">start</span> nginx.service
sudo systemctl <span class="has-inline-color has-light-black-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">enable</span> nginx.service</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To test whether Nginx is installed and functioning, open your web browser and browse to the server’s IP address or hostname.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">http://localhost</kbd></p><figure class="wp-block-image" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="nginx default home page test" class="wp-image-2593" data-pagespeed-url-hash="173576840" height="329" loading="lazy" sizes="(max-width: 844px) 100vw, 844px" src="https://websiteforstudents.com/wp-content/uploads/2016/11/xnginx_default_page.png.pagespeed.ic.4uX2TxGIk1.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2016/11/xnginx_default_page.png.pagespeed.ic.4uX2TxGIk1.webp 844w, https://websiteforstudents.com/wp-content/uploads/2016/11/xnginx_default_page-300x117.png.pagespeed.ic.tTuo0QLTuM.webp 300w, https://websiteforstudents.com/wp-content/uploads/2016/11/xnginx_default_page-768x299.png.pagespeed.ic.NF_H8RIYVi.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="844" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">If you see the above page in your browser, then Nginx is working as expected.</p><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 2: Install MariaDB Database Server</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">You’ll also need a database server to run Moodle. A database server is where Moodle content get stored.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">A true open source database server that you can use with Moodle is MariaDB database server. It is fast, secure and the default server for almost all Linux servers.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To install MariaDB, run the commands below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt-get install mariadb-server mariadb-client</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After installing MariaDB, the commands below can be used to <span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">stop</span>, <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">start</span> and <span class="has-inline-color has-light-black-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">enable</span> MariaDB service to always start up when the server boots.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo systemctl <span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">stop</span> mariadb.service
sudo systemctl <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">start</span> mariadb.service
sudo systemctl <span class="has-inline-color has-light-black-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">enable</span> mariadb.service</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Next, run the commands below to secure the database server with a root password if you were not prompted to do so during the installation.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo mysql_secure_installation</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">When prompted, answer the questions below by following the guide.</p><ul style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 2rem 2.25rem; outline: 0px; padding: 0px; vertical-align: baseline;"><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Enter current password for root (enter for none): Just press the <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Enter</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Set root password? [Y/n]: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Y</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">New password: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Enter password</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Re-enter new password: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Repeat password</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Remove anonymous users? [Y/n]: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Y</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Disallow root login remotely? [Y/n]: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Y</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Remove test database and access to it? [Y/n]: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Y</span></li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Reload privilege tables now? [Y/n]: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Y</span></li></ul><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To verify and validate that MariaDB is installed and working, login to the database console using the commands below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo mysql -u root -p</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">type the root password when prompted.</p><figure class="wp-block-image" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="mariadb welcome" class="wp-image-17576" data-pagespeed-url-hash="307223669" height="240" loading="lazy" sizes="(max-width: 658px) 100vw, 658px" src="https://websiteforstudents.com/wp-content/uploads/2018/01/xmariadb_ubuntu_1604.png.pagespeed.ic.bVjjbu-IFU.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/01/xmariadb_ubuntu_1604.png.pagespeed.ic.bVjjbu-IFU.webp 658w, https://websiteforstudents.com/wp-content/uploads/2018/01/xmariadb_ubuntu_1604-300x109.png.pagespeed.ic.wIi7QYlCI0.webp 300w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="658" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">If you see a similar screen as shown above, then the server was successfully installed.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Next, run the commands below to open MariaDB default config file…</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then add the highlighted lines below and save.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">[mysqld]
#
* Basic Settings
#
user = mysql
pid-file = /run/mysqld/mysqld.pid
socket = /run/mysqld/mysqld.sock
#port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
#skip-external-locking
<span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix = ON</span></pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Restart MariaDB after that…</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo systemctl restart mariadb.service</pre><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 3: Install PHP 7.4 and Related Modules</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Moodle is a PHP based application, and PHP is required to run it. Since some versions of Ubuntu don’t have the latest versions of PHP, you can add a third-party PPA repository to install PHP from there.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">The command below will add a third-party PPA to Ubuntu.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then update and upgrade to PHP 7.4</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt update</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Next, run the commands below to install PHP 7.4 and related modules.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-soap php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-cli php7.4-zip</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After installing PHP 7.4, go and configure some basic settings that may be required for Moodle to function properly.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Run the commands below to open PHP</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo nano /etc/php/<span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">7.4</span>/fpm/php.ini</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Below are good settings to configure for most Moodle websites.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
cgi.fix_pathinfo = 0
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">That should get PHP 7.4 installed with some basic settings to allow Moodle to function.</p><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 4: Create Moodle Database</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">When all the servers are installed above, it’s now time to begin setting up Moodle environment. First, run the steps below to create a blank database for Moodle to use.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Logon to MariaDB database console using the commands below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo mysql -u root -p</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then create a database called <kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">moodle</kbd></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">CREATE DATABASE <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">moodle</span>;</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Next, create a database user called <kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">moodleuser</kbd> and set password</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">CREATE USER '<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">moodleuser</span>'@'localhost' IDENTIFIED BY '<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">new_password_here</span>';</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then grant the user full access to the database.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">GRANT ALL ON <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">moodle</span>.* TO '<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">moodleuser</span>'@'localhost' WITH GRANT OPTION;</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Finally, save your changes and exit.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">FLUSH PRIVILEGES;
EXIT;</pre><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 5: Download Moodle</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">At this point, Moodle is ready to be downloaded and installed. Use the commands below to download the latest version of Moodle. At the time of this writing, the latest version is <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">38</strong>.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To view Moodle releases, see this <a href="https://github.com/moodle/moodle" style="background-color: transparent; border: 0px; box-sizing: inherit; color: #04bfbf; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;">page</a>.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt install git curl</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After installing git and curl above, change into the Nginx root directory and download Moodle packages from Github… Always replace the branch number with the latest branch.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">cd /var/www/
sudo git clone -b MOODLE_<span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">38</span>_STABLE git://git.moodle.org/moodle.git moodle</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then run the commands below to set the correct permissions for Moodle to function.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo mkdir -p /var/www/moodledata
sudo chown -R www-data:www-data /var/www/
sudo chmod -R 755 /var/www/
sudo chown www-data:www-data /var/www/moodledata</pre><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 6: Configure Nginx</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Below is where you configure Nginx VirtualHost file for the Moodle site you’re creating. This file defines how client requests are handled and processed.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Run the commands below to create a new VirtualHost file called <kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">moodle</kbd> in the <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/etc/nginx/sites-available/</strong> directory.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo nano /etc/nginx/sites-available/moodle</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">A very good configuration settings for most Moodle site on Nginx server is below. This configuration should work great.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Copy the content below and save into the file created above.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">server {
listen 80;
listen [::]:80;
root /var/www/moodle;
index index.php index.html index.htm;
server_name <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com www.example.com</span>;
client_max_body_size 100M;
autoindex off;
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/www/moodledata/;
}
location ~ [^/].php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Save the file and exit.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After saving the file above, run the commands below to enable the new site, then restart Nginx server.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo ln -s /etc/nginx/sites-available/moodle /etc/nginx/sites-enabled/
sudo systemctl restart nginx.service</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">At this stage, Moodle is ready and can be launched by going to the server’s IP or hostname.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">http://localhost</kbd></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">However, if you want to enable SSL or accept web traffic over HTTPS, then you can continue below to install and configure Let’s Encrypt free SSL certificates.</p><h2 style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #020202; font-family: "Nunito Sans", sans-serif; font-size: 1.75rem; font-weight: inherit; line-height: 1.3; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Step 7: Install Let’s Encrypt Wildcard Certificates</h2><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">At step 6, Moodle is ready to use without SSL. However, if you want to serve web traffic over HTTPS, then installing and configuring Let’s Encrypt SSL certificate or other public certificates is a must.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To install Let’s Encrypt, run the commands below.</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo apt update
sudo apt-get install letsencrypt</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">The commands above will install certbot tool and all dependencies that will be allowed to make the tool function.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Let’s Encrypt provides many ways to challenge you to validate that you own the domain you want to provide SSL certificates for. You will not be able to generate certificates if you can’t prove that you own the domain you want to secure.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">For wildcard certificates, the only challenge method Let’s Encrypt accepts is the DNS challenge, which we can invoke via the <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">preferred-challenges=dns</strong> flag.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">So, to generate a wildcard cert for domain <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">*.example.com</strong></span>, you run the commands below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo certbot certonly --manual <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">--preferred-challenges=dns</span> --email admin@example.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d <span class="has-inline-color has-light-pink-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span> -d <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">*.example.com</span></code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">The command options above are explained below:</p><ul style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 2rem 2.25rem; outline: 0px; padding: 0px; vertical-align: baseline;"><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">certonly: </strong> Obtain or renew a certificate, but do not install</li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">–manual:</strong> Obtain certificates interactively</li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">–preferred-challenges=dns:</strong> Use dns to authenticate domain ownership</li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">–server:</strong> Specify the endpoint to use to generate</li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">–agree-tos:</strong> Agree to the ACME server’s subscriber terms</li><li style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-d:</strong> Domain name to provide certificates for</li></ul><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After executing the command above, Let’s Encrypt will provide a text string to add a text record to your DNS entry…</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Example:</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
-------------------------------------------------------------------------------
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
-------------------------------------------------------------------------------
(Y)es/(N)o: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">y</span>
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>
-------------------------------------------------------------------------------
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.
Are you OK with your IP being logged?
-------------------------------------------------------------------------------
(Y)es/(N)o: <span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">y</span>
-------------------------------------------------------------------------------
Please deploy a DNS TXT record under the name
<span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">_acme-challenge.example.com</span> with the following value:
<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">x4MrZ6y-JqFJQRmq_lGi9ReRQHPa1aTC9J2O7wDKzq8</span>
Before continuing, verify the record is deployed.</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Go to your DNS provider portal and add a text record for the string above and save…</p><figure class="wp-block-image" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="Let's Encrypt DNS" class="wp-image-22030" data-pagespeed-url-hash="3983852241" height="116" loading="lazy" sizes="(max-width: 1272px) 100vw, 1272px" src="https://storage.googleapis.com/websiteforstudents.com/2019/10/78c178fb-letsencrypt_wildcard_ubuntu.png" srcset="https://websiteforstudents.com/wp-content/uploads/2019/10/x78c178fb-letsencrypt_wildcard_ubuntu.png.pagespeed.ic.VN4uGW0TyD.webp 1272w, https://websiteforstudents.com/wp-content/uploads/2019/10/x78c178fb-letsencrypt_wildcard_ubuntu-300x27.png.pagespeed.ic.SVrxDR-0X4.webp 300w, https://websiteforstudents.com/wp-content/uploads/2019/10/x78c178fb-letsencrypt_wildcard_ubuntu-768x70.png.pagespeed.ic.VOfLJNenMU.webp 768w, https://websiteforstudents.com/wp-content/uploads/2019/10/x78c178fb-letsencrypt_wildcard_ubuntu-1024x93.png.pagespeed.ic.9mktSe96tz.webp 1024w, https://websiteforstudents.com/wp-content/uploads/2019/10/x78c178fb-letsencrypt_wildcard_ubuntu-1140x104.png.pagespeed.ic.YTZRJUAAds.webp 1140w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="1272" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Wait a few mins before continuing from the prompt.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Some DNS providers take a wile to propagate changes so it may depend on your provider’s platform.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After the changes above and Let’s encrypt is able to validate that you own the domain, you should see a successful message as below:</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/etc/letsencrypt/live/<span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>/fullchain.pem</span>
Your key file has been saved at:
<span style="border: 0px; box-sizing: inherit; color: red; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/etc/letsencrypt/live/<span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>/privkey.pem</span>
Your cert will expire on 2020-01-09. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">The wildcard certificate is now generated and ready to be used.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">To verify that the certificate is ready, run the commands below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo certbot certificates</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">That should display similar screen as below:</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">Found the following certs:
Certificate Name: <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>
Domains: <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">*.example.com</span>
Expiry Date: 2020-01-05 07:48:04+00:00 (VALID: 85 days)
Certificate Path: /etc/letsencrypt/live/<span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>/fullchain.pem
Private Key Path: /etc/letsencrypt/live/<span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com</span>/privkey.pem</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Now, Let’s Encrypt’s certificates are valid for 90 days… You’ll want to setup a crob job to automate the renewal process… To do that, open crontab and add the entry below:</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo crontab -e</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then add the line below and save…</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">0 1 * * * /usr/bin/certbot renew >> /var/log/letsencrypt/renew.log</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Save and you’re done!</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">With Let’s Encrypt installed, reopen Nginx VirtualHost file created above and add Let’s Encrypt configurations to secure your website.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Run the commands below open the file.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #edf2f7; border: 0px; box-sizing: inherit; color: #212529; display: block; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo nano /etc/nginx/sites-available/moodle</code></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then add the highlighted lines to the VirtualHost file as shown below:</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;"><span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">server {
listen 80;
listen [::]:80;
server_name *.example.com;
return 301 https://$host$request_uri;
}</span>
server {
<span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"> listen 443 ssl http2;
listen [::] 443 ssl http2;</span>
root /var/www/moodle;
index index.php index.html index.htm;
server_name <span style="border: 0px; box-sizing: inherit; color: magenta; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">example.com www.example.com</span>;
<span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">if ($host != "example.com") {
return 301 https://example.com$request_uri;
}</span>
<span class="has-inline-color has-light-purple-color" style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'TLS13+AESGCM+AES128:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_ecdh_curve X25519:sect571r1:secp521r1:secp384r1;</span>
client_max_body_size 100M;
autoindex off;
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/www/moodledata/;
}
location ~ [^/].php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">After the above, restart Nginx and PHP 7.4-FPM</p><pre class="wp-block-preformatted" style="background: rgb(237, 242, 247); border: 1px dashed rgb(235, 235, 235); box-sizing: inherit; color: #212529; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15.75px; margin-bottom: 2rem; margin-top: 0px; max-width: 100%; outline: 0px; overflow: auto; padding: 1rem; position: relative; vertical-align: baseline;">sudo systemctl reload nginx
sudo systemctl reload php7.4-fpm</pre><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Next, open your browser and browse to the server domain name. You should see Moodle setup wizard to complete. Please follow the wizard carefully.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><kbd style="background-color: #020202; border-radius: 2px; border: 0px; box-shadow: rgba(0, 0, 0, 0.25) 0px -1px 0px inset; box-sizing: inherit; color: white; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 16.2px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0.125rem 0.25rem; vertical-align: baseline;">https://example.com/</kbd></p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then follow the on-screen instructions.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Select the installation language, then click Next to continue.</p><figure class="wp-block-image size-large" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="Moodle Ubuntu setup" class="wp-image-19417" data-pagespeed-url-hash="2673251995" height="641" loading="lazy" sizes="(max-width: 793px) 100vw, 793px" src="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup.png.pagespeed.ic.WETVTcLGAA.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup.png.pagespeed.ic.WETVTcLGAA.webp 793w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup-300x242.png.pagespeed.ic.-JCNDDOPAo.webp 300w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup-768x621.png.pagespeed.ic.RY6xhnC0TB.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="793" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">On the next screen, choose a database drive [<strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MariaDB]</strong> and click Next to continue.</p><figure class="wp-block-image size-large" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="ubuntu moodle install" class="wp-image-19418" data-pagespeed-url-hash="223845577" height="643" loading="lazy" sizes="(max-width: 795px) 100vw, 795px" src="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_1.png.pagespeed.ic.6VDFZhV3jZ.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_1.png.pagespeed.ic.6VDFZhV3jZ.webp 795w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_1-300x243.png.pagespeed.ic.QSPIjx6Kwv.webp 300w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_1-768x621.png.pagespeed.ic.aZb8M8B9D5.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="795" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">On this screen, type in the database info you created above, including the database name, username and password.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Then click Next to continue.</p><figure class="wp-block-image size-large" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="Ubuntu install moodle" class="wp-image-19419" data-pagespeed-url-hash="518345498" height="737" loading="lazy" sizes="(max-width: 789px) 100vw, 789px" src="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_2.png.pagespeed.ic.O-iwfYlr1F.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_2.png.pagespeed.ic.O-iwfYlr1F.webp 789w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_2-300x280.png.pagespeed.ic.h-TzT83Ye4.webp 300w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_2-768x717.png.pagespeed.ic.rnyta6u3at.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="789" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Here is where you type in the admin username, create a password and other details.</p><figure class="wp-block-image size-large" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="Moodle wizard ubuntu" class="wp-image-19420" data-pagespeed-url-hash="812845419" height="738" loading="lazy" sizes="(max-width: 788px) 100vw, 788px" src="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_3.png.pagespeed.ic.iLLWvIbCai.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_3.png.pagespeed.ic.iLLWvIbCai.webp 788w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_3-300x281.png.pagespeed.ic.YKEWXH597J.webp 300w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_3-768x719.png.pagespeed.ic.uXqrVtf7uY.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="788" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">When you’re done, Moodle should be installed and ready to use. Login as admin and begin configuring your site.</p><figure class="wp-block-image size-large" style="background-color: white; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem;"><img alt="Ubuntu moodle setup" class="wp-image-19421" data-pagespeed-url-hash="1107345340" height="645" loading="lazy" sizes="(max-width: 933px) 100vw, 933px" src="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_4.png.pagespeed.ic.KUdnkbtuvW.webp" srcset="https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_4.png.pagespeed.ic.KUdnkbtuvW.webp 933w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_4-300x207.png.pagespeed.ic.y637IXxgN1.webp 300w, https://websiteforstudents.com/wp-content/uploads/2018/09/xmoodle_ubuntu_setup_4-768x531.png.pagespeed.ic.h7ffWJ51oT.webp 768w" style="border-radius: inherit; border: 0px; box-sizing: inherit; height: auto; max-width: 100%; vertical-align: middle;" width="933" /></figure><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">That’s it!</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Congratulation! You have successfully installed Moodle CMS on Ubuntu 18.04 | 20.04. If you find any error above, please use the comment form below to report it.</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Thanks,</p><p style="background-color: white; border: 0px; box-sizing: inherit; color: #3d3d3d; font-family: Roboto, sans-serif; font-size: 18px; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><br /></p><p style="background-color: white; border: 0px; box-sizing: inherit; margin: 0px 0px 2rem; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #3d3d3d; font-family: Roboto, sans-serif;"><span style="font-size: 18px;">https://websiteforstudents.com/how-to-install-moodle-on-ubuntu-20-04-18-04-with-nginx-and-lets-encrypt/</span></span></p>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-84347815405514836872020-10-05T07:10:00.001-07:002020-10-05T07:10:24.799-07:00Install Moodle di Ubuntu Server 20.04 LTS menggunakan LEMP Stack (Nginx, MariaDB, PHP)<p> <span style="background-color: white; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px;">Moodle merupakan CMS (Content Management System) yang sifatnya gratis dan berbentuk open-source. moodle mengusung konsep LMS (Learning Management System), moodle merupakan solusi yang bisa digunakan dalam suatu organisasi untuk menyelenggaran pendidikan secara daring.</span></p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Kali ini saya akan membahas bagaimana menginstalasi Moodle menggunakan konsep LEMP Stack (Nginx, Mariadb dan PHP). instalasi ini menggunakan komputer server virtual Ubuntu Server versi 20.04 LTS.</p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;"><span style="box-sizing: border-box; font-weight: 700;">Persiapan kebutuhan :</span></p><ul style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px;"><li style="box-sizing: border-box;">Ubuntu Server 20.04</li><li style="box-sizing: border-box;">Webserver (Apache/Nginx)</li><li style="box-sizing: border-box;">PHP 7.0 terbarukan</li><li style="box-sizing: border-box;">MySQL/MariaDB sebagai database server</li><li style="box-sizing: border-box;">perisapkan file <a href="https://download.moodle.org/releases/latest/" rel="noreferrer noopener" style="background-color: transparent; box-sizing: border-box; color: #3ba9d2; outline: none; text-decoration-line: none; transition: color 0.2s ease 0s;" target="_blank">moodle</a></li></ul><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Opsional, setelah temen-temen download file moodle.tgz baik dari OS manapun temen-temen dapat memindahkannya file tersebut ke server yang sudah temen-temen siapakan agar pada saat instal moodle temen-temen tidak membutuhkan waktu lama lagi. caranya sebagai berikut :</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">scp -p /Users/mac/Downloads/moodle-latest-39.tgz joko@192.168.100.80:/home/joko</code></pre><div class="google-auto-placed ap_container" style="background-color: white; box-sizing: border-box; clear: both; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; height: auto; text-align: center; width: 744.984px;"><ins class="adsbygoogle adsbygoogle-noablate" data-ad-client="ca-pub-8284760477877419" data-ad-format="auto" data-adsbygoogle-status="done" style="background-color: transparent; box-sizing: border-box; display: block; height: 0px; margin: auto;"><ins id="aswift_4_expand" style="background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 745px;"><ins id="aswift_4_anchor" style="background-color: transparent; border: none; box-sizing: border-box; display: block; height: 0px; margin: 0px; opacity: 0; overflow: hidden; padding: 0px; position: relative; visibility: visible; width: 745px;"><iframe allowfullscreen="true" allowtransparency="true" data-google-container-id="a!4" data-google-query-id="CK7NmdfPnewCFdchjwodOhQAfg" data-load-complete="true" frameborder="0" height="280" hspace="0" id="aswift_4" marginheight="0" marginwidth="0" name="aswift_4" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8284760477877419&output=html&h=280&adk=3671075076&adf=3345704324&w=745&fwrn=4&fwrnh=100&lmt=1601906751&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=3054666766&psa=1&guci=2.2.0.0.2.2.0.0&ad_type=text_image&format=745x280&url=https%3A%2F%2Fpanjat-it.com%2Finstall-moodle-di-ubuntu-server-20-04-lts-menggunakan-lemp-stack-nginx-mariadb-php%2F&flash=0&fwr=0&pra=3&rh=186&rw=744&rpe=1&resp_fmts=3&wgl=1&fa=27&tt_state=W3siaXNzdWVyT3JpZ2luIjoiaHR0cHM6Ly9hZHNlcnZpY2UuZ29vZ2xlLmNvbSIsInN0YXRlIjowfV0.&dt=1601906219037&bpp=2&bdt=2696&idt=3&shv=r20201001&cbv=r20190131&ptt=9&saldr=aa&abxe=1&cookie=ID%3D1db2957ba40585ac%3AT%3D1601906218%3AS%3DALNI_MYRm7BOiUnIiQUeVvW9bhhSLzvDew&prev_fmts=320x267%2C0x0%2C320x267&nras=2&correlator=7336463490682&frm=20&pv=1&ga_vid=636147086.1601906218&ga_sid=1601906218&ga_hid=371728551&ga_fc=0&iag=0&icsg=37558595583&dssz=24&mdo=0&mso=0&u_tz=-420&u_his=1&u_java=0&u_h=1080&u_w=1920&u_ah=1040&u_aw=1920&u_cd=24&u_nplug=3&u_nmime=4&adx=20&ady=1385&biw=1170&bih=876&scr_x=0&scr_y=0&eid=21067554%2C21066706&oid=3&pvsid=1158083823220394&pem=222&ref=https%3A%2F%2Fwww.google.com%2F&rx=0&eae=0&fc=384&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C0%2C0%2C1187%2C876&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=8320&bc=31&ifi=4&uci=a!4&btvi=2&fsb=1&xpc=0OlUrf066Y&p=https%3A//panjat-it.com&dtd=M" style="border-style: initial; border-width: 0px; box-sizing: border-box; height: 280px; left: 0px; position: absolute; top: 0px; width: 745px;" vspace="0" width="745"></iframe></ins></ins></ins></div><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">script di atas menandakan saya memindahkan file dari penyimpanan local komputer saya ke server yang sudah saya siapkan, dalam hal ini saya memindahkan file tersebut ke dalam direktori home</p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;"><span style="box-sizing: border-box; font-weight: 700;">Untuk teman-teman yang ingin mencobanya dapat mengikuti langkah berikut :</span></p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Cek IP Address server</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># ifconfig</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Login dengan menggunakan layanan SSH kemudian melakukan update pada sistem server</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">#ssh namaserver@IP_Address</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">contoh : ssh joko@192.168.100.50 kemudian masuk sebagai root admin dan melakukan update system</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo su
# sudo apt update && apt upgrade</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Setelah selesai selanjutnya <span style="box-sizing: border-box; font-weight: 700;">Installing Web Server</span></p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;"><span style="box-sizing: border-box; font-weight: 700;">Installing Webserver Apache</span> :</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt -y install apache2
# sudo ufw allow 'Apache'</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">setelah selesai restart Apache :</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo systemctl restart apache</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;"><span style="box-sizing: border-box; font-weight: 700;">Installing Webserver Nginx + MySQL + PHP</span></p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt install nginx mysql-server php-mysql php-gd php-intl php-xmlrpc php-soap php-cli php-zip php-mbstring php-curl php-xml php-pear php-bcmath php-fpm</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">langkah diatas apabila jika ingin mengunakan package tetapi jika ingin manual agar lebih rinci proses nya maka dapat mengikuti langkah berikut :</p><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;"><span style="box-sizing: border-box; font-weight: 700;">Installing Webserver Nginx</span></p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt install nginx</code></pre><p style="background-color: white; box-sizing: border-box; color: #6d7680; font-family: Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px 0px 20px; padding: 0px;">Setelah selesai instalasi selanjutnya kemudian memberhentikan layanan Nginx dan melakukan start dan Enable Nginx agar selalu berjalan pada boot.</p><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo systemctl stop nginx.service
# sudo systemctl start nginx.service
# sudo systemctl enable nginx.service</code></pre><pre class="wp-block-code" style="background: rgb(245, 245, 247); box-sizing: border-box; color: #6d7680; font-family: monospace, monospace; font-size: 16px; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">setelah itu cek apakah web server sudah diinstall dengan baik dengan cara ketik <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">http://localhost</code> atau ketikan <span style="box-sizing: border-box; font-weight: 700;">IP Address Server</span></p><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Installing MariaDB</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt install mariadb-server mariadb-client</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">setelah selesai melakukan install kemudian melakukan stop, start dan enable pada MariaDB agar dapat berjalan pada server boot.</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo systemctl stop mariadb.service
# sudo systemctl start mariadb.service
# sudo systemctl enable mariadb.service</code></pre><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"><br /></code></pre><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya adalah sedikit memberikan konfigurasi pada database server untuk menyelesaikan tahapan instalasinya.</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo mysql_secure_installation</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya ada memberikan isian jawaban pada tahap installing khusus jika akan memberikan password maka isikan password saja tetapi jika tidak akan memberikan password cukup tekan <span style="box-sizing: border-box; font-weight: 700;">Enter</span>.</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">Enter current password for root (enter for none): Just press the [Enter] key, as no password is set by default
Set root password? [Y/n]: Y
New password: Enter password (sukses)
Re-enter new password: Repeat password (sukses)
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y</code></pre><div class="google-auto-placed ap_container" style="background-color: white; box-sizing: border-box; clear: both; font-family: Helvetica, Arial, sans-serif; height: auto; text-align: center; white-space: normal; width: 744.984px;"><ins class="adsbygoogle adsbygoogle-noablate" data-ad-client="ca-pub-8284760477877419" data-ad-format="auto" data-adsbygoogle-status="done" style="background-color: transparent; box-sizing: border-box; display: block; height: 0px; margin: auto;"><ins id="aswift_7_expand" style="background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 745px;"><ins id="aswift_7_anchor" style="background-color: transparent; border: none; box-sizing: border-box; display: block; height: 0px; margin: 0px; opacity: 0; overflow: hidden; padding: 0px; position: relative; visibility: visible; width: 745px;"><iframe allowfullscreen="true" allowtransparency="true" data-google-container-id="a!7" data-google-query-id="CITcmtfPnewCFcqScAodWO0M8Q" data-load-complete="true" frameborder="0" height="280" hspace="0" id="aswift_7" marginheight="0" marginwidth="0" name="aswift_7" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8284760477877419&output=html&h=280&adk=3671075076&adf=3298823521&w=745&fwrn=4&fwrnh=100&lmt=1601906751&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=3054666766&psa=1&guci=2.2.0.0.2.2.0.0&ad_type=text_image&format=745x280&url=https%3A%2F%2Fpanjat-it.com%2Finstall-moodle-di-ubuntu-server-20-04-lts-menggunakan-lemp-stack-nginx-mariadb-php%2F&flash=0&fwr=0&pra=3&rh=186&rw=744&rpe=1&resp_fmts=3&wgl=1&fa=27&tt_state=W3siaXNzdWVyT3JpZ2luIjoiaHR0cHM6Ly9hZHNlcnZpY2UuZ29vZ2xlLmNvbSIsInN0YXRlIjowfV0.&dt=1601906219049&bpp=1&bdt=2707&idt=1&shv=r20201001&cbv=r20190131&ptt=9&saldr=aa&abxe=1&cookie=ID%3D1db2957ba40585ac%3AT%3D1601906218%3AS%3DALNI_MYRm7BOiUnIiQUeVvW9bhhSLzvDew&prev_fmts=320x267%2C0x0%2C320x267%2C745x280%2C745x280%2C745x280&nras=5&correlator=7336463490682&frm=20&pv=1&ga_vid=636147086.1601906218&ga_sid=1601906218&ga_hid=371728551&ga_fc=0&iag=0&icsg=174997549055&dssz=25&mdo=0&mso=0&u_tz=-420&u_his=1&u_java=0&u_h=1080&u_w=1920&u_ah=1040&u_aw=1920&u_cd=24&u_nplug=3&u_nmime=4&adx=20&ady=4642&biw=1170&bih=876&scr_x=0&scr_y=0&eid=21067554%2C21066706&oid=3&pvsid=1158083823220394&pem=222&ref=https%3A%2F%2Fwww.google.com%2F&rx=0&eae=0&fc=384&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C0%2C0%2C1187%2C876&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=8320&bc=31&ifi=7&uci=a!7&btvi=5&fsb=1&xpc=6rThMdInkW&p=https%3A//panjat-it.com&dtd=M" style="border-style: initial; border-width: 0px; box-sizing: border-box; height: 280px; left: 0px; position: absolute; top: 0px; width: 745px;" vspace="0" width="745"></iframe></ins></ins></ins></div><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Pada kasus diatas saya coba memberikan password database server ‘sukses’setelah oke silahkan dicek dengan menuliskan code berikut untuk melihat apakah installasi mariadb telah berhasil : <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">sudo mysql -u root -p</code></p><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;"># Optional</span><br style="box-sizing: border-box;" />konfigurasi file yang berada pada <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf</code> dengan menambahkan code tepat dibawah baris code <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">#skip-external-locking</code> kemudian tambahkan code sehingga hasilnya akan menajdi seperti ini</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">skip-external-locking
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix = on</code></pre><div class="google-auto-placed ap_container" style="background-color: white; box-sizing: border-box; clear: both; font-family: Helvetica, Arial, sans-serif; height: auto; text-align: center; white-space: normal; width: 744.984px;"><ins class="adsbygoogle adsbygoogle-noablate" data-ad-client="ca-pub-8284760477877419" data-ad-format="auto" data-adsbygoogle-status="done" style="background-color: transparent; box-sizing: border-box; display: block; height: 0px; margin: auto;"><ins id="aswift_8_expand" style="background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 745px;"><ins id="aswift_8_anchor" style="background-color: transparent; border: none; box-sizing: border-box; display: block; height: 0px; margin: 0px; opacity: 0; overflow: hidden; padding: 0px; position: relative; visibility: visible; width: 745px;"><iframe allowfullscreen="true" allowtransparency="true" data-google-container-id="a!8" data-google-query-id="CJbUmtfPnewCFYOScAodBVQNgw" data-load-complete="true" frameborder="0" height="280" hspace="0" id="aswift_8" marginheight="0" marginwidth="0" name="aswift_8" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8284760477877419&output=html&h=280&adk=3671075076&adf=2939561967&w=745&fwrn=4&fwrnh=100&lmt=1601906751&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=3054666766&psa=1&guci=2.2.0.0.2.2.0.0&ad_type=text_image&format=745x280&url=https%3A%2F%2Fpanjat-it.com%2Finstall-moodle-di-ubuntu-server-20-04-lts-menggunakan-lemp-stack-nginx-mariadb-php%2F&flash=0&fwr=0&pra=3&rh=186&rw=744&rpe=1&resp_fmts=3&wgl=1&fa=27&tt_state=W3siaXNzdWVyT3JpZ2luIjoiaHR0cHM6Ly9hZHNlcnZpY2UuZ29vZ2xlLmNvbSIsInN0YXRlIjowfV0.&dt=1601906219052&bpp=1&bdt=2710&idt=1&shv=r20201001&cbv=r20190131&ptt=9&saldr=aa&abxe=1&cookie=ID%3D1db2957ba40585ac%3AT%3D1601906218%3AS%3DALNI_MYRm7BOiUnIiQUeVvW9bhhSLzvDew&prev_fmts=320x267%2C0x0%2C320x267%2C745x280%2C745x280%2C745x280%2C745x280&nras=6&correlator=7336463490682&frm=20&pv=1&ga_vid=636147086.1601906218&ga_sid=1601906218&ga_hid=371728551&ga_fc=0&iag=0&icsg=174997549055&dssz=25&mdo=0&mso=0&u_tz=-420&u_his=1&u_java=0&u_h=1080&u_w=1920&u_ah=1040&u_aw=1920&u_cd=24&u_nplug=3&u_nmime=4&adx=20&ady=5319&biw=1170&bih=876&scr_x=0&scr_y=0&eid=21067554%2C21066706&oid=3&pvsid=1158083823220394&pem=222&ref=https%3A%2F%2Fwww.google.com%2F&rx=0&eae=0&fc=384&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C0%2C0%2C1187%2C876&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=8320&bc=31&ifi=8&uci=a!8&btvi=6&fsb=1&xpc=XtJoHnVU4M&p=https%3A//panjat-it.com&dtd=M" style="border-style: initial; border-width: 0px; box-sizing: border-box; height: 280px; left: 0px; position: absolute; top: 0px; width: 745px;" vspace="0" width="745"></iframe></ins></ins></ins></div><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Setelah selesai menambahkan code diatas kemudian lakukan restart mariaDB dengan code ini <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo systemctl restart mariadb.service</code> atau jika tidak melakukan konfigurasi ini langsung ke tahap pembuatan database Moodle saja.</p><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">elanjutnya membuat database Moodle *Latihan</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo mysql -u root -p
CREATE DATABASE moodle;
ALTER DATABASE moodle charset=utf8mb4;
ALTER DATABASE moodle CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
GRANT ALL ON root.* to moodle@localhost;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY 'moodle';
GRANT ALL ON moodle.* TO moodle identified by 'moodle';
FLUSH PRIVILEGES;
EXIT;</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Kalau Operasional lapangan</span><br style="box-sizing: border-box;" />setup root password (jika diperlukan saja)</p><div class="google-auto-placed ap_container" style="background-color: white; box-sizing: border-box; clear: both; font-family: Helvetica, Arial, sans-serif; height: auto; text-align: center; white-space: normal; width: 744.984px;"><ins class="adsbygoogle adsbygoogle-noablate" data-ad-client="ca-pub-8284760477877419" data-ad-format="auto" data-adsbygoogle-status="done" style="background-color: transparent; box-sizing: border-box; display: block; height: 0px; margin: auto;"><ins id="aswift_9_expand" style="background-color: transparent; border: none; box-sizing: border-box; display: inline-table; height: 0px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 745px;"><ins id="aswift_9_anchor" style="background-color: transparent; border: none; box-sizing: border-box; display: block; height: 0px; margin: 0px; opacity: 0; overflow: hidden; padding: 0px; position: relative; visibility: visible; width: 745px;"><iframe allowfullscreen="true" allowtransparency="true" data-google-container-id="a!9" data-google-query-id="CKXemtfPnewCFVlAnQkdBOYNXw" data-load-complete="true" frameborder="0" height="280" hspace="0" id="aswift_9" marginheight="0" marginwidth="0" name="aswift_9" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8284760477877419&output=html&h=280&adk=3671075076&adf=359853559&w=745&fwrn=4&fwrnh=100&lmt=1601906751&num_ads=1&rafmt=1&armr=3&sem=mc&pwprc=3054666766&psa=1&guci=2.2.0.0.2.2.0.0&ad_type=text_image&format=745x280&url=https%3A%2F%2Fpanjat-it.com%2Finstall-moodle-di-ubuntu-server-20-04-lts-menggunakan-lemp-stack-nginx-mariadb-php%2F&flash=0&fwr=0&pra=3&rh=186&rw=744&rpe=1&resp_fmts=3&wgl=1&fa=27&tt_state=W3siaXNzdWVyT3JpZ2luIjoiaHR0cHM6Ly9hZHNlcnZpY2UuZ29vZ2xlLmNvbSIsInN0YXRlIjowfV0.&dt=1601906219055&bpp=1&bdt=2713&idt=1&shv=r20201001&cbv=r20190131&ptt=9&saldr=aa&abxe=1&cookie=ID%3D1db2957ba40585ac%3AT%3D1601906218%3AS%3DALNI_MYRm7BOiUnIiQUeVvW9bhhSLzvDew&prev_fmts=320x267%2C0x0%2C320x267%2C745x280%2C745x280%2C745x280%2C745x280%2C745x280&nras=7&correlator=7336463490682&frm=20&pv=1&ga_vid=636147086.1601906218&ga_sid=1601906218&ga_hid=371728551&ga_fc=0&iag=0&icsg=174997549055&dssz=25&mdo=0&mso=0&u_tz=-420&u_his=1&u_java=0&u_h=1080&u_w=1920&u_ah=1040&u_aw=1920&u_cd=24&u_nplug=3&u_nmime=4&adx=20&ady=6124&biw=1170&bih=876&scr_x=0&scr_y=0&eid=21067554%2C21066706&oid=3&pvsid=1158083823220394&pem=222&ref=https%3A%2F%2Fwww.google.com%2F&rx=0&eae=0&fc=384&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C0%2C0%2C1187%2C876&vis=1&rsz=%7C%7Cs%7C&abl=NS&fu=8320&bc=31&ifi=9&uci=a!9&btvi=7&fsb=1&xpc=ern7IXt0Uv&p=https%3A//panjat-it.com&dtd=M" style="border-style: initial; border-width: 0px; box-sizing: border-box; height: 280px; left: 0px; position: absolute; top: 0px; width: 745px;" vspace="0" width="745"></iframe></ins></ins></ins></div><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Setup database operasional dengan username & password akses</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># mysql -u root -p
Enter password:
create database moodle;
ALTER DATABASE moodle charset=utf8mb4;
ALTER DATABASE moodle CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
grant INSERT,SELECT on root.* to moodle@localhost;
grant CREATE, INSERT, SELECT, DELETE, UPDATE on moodle.* to moodle@localhost identified by "moodlepassword";
grant CREATE, INSERT, SELECT, DELETE, UPDATE on moodle.* to moodle identified by "moodlepassword";
exit</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya melakukan restart MariaDB</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">/etc/init.d/mysql restart</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Install PHP 7.4 dan Extension</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt install -y software-properties-common
# sudo add-apt-repository ppa:ondrej/php
# sudo apt update</code></pre><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo apt install -y php7.4-fpm php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl php7.4-opcache php7.4-dev php7.4-imap php7.4-imagick \
imagemagick git zip libgd-dev</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya melakukan edit pada <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">/etc/php/7.4/fpm/php.ini</code> kemudian cari dan rubah konfigurasi yang terdapat dibawah sesuaikan dengan kebutuhan setelah itu restart service. (cgi.fix_pathinfo dihilangkan ; kemudian 1 dirubah menajdi 0)</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo vi /etc/php/7.4/fpm/php.ini</code></pre><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">short_open_tag = On (Optional)
file_uploads = On
allow_url_fopen = On
upload_max_filesize = 100M
post_max_size = 48M
memory_limit = 512M
max_execution_time = 380
max_input_vars = 3000
max_input_time = 1000
cgi.fix_pathinfo = 0</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Install Moodle</span></p><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Download Language Pack & Moodle</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># download Lang
cd /usr/local/src
wget https://download.moodle.org/download.php/direct/langpack/3.8/id.zip
# download Moodle
cd /usr/local/src
wget https://download.moodle.org/download.php/direct/stable38/moodle-latest-38.tgz</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Install Language Pack</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">cd /usr/local/src
mkdir -p /var/moodledata/lang
cp id.zip /var/moodledata/lang
cd /var/moodledata/lang
unzip id.zip
chmod -Rf 777 /var/moodledata/lang/
chown -Rf www-data:www-data /var/moodledata/lang/</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Install Moodle</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">cd /usr/local/src
tar -zxvf moodle-latest-38.tgz
mv moodle /var/www/html/moodle</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Melakukan konfigurasi modifkasi directory permission</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo chown -R www-data:www-data /var/www/html/moodle/
# sudo chmod -R 755 /var/www/html/moodle/
# sudo chmod -Rf 777 /var/moodledata/
# sudo chown www-data /var/moodledata</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;"><span style="box-sizing: border-box; font-weight: 700;">Konfigurasi Ngin</span>x<br style="box-sizing: border-box;" />Untuk dapat melayani Moodle pada Webserver Nginx maka harus membuat file konfigurasi Blok Server Nginx dibawah kemudian simpan dan keluar.</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo nano /etc/nginx/sites-available/moodle</code></pre><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">server {
listen 80;
listen [::]:80;
root /var/www/html/moodle;
index index.php index.html index.htm;
server_name 192.168.100.67; #set ke IP Address Server Kamu
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/www/html/moodledata/;
}
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya <span style="box-sizing: border-box; font-weight: 700;">mengaktifkan Blok Server</span></p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo ln -s /etc/nginx/sites-available/moodle /etc/nginx/sites-enabled/</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Sesuai selesai mengaktifkan Block Server kemudian dicek apakah sudah berjalan dengan baik dengan memberikan perintah <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;">sudo nginx -t</code><br style="box-sizing: border-box;" />Lalu kemudian restart Nginx</p><pre class="wp-block-code" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; line-height: 1.7; margin-bottom: 20px; overflow: auto; padding: 20px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: monospace, monospace; font-size: 1em; padding: 2px;"># sudo systemctl restart nginx</code></pre><p style="background-color: white; box-sizing: border-box; font-family: Helvetica, Arial, sans-serif; margin: 0px 0px 20px; padding: 0px; white-space: normal;">Selanjutnya tinggal selesaikan tahap instalasi, untuk Moodle directory biarkan saja dan untuk konfigurasi Data directory dirubah menjadi <code style="background: rgb(245, 245, 247); box-sizing: border-box; font-family: monospace, monospace; padding: 2px;">/var/moodledata</code> </p></code></pre></code></pre>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-60653434939735725302020-07-03T08:01:00.002-07:002020-07-16T17:41:37.311-07:00Setting Moodle di Ubuntu 20.041. Allowing SSH root login on Ubuntu 20.04 step by step instructions<br />
Open the /etc/ssh/sshd_config file with administrative privileges and change the following line:<br />
<br />
FROM:<br />
#PermitRootLogin prohibit-password<br />
TO:<br />
PermitRootLogin yes<br />
<br />
The quick way to do this job could be just to simply use the sed command as shown below:<br />
<br />
$ sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config<br />
<br />
Restart SSH service:<br />
<br />
$ sudo systemctl restart ssh<br />
<br />
<br />
2.<br />
<h1 class="postitle entry-title" style="background-color: #f9f9f9; color: #333333; font-family: "Fira Sans"; line-height: 1.7em; margin-top: 0px; overflow-wrap: break-word;">
How to Install LEMP Stack on Ubuntu 20.04 Server/Desktop</h1>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
This tutorial is going to show you how to install LEMP stack (Nginx, MariaDB, and PHP7.4) on <a href="https://www.linuxbabe.com/ubuntu/upgrade-ubuntu-18-04-to-ubuntu-20-04" rel="noopener noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">Ubuntu 20.04</a>. A software stack is a set of software tools bundled together. LEMP stands for Linux, Nginx (Engine-X), MariaDB/MySQL and PHP, all of which are open source and free to use. It is the most common software stack that powers dynamic websites and web applications. Linux is the operating system; Nginx is the web server; MariaDB/MySQL is the database server and PHP is the server-side scripting language responsible for generating dynamic web pages.</div>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Prerequisites</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
To follow this tutorial, you need an Ubuntu 20.04 OS running on your local computer or on a remote server.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If you are looking for a VPS (Virtual Private Server), then you can register an account at DigitalOcean via <a href="https://www.linuxbabe.com/digitalocean" rel="noopener nofollow noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">this special link</a> to get $50 free credit. (For new users only). If you are already a DigitalOcean user, then you can register an account on Vultr via <a href="https://www.linuxbabe.com/vultr" rel="noopener nofollow noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">this special link</a> to get $50 free credit (for new users only).</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
And if you need to set up LEMP stack with a domain name, I recommend buying domain names from <a href="https://www.linuxbabe.com/namecheap" rel="noopener nofollow noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">NameCheap</a> because the price is low and they give whois privacy protection free for life.</div>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 1: Update Software Packages</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Before we install the LEMP stack, it’s a good practice to update repository and software packages by running the following commands on your Ubuntu 20.04 OS.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo apt update
sudo apt upgrade</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 2: Install Nginx Web Server</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Nginx is a high-performance web server and very popular these days. It also can be used as a reverse proxy and caching server. Enter the following command to install Nginx Web server.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo apt install nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
After it’s installed, we can enable Nginx to auto-start at boot time by running the following command.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl enable nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Then start Nginx with this command:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl start nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Now check out its status.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl status nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Output:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;"><span style="color: green;">●</span> nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; <strong>enabled</strong>; vendor preset: enabled)
Active: <span style="color: green;">active (running)</span> since Fri 2020-04-10 14:11:43 UTC; 3s ago
Docs: man:nginx(8)
Process: 8533 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 8545 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 8549 (nginx)
Tasks: 3 (limit: 9451)
<strong>Memory: 3.9M</strong>
CGroup: /system.slice/nginx.service
├─8549 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─8550 nginx: worker process
└─8551 nginx: worker process
</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
“<strong>Enabled</strong>” indicates that auto-start at boot time is enabled and we can see that Nginx is running. You can also see how much RAM Nginx is using from the output. If the above command doesn’t immediately quit after running. You need to press “<strong>q</strong>” to make it quit.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Check Nginx version.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">nginx -v</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Output:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">nginx version: nginx/1.17.9 (Ubuntu)</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Now type in the public IP address of your Ubuntu 20.04 server in the browser address bar. You should see the “Welcome to Nginx” Web page, which means Nginx Web server is running properly. If you are installing LEMP on your local Ubuntu 20.04 computer, then type <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">127.0.0.1</code> or <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">localhost</code> in the browser address bar.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
<img alt="Ubuntu-20.04-LEMP" class="aligncenter wp-image-19780 size-full" height="312" sizes="(max-width: 1100px) 100vw, 1100px" src="https://www.linuxbabe.com/wp-content/uploads/2020/04/Ubuntu-20.04-LEMP.png" srcset="https://www.linuxbabe.com/wp-content/uploads/2020/04/Ubuntu-20.04-LEMP.png 1100w, https://www.linuxbabe.com/wp-content/uploads/2020/04/Ubuntu-20.04-LEMP-400x113.png 400w, https://www.linuxbabe.com/wp-content/uploads/2020/04/Ubuntu-20.04-LEMP-661x187.png 661w, https://www.linuxbabe.com/wp-content/uploads/2020/04/Ubuntu-20.04-LEMP-640x182.png 640w" style="display: block; height: auto; margin: 5px auto; max-width: 100%;" width="1100" /></div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If the connection is refused or failed to complete, there might be a firewall preventing incoming requests to TCP port 80. If you are using iptables firewall, then you need to run the following command to open TCP port 80.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If you are using UFW firewall, then run this command to open TCP port 80.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo ufw allow http</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Finally, we need to make <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">www-data</code> (Nginx user) as the owner of web directory. By default, it’s owned by the root user.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo chown www-data:www-data /usr/share/nginx/html -R</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 3: Install MariaDB Database Server</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
MariaDB is a drop-in replacement for MySQL. It is developed by former members of MySQL team who are concerned that Oracle might turn MySQL into a closed-source product. Enter the following command to install MariaDB on Ubuntu 20.04.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo apt install mariadb-server mariadb-client</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
After it’s installed, MariaDB server should be automatically stared. Use <strong>systemctl</strong> to check its status.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">systemctl status mariadb</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Output:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;"><span style="color: green;">●</span> mariadb.service - MariaDB 10.3.22 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; <strong>enabled</strong>; vendor preset: enabled)
Active: <span style="color: green;">active (running)</span> since Fri 2020-04-10 14:19:16 UTC; 18s ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 9161 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 31 (limit: 9451)
Memory: 64.7M
CGroup: /system.slice/mariadb.service
└─9161 /usr/sbin/mysqld
</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If it’s not running, start it with this command:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl start mariadb</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
To enable MariaDB to automatically start at boot time, run</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl enable mariadb</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Now run the post installation security script.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo mysql_secure_installation</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
When it asks you to enter MariaDB root password, press Enter key as the root password isn’t set yet. Then enter <strong>y</strong> to set the root password for MariaDB server.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
<img alt="ubuntu 20.04 install LEMP stack" class="aligncenter wp-image-19781 size-full" height="397" sizes="(max-width: 734px) 100vw, 734px" src="https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-install-LEMP-stack.png" srcset="https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-install-LEMP-stack.png 734w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-install-LEMP-stack-400x216.png 400w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-install-LEMP-stack-661x358.png 661w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-install-LEMP-stack-640x346.png 640w" style="display: block; height: auto; margin: 5px auto; max-width: 100%;" width="734" /></div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Next, you can press Enter to answer all remaining questions, which will remove anonymous user, disable remote root login and remove test database. This step is a basic requirement for MariaDB database security. (Notice that Y is capitalized, which means it is the default answer. )</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
<img alt="How-to-Install-LEMP-stack-on-Ubuntu-20.04" class="aligncenter wp-image-19782 size-full" height="681" sizes="(max-width: 734px) 100vw, 734px" src="https://www.linuxbabe.com/wp-content/uploads/2020/04/How-to-Install-LEMP-stack-on-Ubuntu-20.04.png" srcset="https://www.linuxbabe.com/wp-content/uploads/2020/04/How-to-Install-LEMP-stack-on-Ubuntu-20.04.png 734w, https://www.linuxbabe.com/wp-content/uploads/2020/04/How-to-Install-LEMP-stack-on-Ubuntu-20.04-236x219.png 236w, https://www.linuxbabe.com/wp-content/uploads/2020/04/How-to-Install-LEMP-stack-on-Ubuntu-20.04-388x360.png 388w, https://www.linuxbabe.com/wp-content/uploads/2020/04/How-to-Install-LEMP-stack-on-Ubuntu-20.04-640x594.png 640w" style="display: block; height: auto; margin: 5px auto; max-width: 100%;" width="734" /></div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
By default, the MaraiDB package on Ubuntu uses <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">unix_socket</code> to authenticate user login, which basically means you can use username and password of the OS to log into MariaDB console. So you can run the following command to login without providing MariaDB root password.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo mariadb -u root</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
To exit, run</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">exit;</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Check MariaDB server version information.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">mariadb --version</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
As you can see, we have installed MariaDB 10.3.22.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">mariadb Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 4: Install PHP7.4</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
PHP7.4 is included in Ubuntu 20.04 repository and has a minor performance improvement over PHP7.3. Enter the following command to install PHP7.4 and some common extensions.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo apt install php7.4 php7.4-fpm php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
PHP extensions are commonly needed for content management systems (CMS) like <a href="https://www.linuxbabe.com/tag/wordpress" rel="noopener noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">WordPress</a>. For example, if your installation lacks <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">php7.4-xml</code>, then some of your WordPress site pages may be blank and you can find an error in Nginx error log like:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">PHP message: PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create()</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Installing these PHP extensions ensures that your CMS runs smoothly. Now start php7.4-fpm.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl start php7.4-fpm</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Enable auto-start at boot time.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl enable php7.4-fpm</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Check status:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">systemctl status php7.4-fpm</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Sample output:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;"><span style="color: green;">●</span> php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; <strong>enabled</strong>; vendor pr>
Active: <span style="color: green;">active (running)</span> since Fri 2020-04-10 14:40:26 UTC; 12s ago
Docs: man:php-fpm7.4(8)
Process: 21019 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /ru>
Main PID: 21012 (php-fpm7.4)
Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req>
Tasks: 3 (limit: 9451)
Memory: 9.4M
CGroup: /system.slice/php7.4-fpm.service
├─21012 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
├─21017 php-fpm: pool www
└─21018 php-fpm: pool www
</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If the above command doesn’t immediately quit after running. You need to press “<strong>q</strong>” to make it quit.</div>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 5: Create an Nginx Server Block</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
An Nginx server block is like a virtual host in Apache. We will not use the default server block because it’s inadequate to run PHP code and if we modify it, it becomes a mess. So remove the <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">default</code> symlink in <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">sites-enabled</code> directory by running the following command. (It’s still available as <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">/etc/nginx/sites-available/default</code>.)</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo rm /etc/nginx/sites-enabled/default</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Then use a command-line text editor like Nano to create a brand new server block file under <strong>/etc/nginx/conf.d/</strong> directory.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo nano /etc/nginx/conf.d/default.conf</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Paste the following text into the file. The following snippet will make Nginx listen on IPv4 port 80 and IPv6 port 80 with a catch-all server name.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html/;
index index.php index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
# A long browser cache lifetime can speed up repeat visits to your page
location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
access_log off;
log_not_found off;
expires 360d;
}
# disable access to hidden files
location ~ /\.ht {
access_log off;
log_not_found off;
deny all;
}
}</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Save and close the file. (To save a file in Nano text editor, press <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">Ctrl+O</code>, then press <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">Enter</code> to confirm. To exit, press <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">Ctrl+X</code>.)</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Then test Nginx configurations.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo nginx -t</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If the test is successful, reload Nginx.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl reload nginx</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Step 6: Test PHP</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
To test PHP-FPM with Nginx Web server, we need to create a <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">info.php</code> file in the webroot directory.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo nano /usr/share/nginx/html/info.php</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Paste the following PHP code into the file.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;"></pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Save and close the file. Now in the browser address bar, enter <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">server-ip-address/info.php</code>. Replace <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">sever-ip-address</code> with your actual IP. If you follow this tutorial on your local computer, then type <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">127.0.0.1/info.php</code> or <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">localhost/info.php</code>.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
You should see your server’s PHP information. This means PHP scripts can run properly with Nginx web server.</div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
<img alt="ubuntu 20.04 nginx php 7.4" class="aligncenter wp-image-19783 size-full" height="626" sizes="(max-width: 1010px) 100vw, 1010px" src="https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-nginx-php-7.4.png" srcset="https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-nginx-php-7.4.png 1010w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-nginx-php-7.4-353x219.png 353w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-nginx-php-7.4-581x360.png 581w, https://www.linuxbabe.com/wp-content/uploads/2020/04/ubuntu-20.04-nginx-php-7.4-640x397.png 640w" style="display: block; height: auto; margin: 5px auto; max-width: 100%;" width="1010" /></div>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Congrats! You have successfully installed Nginx, MariaDB and PHP7.4 on Ubuntu 20.04. For your server’s security, you should delete <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">info.php</code> file now to prevent hacker seeing it.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo rm /usr/share/nginx/html/info.php</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Troubleshooting Tip</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If you encounter errors, you can check the Nginx error log (<code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">/var/log/nginx/error.log</code>) to find out what’s wrong.</div>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Nginx Automatic Restart</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
If for any reason your Nginx process is killed, you need to run the following command to restart it.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl restart nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Instead of manually typing this command, we can make Nginx automatically restart by editing the <code style="background: rgb(222, 222, 222); font-family: "Roboto Mono", monospace; font-size: 15px; padding: 1px;">nginx.service</code> systemd service unit. To override the default systemd service configuration, we create a separate directory.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo mkdir -p /etc/systemd/system/nginx.service.d/</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Then create a file under this directory.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo nano /etc/systemd/system/nginx.service.d/restart.conf</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Add the following lines in the file, which will make Nginx automatically restart 5 seconds after a failure is detected.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">[Service]
Restart=always
RestartSec=5s</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Save and close the file. Then reload systemd.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo systemctl daemon-reload</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
To check if this would work, kill Nginx with:</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">sudo pkill nginx</pre>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
Then check Nginx status. You will find Nginx automatically restarted.</div>
<pre style="background: rgba(0, 0, 0, 0.03); border-left: 4px solid rgba(0, 0, 0, 0.1); font-family: "Roboto Mono", monospace; font-size: 16px; overflow-wrap: break-word; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-all;">systemctl status nginx</pre>
<h2 style="background-color: #f9f9f9; font-family: "Fira Sans"; line-height: 1.7em;">
Next Step</h2>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
I hope this tutorial helped you <strong>install LEMP stack on Ubuntu 20.04 LTS</strong>. You may also want to install phpMyAdmin, which is a free and open-source web-based database management tool.</div>
<ul style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
<li><a href="https://www.linuxbabe.com/ubuntu/install-phpmyadmin-nginx-lemp-ubuntu-20-04" rel="noopener noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">How to Install phpMyAdmin with Nginx (LEMP) on Ubuntu 20.04 LTS</a></li>
</ul>
<div style="background-color: #f9f9f9; font-family: "Fira Sans"; font-size: 16px;">
As always, if you found this post useful, then <a href="https://newsletter.linuxbabe.com/subscription/wkeY5d6pg" rel="noopener noreferrer" style="border-bottom: 1px solid rgb(30, 115, 190); color: #1e73be; text-decoration-line: none;" target="_blank">subscribe to our free newsletter</a> to get more tips and tricks. Take care 🙂</div>
<br />
GRANT ALL PRIVILEGES ON *.* TO 'superadmin'@'localhost' IDENTIFIED BY 'very_strong_password';Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-43062054758664908072017-11-01T19:47:00.001-07:002017-11-01T19:47:13.583-07:00Serba Serbi Ubuntu Server 16.04<div style="background-color: white; box-sizing: inherit; margin: 0px 0px -10px; text-rendering: optimizeLegibility;">
<span style="color: #333333; font-family: "open sans"; font-size: xx-small;">http://iblogger.web.id/post/mengubah-password-root-super-user/129/webq/</span></div>
<div>
<span style="color: #333333; font-family: "open sans";"><span style="font-size: 27.36px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "open sans";"><span style="font-size: 27.36px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "open sans";"><span style="font-size: 27.36px;">https://www.digitalocean.com/community/tutorials/how-to-install-webmin-on-ubuntu-16-04</span></span></div>
<div>
<span style="color: #333333; font-family: "open sans";"><span style="font-size: 27.36px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "open sans";"><span style="font-size: 27.36px;"><br /></span></span></div>
<h2 itemprop="name" style="background-color: white; box-sizing: inherit; color: #333333; font-family: "Open Sans"; font-size: 1.71rem; margin: 0px 0px -10px; text-rendering: optimizeLegibility;">
</h2>
<h2 itemprop="name" style="background-color: white; box-sizing: inherit; color: #333333; font-family: "Open Sans"; font-size: 1.71rem; margin: 0px 0px -10px; text-rendering: optimizeLegibility;">
Enable SSH root login on Ubuntu 16.04 Xenial Xerus Linux Server/Desktop</h2>
<div>
<br /></div>
<div>
<div class="g-grid" style="box-sizing: inherit; color: #757575; display: flex; flex-flow: row wrap; font-family: "Open Sans"; font-size: 14.4px; list-style: none; margin: 0px; padding: 0px; text-rendering: optimizeSpeed;">
<div class="g-block size-100" style="-webkit-box-flex: 1; box-sizing: inherit; flex: 0 1 100%; max-width: 100%; min-height: 0px; min-width: 0px; width: 804px;">
<div class="g-content" style="box-sizing: inherit; margin: 0.625rem; padding: 0.938rem;">
<div class="platform-content row-fluid" style="box-sizing: inherit; width: 754px;">
<div class="span12" style="box-sizing: border-box; float: left; margin-left: 0px; min-height: 30px; width: 754px;">
<br />
<article class="item item-page" itemscope="" itemtype="https://schema.org/Article" style="box-sizing: inherit;"><div class="g-article-header" style="border-bottom: 1px solid rgb(239, 239, 239); box-sizing: inherit; padding: 0px 0px 25px; position: relative;">
<div class="article-position" style="box-sizing: inherit; margin-bottom: -5px; margin-top: 5px; position: relative;">
<center style="box-sizing: inherit;">
<div data-google-query-id="CIOl5vrnntcCFRUPaAodliEC6A" id="div-gpt-ad-1407836025306-0" style="box-sizing: inherit;">
<div id="google_ads_iframe_/53015287/linuxconfig.org_d_728x90_1_0__container__" style="border: 0pt none; box-sizing: inherit;">
<iframe frameborder="0" height="90" id="google_ads_iframe_/53015287/linuxconfig.org_d_728x90_1_0" marginheight="0" marginwidth="0" name="google_ads_iframe_/53015287/linuxconfig.org_d_728x90_1_0" scrolling="no" style="border-style: initial; border-width: 0px; box-sizing: inherit; max-width: 100%; vertical-align: bottom;" title="3rd party ad content" width="728"></iframe></div>
</div>
</center>
</div>
</div>
<div itemprop="articleBody" style="box-sizing: inherit;">
The following config will guide you through the process of enabling SSH root login on Ubuntu 16.04 Xenial Xerus Linux Server or Desktop. This guide assumes that you are in possession of root password and are able to login directly on your system as root user. Use the following guide, if you do not have a <a href="https://linuxconfig.org/how-to-login-as-root-user-on-ubuntu-xenial-xerus-16-04-linux-desktop" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root's user password</a>.<br />
<br style="box-sizing: inherit;" />
By default the root's ssh remote shell access is denied by default. Any attempt to remote login as root will result in <code style="background: rgb(250, 250, 250); border-radius: 0.1875rem; border: 1px solid rgb(239, 239, 239); box-sizing: inherit; color: darkred; font-family: "Courier New", Courier, monospace, sans-serif; font-size: 0.81rem; padding: 2px 4px; vertical-align: bottom; white-space: nowrap;">Permission denied</code> message:<br />
<pre style="background: rgb(252, 252, 252); border-color: rgb(239, 239, 239) rgb(239, 239, 239) rgb(239, 239, 239) rgb(2, 176, 239); border-image: initial; border-radius: 0.1875rem; border-style: solid; border-width: 1px 1px 1px 5px; box-sizing: inherit; color: black; font-family: Menlo, Monaco, monospace; font-size: 0.81rem; height: auto; line-height: 1.15; margin-bottom: 1.7em; margin-left: 0.3em; margin-top: 1.7em; overflow: auto; padding: 0.938rem; word-break: normal !important; word-wrap: normal !important;">$ ssh <span id="cloak1cf555b00f3faa054d0bb8f66fb9d46a" style="box-sizing: inherit;"><a href="mailto:root@10.0.0.55" style="background: transparent; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root@10.0.0.55</a></span>
<span id="cloak4bd9ce72fbd2e0da71e847ba50b88243" style="box-sizing: inherit;"><a href="mailto:root@10.0.0.55" style="background: transparent; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root@10.0.0.55</a></span>'s password:
Permission denied, please try again.
<span id="cloak04052120db8ad04e58585eaffaf55f37" style="box-sizing: inherit;"><a href="mailto:root@10.0.0.55" style="background: transparent; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root@10.0.0.55</a></span>'s password:
</pre>
In order to enable root ssh login on Ubuntu 16.04 Xenial Xerus Linux run the following command:<br />
<pre style="background: rgb(252, 252, 252); border-color: rgb(239, 239, 239) rgb(239, 239, 239) rgb(239, 239, 239) rgb(2, 176, 239); border-image: initial; border-radius: 0.1875rem; border-style: solid; border-width: 1px 1px 1px 5px; box-sizing: inherit; color: black; font-family: Menlo, Monaco, monospace; font-size: 0.81rem; height: auto; line-height: 1.15; margin-bottom: 1.7em; margin-left: 0.3em; margin-top: 1.7em; overflow: auto; padding: 0.938rem; word-break: normal !important; word-wrap: normal !important;">$ sudo sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config
</pre>
or manually open sshd configuration file <code style="background: rgb(250, 250, 250); border-radius: 0.1875rem; border: 1px solid rgb(239, 239, 239); box-sizing: inherit; color: darkred; font-family: "Courier New", Courier, monospace, sans-serif; font-size: 0.81rem; padding: 2px 4px; vertical-align: bottom; white-space: nowrap;">/etc/ssh/sshd_config</code> and change line:<br />
<pre style="background: rgb(252, 252, 252); border-color: rgb(239, 239, 239) rgb(239, 239, 239) rgb(239, 239, 239) rgb(2, 176, 239); border-image: initial; border-radius: 0.1875rem; border-style: solid; border-width: 1px 1px 1px 5px; box-sizing: inherit; color: black; font-family: Menlo, Monaco, monospace; font-size: 0.81rem; height: auto; line-height: 1.15; margin-bottom: 1.7em; margin-left: 0.3em; margin-top: 1.7em; overflow: auto; padding: 0.938rem; word-break: normal !important; word-wrap: normal !important;">FROM:
PermitRootLogin prohibit-password
TO:
PermitRootLogin yes
</pre>
Once you have made the above configuration change restart ssh daemon:<br />
<pre style="background: rgb(252, 252, 252); border-color: rgb(239, 239, 239) rgb(239, 239, 239) rgb(239, 239, 239) rgb(2, 176, 239); border-image: initial; border-radius: 0.1875rem; border-style: solid; border-width: 1px 1px 1px 5px; box-sizing: inherit; color: black; font-family: Menlo, Monaco, monospace; font-size: 0.81rem; height: auto; line-height: 1.15; margin-bottom: 1.7em; margin-left: 0.3em; margin-top: 1.7em; overflow: auto; padding: 0.938rem; word-break: normal !important; word-wrap: normal !important;">$ sudo systemctl restart sshd
</pre>
After you restart sshd daemon you will be able to remotely login as a root user:<br />
<pre style="background: rgb(252, 252, 252); border-color: rgb(239, 239, 239) rgb(239, 239, 239) rgb(239, 239, 239) rgb(2, 176, 239); border-image: initial; border-radius: 0.1875rem; border-style: solid; border-width: 1px 1px 1px 5px; box-sizing: inherit; color: black; font-family: Menlo, Monaco, monospace; font-size: 0.81rem; height: auto; line-height: 1.15; margin-bottom: 1.7em; margin-left: 0.3em; margin-top: 1.7em; overflow: auto; padding: 0.938rem; word-break: normal !important; word-wrap: normal !important;">$ ssh <span id="cloak1da1c21782e56cd245fe2c7e61ebe139" style="box-sizing: inherit;"><a href="mailto:root@10.0.0.55" style="background: transparent; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root@10.0.0.55</a></span>
<span id="cloak209a90737355692e15af918800f66d76" style="box-sizing: inherit;"><a href="mailto:root@10.0.0.55" style="background: transparent; box-sizing: inherit; color: #21c2f8; text-decoration-line: none; transition: color 0.2s;">root@10.0.0.55</a></span>'s password:
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)
* Documentation: https://help.ubuntu.com/
22 packages can be updated.
20 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
</pre>
<asciinema-player asciinema-player="" cols="100" poster="npt:0:11" rows="30" src="/asciinema/allow_root_login_ubuntu_16.04.json" style="box-sizing: inherit;"></asciinema-player><br />
<div class="asciinema-player-wrapper" data-reactroot="" style="box-sizing: inherit; outline: none; position: relative; text-align: center;" tabindex="-1">
<div class="asciinema-player asciinema-theme-asciinema" style="box-sizing: content-box; display: inline-block; max-width: 100%; overflow: hidden; padding: 0px; position: relative; text-align: left;">
<pre class="asciinema-terminal font-small" style="background: rgb(18, 19, 20); border-radius: 0px; border: 0.5em solid rgb(18, 19, 20); box-sizing: content-box; color: #cccccc; cursor: text; font-family: Consolas, Menlo, "Bitstream Vera Sans Mono", monospace, "Powerline Symbols"; font-size: 12px; height: 40em; line-height: 1.33333em; overflow: hidden; padding: 0px; width: 100ch; word-break: normal; word-wrap: normal;"><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># Package generated configuration file</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># See the sshd_config(5) manpage for details</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># What ports, IPs and protocols we listen for</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">Port</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">22</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># Use these options to restrict which interfaces/protocols sshd will bind to</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;">#ListenAddress ::</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;">#ListenAddress 0.0.0.0</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">Protocol</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">2</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># HostKeys for protocol version 2</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">HostKey</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> /etc/ssh/ssh_host_rsa_key </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">HostKey</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> /etc/ssh/ssh_host_dsa_key </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">HostKey</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> /etc/ssh/ssh_host_ecdsa_key </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">HostKey</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> /etc/ssh/ssh_host_ed</span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">25519</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;">_key </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;">#Privilege Separation is turned on for security</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">UsePrivilegeSeparation</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">yes</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># Lifetime and size of ephemeral version 1 server key</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">KeyRegenerationInterval</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">3600</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">ServerKeyBits</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">1024</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># Logging</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">SyslogFacility</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">AUTH</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">LogLevel</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">INFO</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;"># Authentication:</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">LoginGraceTime</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-1" style="box-sizing: inherit; color: #dd3c69; display: inline-block; height: 1.33333em; padding: 0px;">120</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">PermitRootLogin</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">yes</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-4" style="box-sizing: inherit; color: #26b0d7; display: inline-block; height: 1.33333em; padding: 0px;">#PermitRootLogin prohibit-password</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">StrictModes</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">yes</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span class="fg-130" style="box-sizing: inherit; color: #af5f00; display: inline-block; height: 1.33333em; padding: 0px;">RSAAuthentication</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span><span class="fg-6" style="box-sizing: inherit; color: #54e1b9; display: inline-block; height: 1.33333em; padding: 0px;">yes</span><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;"> </span></span><span class="line" style="box-sizing: inherit; display: block; height: 1.33333em; overflow: hidden; width: 1319.53px;"><span style="box-sizing: inherit; display: inline-block; height: 1.33333em; padding: 0px;">"/etc/ssh/sshd_config" 89L, 2563C written </span></span></pre>
<div class="control-bar" style="background-color: black; border-top: 1px solid rgb(34, 34, 34); box-sizing: content-box; color: #999999; height: 32px; line-height: 1; width: 671.766px;">
<span class="playback-button" style="box-sizing: inherit; cursor: pointer; display: block; float: left; font-size: 0px; height: 12px; padding: 10px; width: 12px;"><svg class="icon" version="1.1" viewbox="0 0 12 12"><path d="M1,0 L11,6 L1,12 Z"></path></svg></span><span class="timer" style="box-sizing: inherit; cursor: default; display: block; float: left; font-family: "helvetica" , "arial" , sans-serif; font-size: 11px; font-weight: bold; height: 32px; line-height: 32px; text-align: center; width: 50px;"><span class="time-elapsed" style="box-sizing: inherit; display: inline-block; font-size: inherit;">00:00</span></span><span class="fullscreen-button" style="box-sizing: inherit; cursor: pointer; display: block; float: right; font-size: 0px; height: 14px; padding: 9px; width: 14px;"><svg class="icon" version="1.1" viewbox="0 0 12 12"><path d="M12,0 L7,0 L9,2 L7,4 L8,5 L10,3 L12,5 Z"></path><path d="M0,12 L0,7 L2,9 L4,7 L5,8 L3,10 L5,12 Z"></path></svg></span><span class="progressbar" style="box-sizing: inherit; display: block; font-size: 0px; height: 32px; overflow: hidden; padding: 0px 10px;"><span class="bar" style="box-sizing: inherit; cursor: pointer; display: block; height: 32px; padding-top: 15px;"><span class="gutter" style="background-color: #333333; box-sizing: inherit; display: block; height: 3px;"><span style="background-color: #999999; border-radius: 3px; box-sizing: inherit; display: inline-block; height: 3px; width: 0px;"></span></span></span></span></div>
<div class="start-prompt" style="background-position: center center; background-repeat: no-repeat; bottom: 32px; box-sizing: inherit; cursor: pointer; left: 0px; position: absolute; right: 0px; top: 0px; z-index: 20;">
<div class="play-button" style="bottom: 0px; box-sizing: inherit; color: white; display: table; font-size: 0px; height: 493px; left: 0px; position: absolute; right: 0px; text-align: center; top: 0px; width: 671px;">
<div style="box-sizing: inherit; display: table-cell; vertical-align: middle;">
<span style="box-sizing: inherit; display: inline-block; height: 96px; width: 96px;"><svg class="icon" version="1.1" viewbox="0 0 866.0254037844387 866.0254037844387"><defs><mask id="small-triangle-mask"><rect fill="white" height="100%" width="100%"></rect><polygon fill="black" points="508.01270189221935 433.01270189221935, 208.0127018922194 259.8076211353316, 208.01270189221927 606.217782649107"></polygon></mask></defs><polygon fill="white" mask="url(#small-triangle-mask)" points="808.0127018922194 433.01270189221935, 58.01270189221947 -1.1368683772161603e-13, 58.01270189221913 866.0254037844386"></polygon><polyline points="481.2177826491071 333.0127018922194, 134.80762113533166 533.0127018922194" stroke-width="90" stroke="white"></polyline></svg></span></div>
</div>
</div>
</div>
</div>
</div>
</article></div>
</div>
</div>
</div>
</div>
<div class="g-grid" style="box-sizing: inherit; color: #757575; display: flex; flex-flow: row wrap; font-family: "Open Sans"; font-size: 14.4px; list-style: none; margin: 0px; padding: 0px; text-rendering: optimizeSpeed;">
<div class="g-block size-100" style="-webkit-box-flex: 1; box-sizing: inherit; flex: 0 1 100%; max-width: 100%; min-height: 0px; min-width: 0px; width: 804px;">
<div class="g-content" style="box-sizing: inherit; margin: 0.625rem; padding: 0.938rem;">
<div class="platform-content" style="box-sizing: inherit;">
<div class="moduletable " style="box-sizing: inherit;">
<div class="custom" style="box-sizing: inherit;">
<ins class="adsbygoogle" data-ad-client="ca-pub-4906753266448300" data-ad-format="link" data-ad-slot="3873304447" data-adsbygoogle-status="done" style="box-sizing: inherit; display: block; height: 90px;"><ins id="aswift_0_expand" style="border: none; box-sizing: inherit; display: inline-table; height: 90px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 754px;"></ins></ins><ins class="adsbygoogle" data-ad-client="ca-pub-4906753266448300" data-ad-format="link" data-ad-slot="3873304447" data-adsbygoogle-status="done" style="box-sizing: inherit; display: block; height: 90px;"><br /></ins><ins class="adsbygoogle" data-ad-client="ca-pub-4906753266448300" data-ad-format="link" data-ad-slot="3873304447" data-adsbygoogle-status="done" style="box-sizing: inherit; display: block; height: 90px;"><br /></ins><ins class="adsbygoogle" data-ad-client="ca-pub-4906753266448300" data-ad-format="link" data-ad-slot="3873304447" data-adsbygoogle-status="done" style="box-sizing: inherit; display: block; height: 90px;"><br /></ins><ins class="adsbygoogle" data-ad-client="ca-pub-4906753266448300" data-ad-format="link" data-ad-slot="3873304447" data-adsbygoogle-status="done" style="box-sizing: inherit; display: block; height: 90px;"><div class="section-content section-content-growable content Tutorial-content" style="background-color: white; box-sizing: inherit; color: black; font-family: proxima-nova, sans-serif; font-size: 20px; line-height: 1.5; margin: 0px auto; padding-left: 0px; padding-right: 0px; position: relative; width: auto;">
<div class="container tutorial-header" style="box-sizing: inherit; margin-bottom: 10px; margin-left: auto; margin-right: auto; width: 745px;">
<h1 class="content-title Tutorial-header" style="box-sizing: inherit; color: #3a3a3a; font-size: 32px; font-weight: 400; letter-spacing: 0px; line-height: 1.1; margin: 0px 0px 14px; padding: 0px;">
How To Install Webmin on Ubuntu 16.04</h1>
<span class="meta-section timestamp" style="box-sizing: inherit; color: #999999; font-size: 13px; margin-right: 10px; vertical-align: middle;"><span class="tutorial-date-text" style="box-sizing: inherit; padding-right: 5px;">Posted</span><span class="tutorial-date" style="box-sizing: inherit;">April 21, 2017</span></span> <span class="meta-section pageviews" style="box-sizing: inherit; color: #999999; font-size: 13px; margin-right: 10px; vertical-align: middle;"><span class="icon icon-eye v-mid" style="box-sizing: inherit; font-family: "community_icons"; line-height: 1; padding-right: 5px; speak: none; vertical-align: middle;"></span><span class="views-count v-mid" style="box-sizing: inherit; vertical-align: middle;">92.2k</span><span class="sr-only" style="border: 0px; box-sizing: inherit; clip: rect(0px 0px 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px;">views</span></span> <span class="meta-section tags" style="box-sizing: inherit; color: #999999; font-size: 13px; margin-right: 10px; vertical-align: middle;"><a class="tag" href="https://www.digitalocean.com/community/tags/control-panels?type=tutorials" style="background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(245, 245, 245); box-sizing: inherit; color: #999999; font-size: 10px; letter-spacing: 0.5px; margin: 0px 2px; padding: 3px 4px 2px; text-decoration-line: none; text-transform: uppercase; white-space: nowrap;">CONTROL PANELS</a> <a class="tag" href="https://www.digitalocean.com/community/tags/applications?type=tutorials" style="background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(245, 245, 245); box-sizing: inherit; color: #999999; font-size: 10px; letter-spacing: 0.5px; margin: 0px 2px; padding: 3px 4px 2px; text-decoration-line: none; text-transform: uppercase; white-space: nowrap;">APPLICATIONS</a> <a class="tag" href="https://www.digitalocean.com/community/tags/apache?type=tutorials" style="background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(245, 245, 245); box-sizing: inherit; color: #999999; font-size: 10px; letter-spacing: 0.5px; margin: 0px 2px; padding: 3px 4px 2px; text-decoration-line: none; text-transform: uppercase; white-space: nowrap;">APACHE</a> <a class="tag" href="https://www.digitalocean.com/community/tags/let-s-encrypt?type=tutorials" style="background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(245, 245, 245); box-sizing: inherit; color: #999999; font-size: 10px; letter-spacing: 0.5px; margin: 0px 2px; padding: 3px 4px 2px; text-decoration-line: none; text-transform: uppercase; white-space: nowrap;">LET'S ENCRYPT</a> <a class="tag" href="https://www.digitalocean.com/community/tags/ubuntu-16-04?type=tutorials" style="background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(245, 245, 245); box-sizing: inherit; color: #999999; font-size: 10px; letter-spacing: 0.5px; margin: 0px 2px; padding: 3px 4px 2px; text-decoration-line: none; text-transform: uppercase; white-space: nowrap;">UBUNTU 16.04</a></span></div>
<div class="content-body tutorial-content" data-growable-markdown="" style="box-sizing: inherit; clear: both; font-size: 16px; overflow-x: auto;">
<h3 id="introduction" style="box-sizing: border-box; color: #3a3a3a; font-size: 22px; letter-spacing: 0.005em; margin: 14px auto 11px; padding: 0px; width: 745px;">
Introduction</h3>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
<a href="http://www.webmin.com/" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">Webmin</a> is a modern, web control panel for any Linux machine. It allows you to administer your server through an simple interface. With Webmin, you can change settings for common packages on the fly.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
In this tutorial, you'll install and configure Webmin on your server and secure access to the interface with a valid certificate using <a href="https://letsencrypt.org/" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">Let's Encrypt</a>. You'll then use Webmin to add new user accounts, and update all packages on your server from the dashboard.</div>
<div data-unique="prerequisites" name="prerequisites" style="box-sizing: border-box; margin-left: auto; margin-right: auto; width: 745px;">
</div>
<h2 id="prerequisites" style="box-sizing: border-box; color: #3a3a3a; font-size: 28px; font-weight: 400; letter-spacing: -0.5px; margin: 14px auto 10px; padding: 0px; width: 745px;">
Prerequisites</h2>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
To complete this tutorial, you will need:</div>
<ul style="box-sizing: border-box; margin: 0px auto 1.7rem; padding: 0px 0px 0px 2.5rem; width: 745px;">
<li style="box-sizing: border-box; list-style: disc outside none; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">One Ubuntu 16.04 server set up by following <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">the Ubuntu 16.04 initial server setup guide</a>, including a sudo non-root user and a firewall.</li>
<li style="box-sizing: border-box; list-style: disc outside none; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Apache installed by following <a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04</a>. We'll use Apache to perform Let's Encrypt's domain verification.</li>
<li style="box-sizing: border-box; list-style: disc outside none; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">A Fully-Qualified Domain Name (FQDN), with a DNS <span style="box-sizing: border-box; font-weight: 600;">A</span> record pointing to the IP address of your server. To configure this, follow the tutorial <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">How To Set Up a Host Name with DigitalOcean</a>.</li>
</ul>
<div data-unique="step-1-—-installing-webmin" name="step-1-—-installing-webmin" style="box-sizing: border-box; margin-left: auto; margin-right: auto; width: 745px;">
</div>
<h2 id="step-1-—-installing-webmin" style="box-sizing: border-box; color: #3a3a3a; font-size: 28px; font-weight: 400; letter-spacing: -0.5px; margin: 14px auto 10px; padding: 0px; width: 745px;">
Step 1 — Installing Webmin</h2>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
First, we need to add the Webmin repository so that we can easily install and update Webmin using our package manager. We do this by adding the repository to the <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">/etc/apt/sources.list</code> file.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Open the file in your editor:</div>
<pre class="code-pre command" style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"><ul class="prefixed" style="box-sizing: border-box; margin: 0px; padding: 0px; white-space: normal;">
<li class="line" prefix="$" style="box-sizing: border-box; line-height: 1.5 !important; list-style: disc outside none; margin-bottom: 0.8rem; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 4px; padding-right: 0px !important; padding-top: 0px !important; white-space: pre;">sudo nano /etc/apt/sources.list
</li>
</ul>
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Then add this line to the bottom of the file to add the new repository:</div>
<div class="code-label " style="background-color: #e5e5e5; border-radius: 3px 3px 0px 0px; box-sizing: border-box; color: #3a3a3a; font-size: 14px; margin-bottom: -30px; margin-left: auto; margin-right: auto; padding: 8px 15px; position: relative; text-align: center; width: 745px; z-index: 2;" title="/etc/apt/sources.list">
/etc/apt/sources.list</div>
<pre class="code-pre " style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"> . . .
<span class="highlight" style="background: 0px 0px; box-sizing: border-box; color: #e94849; display: inline;">deb http://download.webmin.com/download/repository sarge contrib</span>
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Save the file and exit the editor.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Next, add the Webmin PGP key so that your system will trust the new repository:</div>
<pre class="code-pre command" style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"><ul class="prefixed" style="box-sizing: border-box; margin: 0px; padding: 0px; white-space: normal;">
<li class="line" prefix="$" style="box-sizing: border-box; line-height: 1.5 !important; list-style: disc outside none; margin-bottom: 0.8rem; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 4px; padding-right: 0px !important; padding-top: 0px !important; white-space: pre;">wget http://www.webmin.com/jcameron-key.asc
</li>
<li class="line" prefix="$" style="box-sizing: border-box; line-height: 1.5 !important; list-style: disc outside none; margin-bottom: 0.8rem; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 4px; padding-right: 0px !important; padding-top: 0px !important; white-space: pre;">sudo apt-key add jcameron-key.asc
</li>
</ul>
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Next, update the list of packages to include the Webmin repository:</div>
<pre class="code-pre command" style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"><ul class="prefixed" style="box-sizing: border-box; margin: 0px; padding: 0px; white-space: normal;">
<li class="line" prefix="$" style="box-sizing: border-box; line-height: 1.5 !important; list-style: disc outside none; margin-bottom: 0.8rem; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 4px; padding-right: 0px !important; padding-top: 0px !important; white-space: pre;">sudo apt-get update
</li>
</ul>
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Then install Webmin:</div>
<pre class="code-pre command" style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"><ul class="prefixed" style="box-sizing: border-box; margin: 0px; padding: 0px; white-space: normal;">
<li class="line" prefix="$" style="box-sizing: border-box; line-height: 1.5 !important; list-style: disc outside none; margin-bottom: 0.8rem; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 4px; padding-right: 0px !important; padding-top: 0px !important; white-space: pre;">sudo apt-get install webmin
</li>
</ul>
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Once the installation finishes, you be presented with the following output:</div>
<pre class="code-pre " style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 14px; margin: 1rem auto; overflow: auto !important; padding: 1rem; width: 745px; word-wrap: normal;"><code langs="" style="background-color: transparent; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; line-height: 22px; margin: 0px; padding: 0px;"><div class="secondary-code-label " style="box-sizing: border-box; color: rgba(0, 0, 0, 0.3); margin-bottom: 4px;" title="Output">
Output</div>
Webmin install complete. You can now login to
https://<span class="highlight" style="background: 0px 0px; box-sizing: border-box; color: #e94849; display: inline;">your_server_ip</span>:10000 as root with your
root password, or as any user who can use `sudo`.
</code></pre>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Please copy down this information, as you will need it for the next step.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
<span class="note" style="background-color: #f4f2d4; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; display: block; font-size: 15px; line-height: 26px; margin-bottom: 22px; padding: 13px 17px;"><span style="box-sizing: border-box; font-weight: 600;">Note:</span> If you installed <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; color: black; line-height: 22px; padding: 3px;">ufw</code> during the prerequisite step, you will need to run the command <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; color: black; line-height: 22px; padding: 3px;">sudo ufw allow 10000</code> in order to allow Webmin through the firewall. For extra security, you may want to configure your firewall to only allow access to this port from certain IP ranges.</span></div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Let's secure access to Webmin by adding a valid certificate.</div>
<div data-unique="step-2-—-adding-a-valid-certificate-with-let's-encrypt" name="step-2-—-adding-a-valid-certificate-with-let's-encrypt" style="box-sizing: border-box; margin-left: auto; margin-right: auto; width: 745px;">
</div>
<h2 id="step-2-—-adding-a-valid-certificate-with-let-39-s-encrypt" style="box-sizing: border-box; color: #3a3a3a; font-size: 28px; font-weight: 400; letter-spacing: -0.5px; margin: 14px auto 10px; padding: 0px; width: 745px;">
Step 2 — Adding a Valid Certificate with Let's Encrypt</h2>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Webmin is already configured to use HTTPS, but it uses a self-signed, untrusted certificate. Let's replace it with a valid certificate from Let's Encrypt.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Navigate to <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">https://<span class="highlight" style="background: 0px 0px; box-sizing: border-box; color: #e94849; display: inline;">your_domain</span>:10000</code> in your web browser, replacing <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;"><span class="highlight" style="background: 0px 0px; box-sizing: border-box; color: #e94849; display: inline;">your_domain</span></code> with the domain name you pointed at your server.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
<span class="note" style="background-color: #f4f2d4; border-radius: 3px; box-sizing: border-box; color: #3a3a3a; display: block; font-size: 15px; line-height: 26px; margin-bottom: 22px; padding: 13px 17px;"><span style="box-sizing: border-box; font-weight: 600;">Note:</span> When logging in for the first time, you will see an "Invalid SSL" error. This is because the server has generated a self-signed certificate. Allow the exception to continue so you can replace the self-signed certificate with one from Let's Encrypt.</span></div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
You'll be presented with a login screen. Sign in with the non-root user you created while fulfilling the prerequisites for this tutorial.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Once you log in, the first screen you will see is the Webmin dashboard. Before you can apply a valid certificate, you have to set the server's hostname. Look for the <span style="box-sizing: border-box; font-weight: 600;">System hostname</span> field and lick on the link to the right, as shown in the following figure:</div>
<div class="growable" style="box-sizing: border-box; cursor: -webkit-zoom-in; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; position: relative; transition: width 0.25s linear; width: 745px; z-index: 100;">
<img alt="Image showing where the link is on the Webmin dashboard" src="https://assets.digitalocean.com/articles/webmin_ubuntu1604/ihomuI4.png" style="border: 2px solid rgb(229, 229, 229); box-sizing: border-box; display: block; height: auto; margin-left: auto; margin-right: auto; max-width: 100%;" /></div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
This wil take you to the <span style="box-sizing: border-box; font-weight: 600;">Hostname and DNS Client</span> page. Locate the <span style="box-sizing: border-box; font-weight: 600;">Hostname</span> field, and enter your Fully-Qualified Domain Name into the field. Then press the <span style="box-sizing: border-box; font-weight: 600;">Save</span> button at the bottom of the page to apply the setting.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
After you've set your hostname, click on <span style="box-sizing: border-box; font-weight: 600;">Webmin</span> on the left navigation bar, and then click on <span style="box-sizing: border-box; font-weight: 600;">Webmin Configuration</span>.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Then, select <span style="box-sizing: border-box; font-weight: 600;">SSL Encryption</span> from the list of icons, and then select the <span style="box-sizing: border-box; font-weight: 600;">Let's Encrypt</span> tab. You'll see a screen like the following figure:</div>
<div class="growable" style="box-sizing: border-box; cursor: -webkit-zoom-in; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; position: relative; transition: width 0.25s linear; width: 745px; z-index: 100;">
<img alt="Image showing the Let's Encrypt tab of the SSL Encryption section" src="https://imgur.com/2SkljoJ.png" style="border: 2px solid rgb(229, 229, 229); box-sizing: border-box; display: block; height: auto; margin-left: auto; margin-right: auto; max-width: 100%;" /></div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Using this screen, you'll tell Webmin how to obtain and renew your certificate. Let's Encrypt certificates expire after 3 months, but we can instruct Webmin to automatically attempt to renew the Let's Encrypt certificate every month. Let's Encrypt looks for a verification file on our server, so we'll configure Webmin to place the verification file inside the folder <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">/var/www/html</code>, which is the folder that the Apache web server you configured in the prerequisites uses. Follow these steps to set up your certificate:</div>
<ol style="box-sizing: border-box; margin-bottom: 1.7rem; margin-left: auto; margin-right: auto; padding-left: 2.5rem; width: 745px;">
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Fill in <span style="box-sizing: border-box; font-weight: 600;">Hostnames for certificate</span> with your FQDN.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Website root directory for validation file</span>, select the <span style="box-sizing: border-box; font-weight: 600;">Other Directory</span> button and enter <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">/var/www/html</code>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Months between automatic renewal</span> section, deselect the <span style="box-sizing: border-box; font-weight: 600;">Only renew manually</span> option by typing <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">1</code> into the input box, and selecting the radio button to the left of the input box.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Click the <span style="box-sizing: border-box; font-weight: 600;">Request Certificate</span> button. After a few seconds, you will see a confirmation screen.</li>
</ol>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
To use the new certificate, restart Webmin by clicking the back arrow in your browser, and clicking the <span style="box-sizing: border-box; font-weight: 600;">Restart Webmin</span> button. Wait around 30 seconds, and then reload the page and log in again. Your browser should now indicate that the certificate is valid.</div>
<div data-unique="step-3-–-using-webmin" name="step-3-–-using-webmin" style="box-sizing: border-box; margin-left: auto; margin-right: auto; width: 745px;">
</div>
<h2 id="step-3-–-using-webmin" style="box-sizing: border-box; color: #3a3a3a; font-size: 28px; font-weight: 400; letter-spacing: -0.5px; margin: 14px auto 10px; padding: 0px; width: 745px;">
Step 3 – Using Webmin</h2>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
You've now set up a secured, working instance of Webmin. Let's look at how to use it.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Webmin has many different modules that can control everything from the BIND DNS Server to something as simple as adding users to the system. Let's look at how to create a new user, and then explore how to update the operating system using Webmin.</div>
<h3 id="managing-users-and-groups" style="box-sizing: border-box; color: #3a3a3a; font-size: 22px; letter-spacing: 0.005em; margin: 14px auto 11px; padding: 0px; width: 745px;">
Managing Users and Groups</h3>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Let's explore how to manage the users and groups on your server.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
First, click the <span style="box-sizing: border-box; font-weight: 600;">System</span> tab, and then click the <span style="box-sizing: border-box; font-weight: 600;">Users and Groups</span> button. Then, from here, you can either add a user, manage a user, or add or manage a group.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Let's create a new user called <em style="box-sizing: border-box;">deploy</em> which would be used for hosting web applications. To add a user, click <span style="box-sizing: border-box; font-weight: 600;">Create a new user</span>, which is located at the top of the users table. This displays the <span style="box-sizing: border-box; font-weight: 600;">Create User</span>screen, where you can supply the username, password, groups and other options. Follow these instructions to create the user:</div>
<ol style="box-sizing: border-box; margin-bottom: 1.7rem; margin-left: auto; margin-right: auto; padding-left: 2.5rem; width: 745px;">
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Fill in <span style="box-sizing: border-box; font-weight: 600;">Username</span> with <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">deploy</code>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Select <span style="box-sizing: border-box; font-weight: 600;">Automatic</span> for <span style="box-sizing: border-box; font-weight: 600;">User ID</span>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Fill in <span style="box-sizing: border-box; font-weight: 600;">Real Name</span> with a descriptive name like <code style="background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; font-size: 15px; line-height: 22px; padding: 3px;">Deployment user</code>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Home Directory</span>, select <span style="box-sizing: border-box; font-weight: 600;">Automatic</span>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Shell</span>, select <span style="box-sizing: border-box; font-weight: 600;">/bin/bash</span> from the dropdown list.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Password</span>, select <span style="box-sizing: border-box; font-weight: 600;">Normal Password</span> and type in a password of your choice.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Primary Group</span>, select <span style="box-sizing: border-box; font-weight: 600;">New group with same name as user</span>.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">For <span style="box-sizing: border-box; font-weight: 600;">Secondary Group</span>, select <span style="box-sizing: border-box; font-weight: 600;">sudo</span> from the <span style="box-sizing: border-box; font-weight: 600;">All groups</span> list, and press the <span style="box-sizing: border-box; font-weight: 600;">-></span> button to add the group to the <span style="box-sizing: border-box; font-weight: 600;">in groups</span> list.</li>
<li style="box-sizing: border-box; margin: 0px 0px 0.8rem; padding: 0px 0px 0px 4px;">Press <span style="box-sizing: border-box; font-weight: 600;">Create</span> to create this new user.</li>
</ol>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
When creating a user, you can set options for password expiry, the user's shell, or whether they are allowed a home directory.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Next, let's look at how to install updates to our system.</div>
<h3 id="updating-packages" style="box-sizing: border-box; color: #3a3a3a; font-size: 22px; letter-spacing: 0.005em; margin: 14px auto 11px; padding: 0px; width: 745px;">
Updating Packages</h3>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Webmin lets you update all of your packages through its user interface. To update all of your packages, first, go to the <span style="box-sizing: border-box; font-weight: 600;">Dashboard</span> link, and then locate the <span style="box-sizing: border-box; font-weight: 600;">Package updates</span> field. If there are updates available, you'll see a link that states the number of available updates, as shown in the following figure:</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
<img alt="Webmin shows the number of updates available" src="https://assets.digitalocean.com/articles/webmin_ubuntu1604/sm1HU3x.png" style="border: 2px solid rgb(229, 229, 229); box-sizing: border-box; display: block; height: auto; margin-left: auto; margin-right: auto; max-width: 100%;" /></div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Click this link, and then press <span style="box-sizing: border-box; font-weight: 600;">Update selected packages</span> to start the update. You may be asked to reboot the server, which you can also do through the Webmin interface.</div>
<div data-unique="conclusion" name="conclusion" style="box-sizing: border-box; margin-left: auto; margin-right: auto; width: 745px;">
</div>
<h2 id="conclusion" style="box-sizing: border-box; color: #3a3a3a; font-size: 28px; font-weight: 400; letter-spacing: -0.5px; margin: 14px auto 10px; padding: 0px; width: 745px;">
Conclusion</h2>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
You now have a secured, working instance of Webmin and you've used the interface to create a user and update packages. Webmin gives you access to many things you'd normally need to access through the console, and it organizes them in an intuitive way. For example, if you have Apache installed, you would find the configuration tab for it under <span style="box-sizing: border-box; font-weight: 600;">Servers</span>, and then <span style="box-sizing: border-box; font-weight: 600;">Apache</span>.</div>
<div style="box-sizing: border-box; margin-bottom: 22px; margin-left: auto; margin-right: auto; padding: 0px; width: 745px;">
Explore the interface, or read the <a href="http://doxfer.webmin.com/Webmin/Main_Page" style="border-bottom: 1px dotted rgb(0, 0, 0); box-sizing: border-box; color: black; text-decoration-line: none;">Official Webmin wiki</a> to learn more about managing your system with Webmin.</div>
</div>
</div>
<div class="tutorial-footer" style="background-color: white; box-sizing: inherit; color: black; font-family: proxima-nova, sans-serif; font-size: medium;">
<div class="tutorial-footer-details" style="border-bottom: 1px solid rgb(229, 229, 229); box-sizing: inherit; padding: 0px;">
<div class="postable-info-bar-container" style="box-sizing: inherit; margin-bottom: 15px;">
<div class="postable-info-bar" style="box-sizing: border-box; clear: both; color: #999999; margin: 0px auto; max-width: 745px; overflow: auto; padding-bottom: 10px; padding-top: 15px; width: 745px; z-index: 100;">
<div class="left-section" style="box-sizing: inherit; float: left; margin: 0px; padding: 0px;">
<div class="tutorial-author-avatar" style="box-sizing: inherit; float: left; height: 50px; margin-right: 10px;">
<a href="https://www.digitalocean.com/community/users/theob" style="box-sizing: inherit; color: #999999; text-decoration-line: none;"><img alt="F9e2abb5bb167e3e3046bbdadf9d4b32903d3f27" class="avatar avatar-small" src="https://community-cdn-digitalocean-com.global.ssl.fastly.net/assets/users/avatars/small/f9e2abb5bb167e3e3046bbdadf9d4b32903d3f27.png?1482360830" style="border-radius: 50%; box-sizing: inherit; height: 35px; width: 35px;" /></a></div>
<div class="author-and-date" style="box-sizing: inherit; float: left; line-height: 17px; margin-right: 20px; margin-top: 9px;">
<div class="tutorial-author" style="box-sizing: inherit; font-size: 16px;">
<a href="https://www.digitalocean.com/community/users/theob" style="box-sizing: inherit; color: #999999; text-decoration-line: none;">Theo B</a></div>
<div class="tutorial-author" style="box-sizing: inherit; font-size: 16px;">
<br /></div>
<div class="tutorial-author" style="box-sizing: inherit; font-size: 16px;">
<br /></div>
<div class="tutorial-author" style="box-sizing: inherit; font-size: 16px;">
<br /></div>
</div>
</div>
</div>
</div>
</div>
</div>
</ins></div>
</div>
</div>
</div>
</div>
</div>
</div>
Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-28821546993413698962015-03-05T17:17:00.000-08:002015-03-05T17:18:30.490-08:00How to uninstall isc-dhcp-serverTo uninstall isc-dhcp-server just follow these instructions.<br />
Uninstall just isc-dhcp-server: <i><b>sudo apt-get remove isc-dhcp-server
</b></i><br />
This will remove just the isc-dhcp-server package itself.<br />
<br />
Uninstall isc-dhcp-server and it's dependencies: <b><i>sudo apt-get remove --auto-remove isc-dhcp-server
</i></b>This will remove the isc-dhcp-server package and any other dependant packages which are no longer needed.
<br />
<br />
Purging your config/data too
If you also want to delete your local/config files for isc-dhcp-server then this will work.
<br />
Caution! Purged config/data can not be restored by reinstalling the package.<br />
<b><i>sudo apt-get purge isc-dhcp-server </i></b><br />
Or similarly, like this isc-dhcp-server<br />
<b><i>sudo apt-get purge --auto-remove isc-dhcp-server
</i></b>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-65349607759808367562015-01-03T17:17:00.003-08:002015-01-03T17:17:55.929-08:00Configure a Squid proxy server through Webmin n Your Squid cache directory /var/spool/squid3 has not been initializedBy Jack Wallen in SMB Technologist
Setting up Squid
The first thing you will see is the error "Your Squid cache directory /var/spool/squid3 has not been initialized. This must be done before Squid can be run." In order to initialize this, click the Initialize Cache button (with either an existing user, or you can create a new user/group "proxy"). At this point you will see the "Stopping Squid" warning. Once the system has been initialized, you will be prompted with the Return To Squid Index link. If you continue seeing this error, here's what you need to do:
Open a terminal window.
Open the file /etc/squid3/squid.conf.
Search for the line #cache_dir ufs /var/spool/squid3 100 16 256 (around line 2245).
Remove the "#" character.
Save the file.
Go back to Webmin and click the Initialize Cache button again.
Your plan for using the proxy will dictate how you configure it. Regardless of how you use it, you will want to define the ports used by the proxy first. By default, Squid uses 3128. You can stick with the default, or if you need to go with a non-standard port.Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-3446092087669863992013-02-27T04:30:00.002-08:002013-02-27T04:39:37.897-08:00Modul/Plugin/Component keren buat joomla 3.0Bagi Desainer Joomla ada beberapa Modul/Plugin/Component yang keren yang wajib dipasang,
dan lebih keren-nya lagi semuanya Non Commercial alias Free.<br />
Simak aja Bro... <br />
<br />
1. Modul Like Box Facebook.<br />
Modul yang bisa dipasang dikiri kanan joomla ini keren sekali untuk menampilkan fan yang menyukai halaman facebook.<br />
untuk Download <a href="http://extensions.joomla.org/extensions/social-web/social-display/facebook-display/15754?qh=YToxOntpOjA7czoxMjoiaXRwZmJsaWtlYm94Ijt9" target="_blank">Modul ITPFacebook Like Box Linknya Klik Disini </a><br />
<br />
2.Modul Slideshow CK<br />
Modul ini untuk menampilkan foto-foto tak terbatas jumlahnya pada joomla 3.0, transition effectnya cukup keren.<br />
Untuk Download <a href="http://extensions.joomla.org/extensions/photos-a-images/slideshow/image-jquery-slideshow/20362?qh=YTo2OntpOjA7czo5OiJzbGlkZXNob3ciO2k6MTtzOjEwOiJzbGlkZXNob3dzIjtpOjI7czoxMToic2xpZGVzaG93J3MiO2k6MztzOjExOiInc2xpZGVzaG93JyI7aTo0O3M6MjoiY2siO2k6NTtzOjEyOiJzbGlkZXNob3cgY2siO30%3D" target="_blank">Klik Modul SlideshowCK ke TKP-nya</a>.<br />
<br />
3. Plugin Facebook Like and Share<br />
Plugin ini bisa ditaruh diatas atau dibawah artikel joomla 3.0.<br />
bisa langsung posting diwall facebook dan nampilin avatarnya, very cool.<br />
Download <a href="http://extensions.joomla.org/extensions/social-web/social-share/facebook-share/16602" target="_blank">di sini Plugin Fb Like n Share</a>.Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com1tag:blogger.com,1999:blog-1448435190591673698.post-25718416503997101272012-08-11T18:37:00.001-07:002012-08-11T18:37:46.880-07:00Set / Change / Reset the MySQL root password on Ubuntu Linux<span style="background-color: #d1cbbf; color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">Tested on</span><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><span style="background-color: #d1cbbf; color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">- Ubuntu Linux 7.10 Gutsy Gibbon and MySQL 5.0.45. (2007-10-21)</span><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><span style="background-color: #d1cbbf; color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">- Ubuntu Linux 6.06 Dapper Drake and MySQL 4.1.15.</span><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><span style="background-color: #d1cbbf; color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">Set / change / reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.</span><br />
<ol style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">
<li>Stop the MySQL Server.<br /><pre class="terminal" style="background-color: black; border: 1px solid black; color: white; font-size: 11px; list-style-type: none; margin-bottom: 5px; margin-right: 5px; margin-top: 5px; overflow: auto; padding: 0.5em;">sudo /etc/init.d/mysql stop</pre>
</li>
<br />
<li>Start the mysqld configuration.<br /><pre class="terminal" style="background-color: black; border: 1px solid black; color: white; font-size: 11px; list-style-type: none; margin-bottom: 5px; margin-right: 5px; margin-top: 5px; overflow: auto; padding: 0.5em;">sudo mysqld --skip-grant-tables &</pre>
</li>
<br />
<li>Login to MySQL as root.<br /><pre class="terminal" style="background-color: black; border: 1px solid black; color: white; font-size: 11px; list-style-type: none; margin-bottom: 5px; margin-right: 5px; margin-top: 5px; overflow: auto; padding: 0.5em;">mysql -u root mysql</pre>
</li>
<br />
<li>Replace YOURNEWPASSWORD with your new password!<br /><pre class="terminal" style="background-color: black; border: 1px solid black; color: white; font-size: 11px; list-style-type: none; margin-bottom: 5px; margin-right: 5px; margin-top: 5px; overflow: auto; padding: 0.5em;">UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;</pre>
</li>
</ol>
<span style="background-color: #d1cbbf; color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">Note: This method is not regarded as the securest way of resetting the password. However it works.</span><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><strong style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;">References</strong><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><br style="color: #666666; font-family: helvetica, verdana, sans-serif; font-size: 14px;" /><a href="http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html" style="color: #464e60; font-family: helvetica, verdana, sans-serif; font-size: 14px;">MySQL 5.0 Reference Manual: How to Reset the Root Password</a>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-57808841600747946522012-08-11T02:19:00.003-07:002012-08-11T02:19:44.542-07:00How to reset your password in Ubuntu<br />
There are many reasons you might want to reset a password:<br />
Someone gave you a computer with Ubuntu installed on it but not the password for the user account.<br />
You just installed Ubuntu and forgot what password you selected during the installation process.<br />
You have too many passwords in your life and can't keep track of them all.<br />
Well, this tutorial will help you reset your Ubuntu user account password, regardless of what reason you have for resetting it.<br />
First, you have to reboot into recovery mode.<br />
If you have a single-boot (Ubuntu is the only operating system on your computer), to get the boot menu to show, you have to hold down the Shift key during bootup.<br />
If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to hold down the Shift key.<br />
<br />
From the boot menu, select recovery mode, which is usually the second boot option.<br />
<br />
After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.<br />
<br />
The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.<br />
<br />
In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes:<br />
<br />
mount -o rw,remount /<br />
<br />
If you have forgotten your username as well, type<br />
<br />
ls /home<br />
That's a lowercase L, by the way, not a capital i, in ls. You should then see a list of the users on your Ubuntu installation. In this case, I'm going to reset Susan Brownmiller's password.<br />
To reset the password, type<br />
<br />
passwd username<br />
where username is the username you want to reset. In this case, I want to reset Susan's password, so I type<br />
passwd susan<br />
You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.<br />
<br />
Now the password should be reset. Type<br />
<br />
exit<br />
to return to the recovery menu.<br />
<br />
After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!<br />
<br />
Note:<br />
Some people get freaked out about having recovery mode logging you in as root.<br />Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-62995437434049991992012-08-07T16:51:00.004-07:002012-08-07T16:51:59.470-07:00INSTALL OpenSSL DAN MEMBUAT SSLCertificate UNTUK MENGAKTIFKAN HTTPS DI APACHE2Berikut tutorial dari Bang Opick Opensource Telkomspeedy :<div>
Silahkan Di unduh di link berikut : <a href="http://massol507.files.wordpress.com/2011/02/webhtb_v2-9-25.pdf" target="_blank">Tutorial openssl dan sslcertificate untuk https</a></div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-57702226683764865952012-08-07T16:44:00.002-07:002012-08-07T16:44:48.706-07:00Uninstall Apache dengan tuntas....<div>
Terkadang kita membuat konfigurasi web server jadi komplek dan rumit, atau tidak sengaja tiba-tiba membuat setting yang mengakibatkan apache tidak berjalan normal. Untuk mengembalikan apache ikuti langkah uninstall dan install berikut ini.</div>
Jalankan perintah :<br /><b><i> sudo apt-get --purge remove apache2.2-common</i></b> <br /><br />Perintah ini akan menghilangkan beberapa paket yang berhubungan :<br /><i>apache2* apache2-mpm-prefork* apache2.2-common* libapache2-mod-php5* php5* </i><br /><br />Dan Install lagi apache yang baru agar kembali ke setting awal :<br /> <i style="font-weight: bold;">sudo apt-get install apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 php5</i><br /><br />Web server bisa berjalan normal lagi.Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-76679564784406492602012-07-09T22:19:00.001-07:002012-07-09T22:19:03.387-07:00Memisahkan Nama Depan dan Nama Belakang<br />
<div class="title" style="background-color: #f1f1f1; border: 0px; color: #161514; font-family: Tahoma, 'century gothic', Arial, verdana, sans-serif; font-size: 13px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<h3 class="post-title entry-title" style="border: 0px; font-size: 18px; font-weight: normal; margin: 5px 0px 5px 5px; outline: 0px; padding: 5px 0px; vertical-align: baseline;">
<span style="color: #555555; font-family: Tahoma, Georgia, Arial, 'century gothic', verdana, sans-serif; font-size: 13px;">Jika Anda bekerja dengan banyak data yang menggunakan nama orang, suatu saat Anda mungkin ingin memisahkan nama-nama tersebut menjadi dua bagian, yaitu nama dengan dan nama belakang. Dengan menggunkan rumus ini, pekerjaan tersebut sangat mudah dilakukan:</span></h3>
</div>
<div class="cover" style="background-color: #f1f1f1; border: 0px; color: #161514; font-family: Tahoma, 'century gothic', Arial, verdana, sans-serif; font-size: 13px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="entry" style="border: 0px; margin: 0px; outline: 0px; padding: 0px 5px 5px 0px; vertical-align: baseline;">
<div style="border: 0px; color: #555555; font-family: Tahoma, Georgia, Arial, 'century gothic', verdana, sans-serif; margin: 5px; outline: 0px; padding: 0px; vertical-align: baseline;">
<br /></div>
<div class="separator" style="border: 0px; clear: both; margin: 0px; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;">
<a href="http://1.bp.blogspot.com/_1jph87-Fojg/TBy7nuuMexI/AAAAAAAAAvk/z08XgtclStI/s1600/nama_depan_belakang.jpg" imageanchor="1" style="background-color: transparent; border: 0px; color: #ac0604; margin: 0px 1em; outline-style: none; padding: 0px; text-decoration: none; vertical-align: baseline;"><img border="0" src="http://1.bp.blogspot.com/_1jph87-Fojg/TBy7nuuMexI/AAAAAAAAAvk/z08XgtclStI/s320/nama_depan_belakang.jpg" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;" /></a></div>
<br />Pada kolom A terdapat nama lengkap, dan pada kolom B anda ingin mengambil nama depannya saja, sedang kolom C anda ingin mengambil nama belakangnya. Maka cukup tuliskan rumus:<br /><br /><div style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
=LEFT(A1;FIND(" ";$A$1:$A$16;1)-1)</div>
<br /><ul style="border: 0px; list-style: none; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -10px; vertical-align: baseline;">
<li style="border: 0px; margin: 7px 0px 8px 10px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">LEFT(A1</span> artinya anda akan mengambil nama dari kolom A1 yang dimulai dari paling kiri.</li>
<li style="border: 0px; margin: 7px 0px 8px 10px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">FIND(" ";$A$1:$A$16;1)-1</span> akan mencari karakter spasi <span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">" "</span>. Misal pada nama "Aan Arifin" karakter spasi ditemukan pada karakter ke-4, maka nilai yang dihasilkan adalah 4. Rumus <span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-1</span> artinya angka 4 tadi dikurangi dengan -1 agar menjadi 3, sesuai dengan nama "Aan" yang hanya ada 3 karakter.</li>
</ul>
<br /><ul style="border: 0px; list-style: none; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -10px; vertical-align: baseline;"></ul>
<div style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
=MID(A1;FIND(" ";$A$1:$A$16;1)+1;100)</div>
<ul style="border: 0px; list-style: none; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -10px; vertical-align: baseline;">
<li style="border: 0px; margin: 7px 0px 8px 10px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">=MID(A1;</span> artinya anda akan mengambil nama dari kolom A1 yang dimulai dari tengah.</li>
<li style="border: 0px; margin: 7px 0px 8px 10px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">FIND(" ";$A$1:$A$16;1)+1</span>, sama seperti rumus FIND di atas, untuk mencari karakter spasi <span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">" "</span>, namun kali ini +1 untuk mencari nama belakang. Rumus <span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">FIND(" ";$A$1:$A$16;1)+1</span> akan menghasilkan angka 5, di mana nama "Arifin" dimulai dengan karakter ke-5. Rumus <span style="border: 0px; color: blue; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">;100)</span> artinya karakter yang diambil untuk nama belakang diasumsikan 100 karakter.</li>
</ul>
<div style="border: 0px; color: #555555; font-family: Tahoma, Georgia, Arial, 'century gothic', verdana, sans-serif; margin: 5px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="border: 0px; clear: both; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</div>
<div class="edit" style="background-color: #f1f1f1; border: 0px; color: #161514; font-family: Tahoma, 'century gothic', Arial, verdana, sans-serif; font-size: 13px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<a href="http://formula-excel.blogspot.com/search/label/Mega%20Formula">MEGA FORMULA</a><br />sOURCE : <a href="http://formula-excel.blogspot.com/2010/06/memisahkan-nama-depan-dan-nama-belakang.html">http://formula-excel.blogspot.com/2010/06/memisahkan-nama-depan-dan-nama-belakang.html</a>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-20835358878531429062012-07-09T22:13:00.000-07:002012-07-09T22:13:03.595-07:00Memisah Nama Depan, Tengah dan Belakang dengan Fungsi Text<br />
<div class="post-body entry-content" id="post-body-4217520859996228633" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.4; position: relative; width: 750px;">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bwEEYmb8kMg/T1Wqki85NnI/AAAAAAAAAf8/irVf73D_ziA/s1600/1.PNG" imageanchor="1" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="195" src="http://2.bp.blogspot.com/-bwEEYmb8kMg/T1Wqki85NnI/AAAAAAAAAf8/irVf73D_ziA/s640/1.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 1px 1px 5px; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.0976563) 1px 1px 5px; padding: 5px; position: relative;" width="640" /></a></div>
<span style="font-family: 'Courier New', Courier, monospace;">Belajar fungsi-fungsi Excel, rasanya kurang lengkap jika tidak mendalami Text Functions. Beberapa Text Functions yang sudah dikenal luas adalah : LEFT, MID, RIGHT, FIND, UPPER, PROPER, LOWER. Hampir semua pengguna Excel sudah paham luar dalam tentang fungsi-fungsi tersebut. Beberapa fungsi text lain yang akan dibahas saat ini adalah: LEN, SUBSTITUTE, REPT, TRIM </span><br /><div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b>A. LEN</b></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">LEN berfungsi untuk menghitung jumlah karakter dari sebuah text . Contoh : LEN("Saya") menghasilkan 4</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b>B. SUBSTITUTE</b></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">SUBSTITUTE berfungsi untuk menganti karakter tertentu dalam text dengan karakter lain. Contoh: </span><span style="font-family: 'Trebuchet MS', sans-serif;"><span style="background-color: #b6d7a8;"><b>=SUBSTITUTE(<span style="color: blue;">"Saya"</span>,<span style="color: red;">"a"</span>,<span style="color: cyan;">"o"</span>,<span style="color: magenta;">1</span>)</b></span> </span><span style="font-family: 'Courier New', Courier, monospace;">menghasilkan : "</span><b style="font-family: 'Courier New', Courier, monospace;">Soya"</b><span style="font-family: 'Courier New', Courier, monospace;">. Ada 4 elemen dalam fungsi ini, yakni: </span></div>
<div style="text-align: center;">
<b style="background-color: #351c75;"><span style="font-family: 'Trebuchet MS', sans-serif;"><span style="color: white;">{</span><span style="color: blue;">Text</span><span style="color: white;">, </span><span style="color: red;">OldText</span><span style="color: white;">, </span><span style="color: cyan;">NewText</span><span style="color: white;">, [</span><span style="color: magenta;">InstanceNumber</span><span style="color: white;">]}</span></span></b></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Untuk elemen yang keempat atau InstanceNumber jika dikosongkan artinya semua karakter pada Oldtext yang akan diganti.</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Jadi rumus <b style="background-color: #b6d7a8;">=SUBSTITUTE("Saya","a","o")</b><span style="background-color: white;"> </span>akan menghasilkan "<b>Soyo</b>"</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">Yang dimaksud <i>InstanceNumber </i>adalah, seperti pada contoh, huruf "<b>a</b>" yang ke berapa yang akan diganti.</span></div>
<span style="font-family: 'Courier New', Courier, monospace;"></span><br /><a href="" name="more"></a><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b>C. REPT</b></span><br /><span style="font-family: 'Courier New', Courier, monospace;">REPT berfungsi untuk mengulang suatu karakter sebanyak n kali. Contoh : </span><span style="background-color: lime;"><b><span style="font-family: 'Trebuchet MS', sans-serif;">=REPT(<span style="color: blue;">"a"</span>,<span style="color: red;">2</span>)</span></b></span><span style="font-family: 'Courier New', Courier, monospace;">menghasilkan "<b>aa</b>"</span><br /><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b>D. TRIM</b></span><br /><span style="font-family: 'Courier New', Courier, monospace;">Berfungsi untuk membuang kelebihan spasi pada sebuah text, di mana spasi di awal text akan dihapus, spasi di tengah text yang lebih dari 1 karakter akan dijadikan 1 karakter dan kelebihan spasi di akahir text akan dihapus. </span><span style="font-family: 'Courier New', Courier, monospace;">Contoh : </span><br /><span style="font-family: 'Courier New', Courier, monospace;"><b><span style="background-color: lime;">=TRIM("</span><span style="background-color: #b6d7a8; color: #b6d7a8;"> </span><span style="background-color: lime;">Ana</span><span style="color: #b6d7a8;"><span style="background-color: lime;"> </span><span style="background-color: #93c47d;"> </span></span><span style="background-color: lime;">Ahibbuka</span><span style="background-color: #6aa84f;"> </span><span style="background-color: lime;">")</span><span style="background-color: white;"> </span></b>menghasilkan "<b>Ana Ahibbuka</b>"</span><br /><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><span style="font-family: 'Courier New', Courier, monospace;">Keempat fungsi di atas, tampaknya <i>useless</i>, artinya tidak berguna sama sekali jika hanya dilihat sekilas. Tapi jika digabung dengan fungs-fungsi yang lain, maka akan tampak sekali kegunaannya.</span><br /><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><span style="font-family: 'Courier New', Courier, monospace;">Berikut saya contohkan penggunaan fungsi-fungsi Text untuk mencari nama depan, nama tengah dan nama belakang.</span><br /><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><br /><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b style="background-color: #d9d2e9;">Mencari Nama Depan</b></span></li>
</ul>
<span style="font-family: 'Courier New', Courier, monospace;">Mencari nama depan dari sebuah nama bukanlah hal yang sulit. Cara kerjanya adalah dengan mencari posisi spasi, kemudian mengambil karakter sebelah kiri sebanyak posisi spasi dikurangi 1.</span><br /><span style="font-family: 'Courier New', Courier, monospace;">Contoh Misal nama lengkap "<b><span style="color: blue;">Ahmad Ahmadi"</span></b> ada di sel <b><span style="color: blue;">A1</span></b>, maka rumusnya adalah:</span><br /><div style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: cyan;">=LEFT(A1,FIND(" ",A1)-1)</b></span></div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><br /><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b style="background-color: #d9d2e9;">Mencari Nama Belakang</b></span></li>
</ul>
<span style="font-family: 'Courier New', Courier, monospace;">Tinngkat kesulitan mencari nama belakang agak berbeda dengan nama depan. karena nama orang kadang bisa lebih dari dua kata. Misal yang ingin dicari nama belakangnya adalah "<b>Ahmad Nur Putro Bin Salam</b>" ada di sel <b>A1</b>. </span><br /><span style="font-family: 'Courier New', Courier, monospace;">Langkah penyelesaiannya adalah mengambil karakter paling kanan (RIGHT) sejumlah posisi spasi terakhir. Masalah timbul karena jumlah spasi kan bisa jadi tidak sama. Maka kita harus putar otak untuk mencari jumlah spasi terlebih dahulu. Nah, di sinilah fungsi SUBSTITUTE menemukan tempatnya. Dengan SUBSTITUTE kita ganti semua spasi dengan kosong, kemudian Jumlah karakter awal dikurangi dengan jumlah karakter dari kata awal yang telah dibuang spasinya. Lengkapnya begini:</span><br /><br /><ol>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace;">Cari Jumlah karakter nama lengkap : </span><b style="background-color: cyan; font-family: 'Courier New', Courier, monospace;"><span style="color: blue;">=LEN(A1)</span></b></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace;">Buang spasi : </span><span style="background-color: cyan; font-family: 'Courier New', Courier, monospace;"><b>= <span style="color: red;">SUBSTITUTE(A1," ","")</span></b></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace;">Kurangi langkah 1 dengan langkah 2 : </span><span style="background-color: cyan; font-family: 'Trebuchet MS', sans-serif;">=<span style="color: blue;">LEN(A1)</span>-LEN(<span style="color: red;">SUBSTITUTE(A1," ","")</span></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace;">Berikutnya kita mengganti spasi terakhir dengan karakter "*":</span><span style="font-family: 'Courier New', Courier, monospace;"> <b style="text-align: center;"><span style="color: red;">SUBSTITUTE(A1," ","*"</span>,<span style="color: blue;">LEN(A1)-LEN(SUBSTITUTE(A1," ","")</span>))</b></span></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace;">Menemukan spasi terakhir: <b><span style="color: blue;">FInd("*",langkah4) </span></b></span></li>
</ol>
<br /><span style="font-family: 'Courier New', Courier, monospace;">Langkah selanjutnya lebih mudah yakni tinggal mengambil karakter paling kanan sejumlah langkah no 5.</span><br /><div style="text-align: center;">
<span style="font-family: 'Courier New', Courier, monospace;"><b>=RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1," ","*",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))</b></span></div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><br /><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;"><span style="font-family: 'Courier New', Courier, monospace; font-size: medium;"><b style="background-color: #d9d2e9;">Mencari Nama Tengah</b></span></li>
</ul>
<span style="font-family: 'Courier New', Courier, monospace;">Mencari nama tengah adalah pekerjaan paling sulit dalam urusan memecah nama. Kalau logika yang digunakan untuk menyelesaikan kasus ini hanya biasa saja, maka dibutuhkan rumus yang panjang. Orang yang biasa bekerja dengan Excel dituntut untuk berpikir out of the box untuk mencari nama tengah ini dengan mudah. Biasanya kita (termasuk saya) dalam mencoba memecahkan kasus ini berpijak dari rumus mencari nama depan dan belakang di atas. Masalah yang timbul adalah bagaimana menentukan spasi yang akan dijadikan pedoman untuk mengambil nama tengah. Sehingga m</span><span style="font-family: 'Courier New', Courier, monospace;">enurut saya, diperlukan otak yang sedikit miring untuk memacahkan kasus ini secara cerdas. </span><br /><span style="font-family: 'Courier New', Courier, monospace;">Perhatikan rumus yang saya dapat dari milis BelajarExcel berikut:</span><br /><div style="text-align: center;">
<span style="color: blue; font-family: 'Courier New', Courier, monospace;"><b>=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),99*INT((LEN(A1)-LEN(SUBSTITUTE(A1," ","")))/2),99))</b></span></div>
<span style="font-family: 'Courier New', Courier, monospace;">Formula ini sungguh-sungguh cerdik. Formula ini bekerja dengan mengganti semua spasi dengan spasi sebanyak 99, kemudian mengambil karakter di tengah dimulai dari karakter ke (99*(jumlah spasi /2)) sebanyak 99 karakter. Kemudian membuang kelebihan spasi dengan fungsi TRIM. Simple, Cerdik ...!!!!</span><br /><span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br /><span style="font-family: 'Courier New', Courier, monospace;">Well, demikian pembahasan fungsi Text, mudah-mudahan bermanfaat.</span><br /><span style="font-family: 'Courier New', Courier, monospace;">File contoh bisa <a href="http://www.box.com/s/4ax7zn1xb3nkyqrrdtqd" style="color: #888888; text-decoration: none;" target="_blank">didownload di sini</a> atau di Boxnet pada sidebar.</span></div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: 'Courier New', Courier, monospace;">Source : </span><a href="http://excelheru.blogspot.com/2012/03/memisah-nama-depan-tengah-dan-belakang.html" style="background-color: white; line-height: 1.4;">http://excelheru.blogspot.com/2012/03/memisah-nama-depan-tengah-dan-belakang.html</a></div>
</div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-13165202124680520452012-06-19T11:33:00.001-07:002012-06-19T11:33:23.900-07:00Problem: Menu Drop Down tidak mau membukaMenu Drop Down tidak mau membuka pada moodle karena cache situs moodle anda belum dihapus, coba dengan cara ini :<br />
1. Hapus Cache Theme anda pada tautan <a class="_blanktarget" href="http://yourdomain.com/admin/purgecaches.php" style="color: #d8a51f; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 13px; line-height: 18px; text-align: left;">http://yourdomain.com/theme/index.php</a><br />
Jika masih tidak bekerja maka hapus juga cache system anda<br />
2. Hapus cache pada system admin pada link <a class="_blanktarget" href="http://yourdomain.com/admin/purgecaches.php" style="color: #d8a51f; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 13px; line-height: 18px; text-align: left;">http://yourdomain.com/admin/purgecaches.php</a><br />
Selamat mencoba, ok.Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-66714511929393680992012-05-14T20:22:00.000-07:002012-05-14T20:22:05.391-07:00error dengan pesan "JW_SIG_CFU"<span class="Apple-style-span" style="font-family: 'Lucida Grande', Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 16px;">I work with simple image gallery and work fine, but appear in the top of my site the message "JW_SIG_CFU" in background color orange.</span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 16px;"><br /></span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 16px;">Solution :</span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 16px;">The problem is ok. Is about status of chmod in chache folder, change for 777 and the problem is ok.</span>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-63208835615286227482012-05-12T05:51:00.002-07:002012-05-12T06:22:08.472-07:00Beberapa error dalam install joomla...Beberapa kali kita sering mengalami error ketika menginstall joomla ( installer, komponen, modul ataupun template). Biasanya pesan yang muncul adalah :<br /><b>JInstaller: :Install: Cannot find Joomla XML setup file </b><br />Berikut beberapa langkah yang perlu disesuaikan untuk mengatasinya :<br /><ol>
<li>Setting php.ini diserver perlu disesuaikan diantaranya : memory_limit = 50M post_max_size = 10M file_uploads = On upload_max_filesize = 10M (Letak file php ini tergantung OS server anda masing-masing, di apache ubuntu letaknya di :
<span style="background-color: #f8f8fa; color: #333333; font-family: monospace; font-size: 13px;">/etc/php5/apache2/php.ini</span></li>
<li>Folder dalam joomla harus kita set Writeable agar saat menginstall berjalan baik. Folder tersebut adalah : tmp, modul, component, template, language.</li>
<li>Jangan Lupa untuk merestart service apache untuk perubahan konfigurasi php.</li>
</ol>
<div>
Selamat berjuang ....</div>
<div>
<br /></div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-48657781369767202902012-05-04T18:43:00.004-07:002012-05-04T18:43:34.446-07:00Cloning antar hardisk di linux tanpa bantuan software tambahan<span class="Apple-style-span" style="color: #51555c; font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 18px;"></span><br />
<h1 class="entry-title full-title" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-size: 24px; line-height: 1; margin-bottom: 9px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<span class="Apple-style-span" style="font-size: 12px; font-weight: normal; line-height: 18px;">mungkin judul saya kurang tepat, maksud di sini adalah mengunakan software yg sudah include ada di linux jadi tidak perlu repot lagi mau install software atau bikin pakai software khusus.</span></h1>
<div class="entry-content full-content" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 9px; vertical-align: baseline; width: 510px;">
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
sebenarnya lahngak ini sudah banyak di jelaskan di internet jadi tulisan ini saya tulis waktu pada saya kondisi kepepet di mana pada saat saya memaintenance warnet saya lupa membawa flashdisk 1 buah pun yg biasa saya gunakan flashdisk itu untuk software cloning saya yaitu clonezilla.</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
cara ini juga bisa di gunakan untuk menuliskan file <strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.img</strong> ke flashdisk atau ke hardisk.</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
cara menulis file <strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.img</strong> ke flash disk atau hardisk.</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<code style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dd if=/lokasi_file_img/file.img of=/dev/hardisk_flashdisk</strong></code></div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
contoh:</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<code style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dd if=/home/sa3o/pfsense.img of=/dev/sdb</code></div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
kalau cara cloning :</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<code style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dd if=/dev/hardisk_asal(bisa hardisk komp kita sendiri) of=/dev/hardisk_tujuan</strong></code></div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
contoh:</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<code style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dd if=/dev/sda of=/dev/sdb</code></div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Sekian <img alt=":D" class="wp-smiley" src="http://sa3o.net/wp-includes/images/smilies/icon_biggrin.gif" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" /> .</div>
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 12px; margin-bottom: 18px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Sumber : <a href="http://sa3o.net/cloning-antar-hardisk-di-linux-tanpa-bantuan-software-tambahan/">http://sa3o.net/cloning-antar-hardisk-di-linux-tanpa-bantuan-software-tambahan/</a></div>
</div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-44275413031027439422012-05-04T04:59:00.000-07:002012-05-04T04:59:07.183-07:00TIPS & TRIK : Webmin Tidak Mendeteksi isc-dhcp-server<br />
<div class="post-body entry-content" style="color: #222222; font-family: serif; font-size: 13px; line-height: 1.4; position: relative; width: 470px;">
<span style="font-family: 'Trebuchet MS', sans-serif;">Di ubuntu 12.04, webmin tidak mendeteksi adanya isc-dhcp-server. Untuk memperbaiki masalah ini, replace file </span> <span style="background-color: white; color: #555555; font-size: 12px; line-height: 18px; text-align: left;"><span style="font-family: 'Courier New', Courier, monospace;">/etc/webmin/dhcpd/config </span></span><span style="font-family: 'Trebuchet MS', sans-serif;">dengan isi file sebagai berikut :</span><div>
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span><span class="fullpost"></span><br /><div>
<div style="border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 1pt; padding-left: 4pt; padding-right: 4pt; padding-top: 1pt;">
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;"><br />start_cmd=/etc/init.d/isc-dhcp-server start<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">lease_file=/var/lib/dhcp/dhcpd.leases<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_path=/usr/sbin/dhcpd<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">display_max=100<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">group_name=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">lease_tz=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">lease_sort=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">interfaces_type=debian<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">show_mac=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">stop_cmd=/etc/init.d/isc-dhcp-server stop<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_conf=/etc/dhcp/dhcpd.conf<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">pid_file=/var/run/dhcpd.pid<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">restart_cmd=/etc/init.d/isc-dhcp-server restart<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">desc_name=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">show_ip=0<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_nocols=5<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">add_file=<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">hostnet_list=<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">version=<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_version=4.1.1<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_size=700320<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;">dhcpd_mtime=1279996769<o:p></o:p></span></div>
<div class="MsoNormal" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="font-family: 'Courier New'; font-size: 8pt;"><br /></span></div>
</div>
</div>
<div>
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span></div>
<div>
<span style="font-family: 'Trebuchet MS', sans-serif;">Setelah isi file </span><span style="background-color: white; color: #555555; font-family: 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; text-align: left;">/etc/webmin/dhcpd/config </span><span style="font-family: 'Trebuchet MS', sans-serif;">Anda edit, refresh modul webmin, dan muncullah DHCP di modul Server.</span></div>
</div>
<div>
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span></div>
<div>
<span style="font-family: 'Trebuchet MS', sans-serif;"><span style="font-size: xx-small;">source : <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=3082875&group_id=17457&atid=117457" style="color: #888888; text-decoration: none;" target="_blank">klik</a></span></span></div>
</div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-8149162676819013722012-04-27T02:51:00.000-07:002012-04-27T03:39:20.788-07:00Menampilkan Google Maps di Joomla1. Pada Google Maps pilih lokasi yang dituju.<br />
2. Klik icon Link / Tautan.<br />
3. Pilih Source-nya saja untuk dipasang pada wrapper.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-rybB-T8lhJE/T5p3PuW6efI/AAAAAAAABDk/RYruxXkVujw/s1600/gomsap.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://1.bp.blogspot.com/-rybB-T8lhJE/T5p3PuW6efI/AAAAAAAABDk/RYruxXkVujw/s640/gomsap.jpg" width="281" /></a></div>
<br />Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-44054820272814186932012-03-09T18:06:00.003-08:002012-03-09T18:06:49.597-08:00Disable Autoconfiguration IPv4 Address<br />
<h3 class="post-title entry-title" style="background-color: white; color: #0066cc; font-family: Arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.25em; padding-bottom: 4px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">
How to disable Autoconfiguration IPv4 Address</h3>
<div class="post-header" style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 13px; text-align: left;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-6583872186717714913" style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">
Sometime you setup windows server 2008 to vmware using LAN or wifi, you chose Bridge mode to share internet connections between host and virtual machine may be cause of issues with internet connection at virtual machine. They can not connect to the internet or appear a message likes "<span style="font-weight: bold;">conflict IP address</span>"<br /><br />Enter: <span style="font-weight: bold;">Run > cmd > ipconfig /all</span><br /><br />You may see the following issues:<br /><br /><a href="http://3.bp.blogspot.com/-zOdhcAFZKIQ/TvhE_jgCshI/AAAAAAAAAB0/wA0G9QWB6Ns/s1600/Capture.PNG" style="color: #0066cc; text-decoration: none;"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5690373987834704402" src="http://3.bp.blogspot.com/-zOdhcAFZKIQ/TvhE_jgCshI/AAAAAAAAAB0/wA0G9QWB6Ns/s320/Capture.PNG" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; cursor: pointer; height: 227px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; width: 320px;" /></a><br /><br />or:<br /><br />Ethernet adapter Local Area Connection:<br /><br />Connection-specific DNS Suffix . :<br />Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection<br />Physical Address. . . . . . . . . : 00-23-24-08-30-57<br />DHCP Enabled. . . . . . . . . . . : No<br />Autoconfiguration Enabled . . . . : Yes<br />Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)<br /><span style="color: red;"><b>Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)<br />Subnet Mask . . . . . . . . . . . : 255.255.0.0</b></span><br />IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)<br />Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />Default Gateway . . . . . . . . . : 192.168.1.1<br />DNS Servers . . . . . . . . . . . : 192.168.1.1<br />NetBIOS over Tcpip. . . . . . . . : Enabled<br /><br />To fix it, enter these from Command Prompt:<br /><br /><div class="bbcode_container">
<div class="bbcode_quote">
<div class="quote_container">
<span style="font-style: italic; font-weight: bold;">C:\Users\lyngtinh> netsh interface ipv4 show inter</span></div>
</div>
</div>
<br />result as:<br /><br /><span style="font-style: italic;">Idx Met MTU State Name</span><br /><span style="font-style: italic;">--- ---------- ---------- ------------ ---------------------------</span><br /><span style="font-style: italic;">1 50 4294967295 connected Loopback Pseudo-Interface 1</span><br /><span style="color: red; font-style: italic;">11</span><span style="font-style: italic;"> 10 1500 connected Local Area Connection </span><br /><br /><span style="color: red; font-weight: bold;">11:</span> <=Keep it in mind<br /><br />Next run this command:<br /><br /><div class="bbcode_container" style="font-style: italic; font-weight: bold;">
<div class="bbcode_quote">
<div class="quote_container">
C:\Users\lyngtinh>netsh interface ipv4 set interface<span style="color: red;"> 11 </span>dadtransmits=0 store=persistent</div>
</div>
</div>
<br />Next, enter<br /><span style="font-style: italic; font-weight: bold;">Run > services.msc </span><span style="font-style: italic;">> disable DHCP Client service</span><br /><br />Final, restart your server.<br /><br />Good luck!<br />lyngtinh</div>
<div class="post-body entry-content" id="post-body-6583872186717714913" style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.6em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">
Source : <a href="http://lyngtinh.blogspot.com/" style="background-color: transparent;">http://lyngtinh.blogspot.com</a></div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-9361542070963660122012-03-01T23:13:00.002-08:002012-03-01T23:25:58.195-08:00Setting ISC DHCP Server Ubuntu<br />
<span style="color: blue;"><b><i>Rubah File /etc/default/isc-dhcp-server seperti kira-kira dibawah ini :</i></b></span><br />
_______________________________________________<br />
<span style="background-color: #9fc5e8;"># Defaults for dhcp initscript</span><br />
<span style="background-color: #9fc5e8;"># sourced by /etc/init.d/dhcp</span><br />
<span style="background-color: #9fc5e8;"># installed at /etc/default/isc-dhcp-server by the maintainer scripts</span><br />
<span style="background-color: #9fc5e8;"># This is a POSIX shell fragment</span><br />
<span style="background-color: #9fc5e8;"># On what interfaces should the DHCP server (dhcpd) serve DHCP requests?</span><br />
<span style="background-color: #9fc5e8;">#<span class="Apple-tab-span" style="white-space: pre;"> </span>Separate multiple interfaces with spaces, e.g. "eth0 eth1".</span><br />
<span style="background-color: #9fc5e8;">INTERFACES="eth0"</span><br />
________________________________________________<br />
<br />
<b><span style="color: blue;"><i>Kemudian File di /etc/dhcp/dhcpd.conf sebagai berikut :</i></span></b><br />
________________________________________________<br />
<br />
<span style="background-color: #9fc5e8;">#</span><br />
<span style="background-color: #9fc5e8;"># Sample configuration file for ISC dhcpd for Debian</span><br />
<span style="background-color: #9fc5e8;">#</span><br />
<span style="background-color: #9fc5e8;">ddns-update-style none;</span><br />
<span style="background-color: #9fc5e8;">log-facility local7;</span><br />
<span style="background-color: #9fc5e8;"># A slightly different configuration for an internal subnet.</span><br />
<span style="background-color: #9fc5e8;">subnet 192.168.100.0 netmask 255.255.255.0 {</span><br />
<span style="background-color: #9fc5e8;"> range 192.168.100.251 192.168.100.254;</span><br />
<span style="background-color: #9fc5e8;"> option domain-name-servers 192.168.100.6;</span><br />
<span style="background-color: #9fc5e8;"> option domain-name "sman1tumpang.sch.id";</span><br />
<span style="background-color: #9fc5e8;"> option routers 192.168.100.6;</span><br />
<span style="background-color: #9fc5e8;"> option broadcast-address 192.168.100.6;</span><br />
<span style="background-color: #9fc5e8;"> default-lease-time 600;</span><br />
<span style="background-color: #9fc5e8;"> max-lease-time 7200;</span><br />
<span style="background-color: #9fc5e8;">}</span><br />
______________________________________________<br />
<br />
<b><span style="color: blue;"><i>Jalankan service daemonnya :</i></span></b><br />
_________________________________<br />
<br />
<span style="background-color: #9fc5e8;">sudo /etc/init.d/isc-dhcp-server restart</span><br />
_________________________________<br />
<br />
<b><i><span style="color: blue;">Check dengan client Automatically DHCP......</span></i></b><br />
<br />Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-88531966199555386122012-02-11T17:56:00.001-08:002012-02-11T17:56:33.361-08:00WEBMIN : Installing on Debian<br />
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
If you are using the DEB version of webmin, first download the file from the <a href="http://www.webmin.com/download.html" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">downloads page</a>, or run the command :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb</code>then run the command :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">dpkg --install webmin_1.580_all.deb</code>The install will be done automatically to <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">/usr/share/webmin</tt>, the administration username set to <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">root</tt> and the password to your current root password. You should now be able to login to Webmin at the URL <a href="http://localhost:10000/" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">http://localhost:10000/</a>. Or if accessing it remotely, replace <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">localhost</tt>with your system's IP address.</div>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
If Debian complains about missing dependencies, you can install them with the command :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python</code>If you are installing on Ubuntu and the <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">apt-get</tt> command reports that some of the packages cannot be found, edit <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">/etc/apt/sources.list</tt> and make sure the lines ending with <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">universe</tt> are not commented out.</div>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
Some Debian-based distributions (Ubuntu in particular) don't allow logins by the <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">root</tt> user by default. However, the user created at system installation time can use <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">sudo</tt> to switch to root. Webmin will allow any user who has this <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">sudo</tt> capability to login with full root privileges.</div>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
If you want to connect from a remote server and your system has a firewall installed, see <a href="http://www.webmin.com/firewall.html" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">this page for instructions on how to open up port 10000</a>.</div>
<h1 style="background-attachment: initial; background-clip: initial; background-color: #cccccc; background-image: url(http://www.webmin.com/images/square-green.png); background-origin: initial; background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Tahoma, Verdana, 'Trebuchet MS', sans-serif; font-size: 14px; font: normal normal bold 125%/normal Verdana, 'Trebuchet MS', sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 5px; padding-left: 25px; padding-right: 0px; padding-top: 5px; text-align: left;">
Using the Webmin APT repository</h1>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
If you like to install and update Webmin via APT, edit the <tt style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">/etc/apt/sources.list</tt> file on your system and add the lines :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">deb http://download.webmin.com/download/repository sarge contrib<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib</code>You should also fetch and install my GPG key with which the repository is signed, with the commands :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">cd /root<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />wget http://www.webmin.com/jcameron-key.asc<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />apt-key add jcameron-key.asc</code>You will now be able to install with the commands :<code style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-color: rgb(242, 242, 242); border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(242, 242, 242); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(242, 242, 242); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(242, 242, 242); border-top-style: solid; border-top-width: 1px; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 5px; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;">apt-get update<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />apt-get install webmin</code>All dependencies should be resolved automatically.</div>
<h1 style="background-attachment: initial; background-clip: initial; background-color: #cccccc; background-image: url(http://www.webmin.com/images/square-green.png); background-origin: initial; background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Tahoma, Verdana, 'Trebuchet MS', sans-serif; font-size: 14px; font: normal normal bold 125%/normal Verdana, 'Trebuchet MS', sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 5px; padding-left: 25px; padding-right: 0px; padding-top: 5px; text-align: left;">
Supported Debian-based Distributions</h1>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
Webmin has been tested on all regular Debian releases, Ubuntu Linux, and derivatives like Xandros and APLINUX.</div>
<h1 style="background-attachment: initial; background-clip: initial; background-color: #cccccc; background-image: url(http://www.webmin.com/images/square-green.png); background-origin: initial; background-position: 3px 50%; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(239, 240, 241); border-bottom-style: solid; border-bottom-width: 1px; color: #88ac0b; font-family: Tahoma, Verdana, 'Trebuchet MS', sans-serif; font-size: 14px; font: normal normal bold 125%/normal Verdana, 'Trebuchet MS', sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 5px; padding-left: 25px; padding-right: 0px; padding-top: 5px; text-align: left;">
Source Packages</h1>
<div style="background-color: #cccccc; color: #333333; font-family: Verdana, Tahoma, arial, sans-serif; font-size: 11px; line-height: 17px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: left;">
The files needed to build the Debian package are <a href="http://download.webmin.com/download/deb/webmin_1.580.dsc" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">deb/webmin_1.580.dsc</a>,<a href="http://download.webmin.com/download/deb/webmin_1.580.diff" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">deb/webmin_1.580.diff</a>, and <a href="http://www.webmin.com/download/webmin-1.580.tar.gz" style="background: inherit; background: inherit; color: #4f82cb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">webmin-1.580.tar.gz</a> .</div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-2385098596050279872012-02-09T04:52:00.000-08:002012-02-09T04:52:00.663-08:00Install webmin di ubuntu server<br />
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Langsung aja gan pertama install paket berikut ini jika paket yang di butuhkan untuk menginstall web mint belum ke install</div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
kemudian ada dua cara untuk menginstall webmint yang pertama download paket .deb yang bisa di download di seperti berikut ini<span id="more-616" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"></span></div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570_all.deb</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Kemudian lakukan perintah berikut ini untuk menginstall paket .deb tersebut dan jangan lupa paket yang du butuhkan sudah ke install:</div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">dpkg --install webmin_1.570_all.deb</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Kemudian cara kedua melalui repo sitory webmin sendiri cara nya seperti berikut ini.</div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Tambahkan repo di atas si <strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">/etc/apt/sources.list </strong>Kemudian jangan lupa untuk key repo itu sendiri caranya seperti berikut</div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Kemudian lakukan perintah update dan install</div>
<pre class="brush:bash;" style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-color: rgb(51, 51, 51); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-image: initial; border-left-color: rgb(51, 51, 51); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(51, 51, 51); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(51, 51, 51); border-top-style: solid; border-top-width: 1px; color: #b8babb; font-size: 12px; line-height: 19px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 10px; padding-left: 20px; padding-right: 20px; padding-top: 10px; vertical-align: baseline;">sudo apt-get update
sudo apt-get install webmin</pre>
<div style="background-attachment: initial; background-clip: initial; background-color: #0b0b0b; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #b8babb; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 15px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Sekian.</div>Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-17044462467730711972011-12-09T00:11:00.001-08:002011-12-09T00:12:43.845-08:00Extension Joomla! paling populer<br />
Sudah sering diperbincangkan bahwa Joomla! merupakan salah satu CMS yang banyak digunakan, karena selain Free juga bersifat Open Source. Dengan sifatnya yang Open Source, memungkinkan siapapun untuk melakukan modifikasi atau bahkan membuat fasilitas-fasilitas baru seperti Component, Module, Plugin, Template, dan Language atau yang dikenal dengan sebutan "Extensions".<br />
Dari 10 daftar extensions Joomla! terpopuler versi Joomla.org, ternyata Community Builder menempati posisi teratas. Community Builder (CB) merupakan extensions yang memungkinkan para webmaster untuk membangun komunitas bagi para user di websitenya.<br />
Banyak kelebihan yang ditawarkan CB diantaranya adalah koneksi antar user, upload gambar/photo, newsletter, forum, dan banyak lagi. CB dapat digunakan baik untuk system Joomla! versi 1.0 maupun 1.5.<br />
<br />
Selengkapnya 10 besar extension Joomla yang paling populer versi Joomla.org adalah seperti berikut:<br />
<br />
<ol>
<li>Community Builder (CB). Membangun komunitas user. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Joomla Content Editor (JCE). Membuat dan mengedit content Joomla! dengan mudah dan fasilitas yang lebih lengkap. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Expose Flash Gallery. Slide show gambar-gambar dengan berbagai macam kelebihan. Kompatibel Joomla! 1.0, 1.5.</li>
<li>VirtueMart. Untuk membangun toko online yang lengkap. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Sigsiu Online Business Index 2 (SOBI 2). Untuk memperlihatkan daftar perusahaan, klub, individu, toko-toko, produk-produk, dan lain-lain, dapat ditampilkan menurut kategori. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Events Calendar. Kalender event/kegiatan/aktifitas. Kompatibel Joomla! 1.0, 1.5.</li>
<li>JoomlaXplorer. Fasilitas untuk mengelola File secara langsung di server tanpa harus masuk ke cPanel. Kompatibel Joomla! 1.0, 1.5.</li>
<li>AllVideos 2.5.3. Menyisipkan video dari youtube, metacafe, dan banyak lagi ke dalam content Joomla!. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Simple Image Gallery. Menyisipkan galeri gambag-gambar ke dalam content dengan tampilan yang menarik. Kompatibel Joomla! 1.0, 1.5.</li>
<li>Joom!Fish. Mengelola content Joomla! dengan banyak bahasa. Kompatibel Joomla! 1.0, 1.5.</li>
</ol>
<br />
Jika tertarik silahkan download di http://extensions.joomla.org/<br />
Semoga Bermanfaat.<br />Welly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0tag:blogger.com,1999:blog-1448435190591673698.post-86456970019765581292011-07-09T07:18:00.001-07:002011-07-09T07:18:43.812-07:00Mengatur bandwidth download dengan squid delay poolMengatur bandwidth download dengan squid delay pool<br />
By Henry Saptono (boypyt@gmail.com)<br />
Aug 2008<br />
Mau memberikan jaminan download file dari internet yang “fair” ? coba gunakan fitur delay pool yang<br />
disediakan oleh squid (proxy server). Delay pool dapat Anda jadikan sebagai cara termudah bagi Anda<br />
dalam mengelola bandwidth internet pada kantor atau warnet Anda, meskipun hanya sebatas mengatur<br />
bandwidth download file via http atau ftp, ternyata delay pool dapat memberikan layanan jaringan yang<br />
lebih berkualitas bagi jaringan dikantor atau warnet Anda.<br />
Layanan akses internet yang cukup populer adalah layanan akses web (http), bisa dikatakan saat ini<br />
hampir sebagian aplikasi berjalan dalam environment web, sehingga perlu perlakukan yang khusus untuk<br />
layanan web(http) ini. Penggunan internet di warnet umumnya mereka mengakses berbagai aplikasi dan<br />
layanan di internet melalui layanan http ini, mereka mendownload file melalui layanan http , sehingga<br />
bagi sebuah warnet pengaturan traffic download file lewat http ini sangat penting agar seluruh penggunan<br />
memperoleh kualitas jaringan yang baik dan terjamin. Tidak boleh ada seorang atau beberapa pengguna<br />
internet didalam jaringan Anda yang memakan bandwidth dengan 'rakus' dikarenakan dia mendownload<br />
suatu file atau menonton video di youtube dan lainlain. Tentunya hal tersebut dapat Anda atur, salah<br />
satunya menerapkan web caching dengan proxy server seperti squid (http://www.squidcache.org), dan<br />
jaminan kualitas download file yang adil dapat didukung dengan memanfaatkan fitur delay pool yang ada<br />
di squid.<br />
Dalam tulisan kali ini penulis akan menjelaskan bagaimana membangun sebuah proxy server dengan<br />
squid untuk memberikan atau menyediakan web caching dan pengaturan bandwidth download file via<br />
http. Harapannya adalah terciptanya jaringan akses internet yang berkualitas dan terjamin bagi kantor<br />
atau warnet Anda. Dalam tulisan ini penulis menggunakan sistem operasi Linux distro CentOS 5, dan<br />
software squid yang digunakan adalah bawaan distro CentOS yaitu squid2.6.STABLE63.el5.<br />
Diasumsikan sistem operasi linux CentOS sudah Anda install dan software squid sudah Anda install juga<br />
saat instalasi linux, namun jika squid belum terinstall maka Anda dapat lakukan instalasi dengan yum<br />
atau manual seperti berikut ini:<br />
# ym install squid<br />
atau<br />
# rpm -ivh /media/cdrom/CentOS/squid-2.6.STABLE6-3.el5.i386.rpmI. Skenario<br />
Agar memudahkan penjelasan maka penulis membuat skenario jaringan LAN sebagai berikut:<br />
● Koneksi internet jaringan menggunakan ADSL dengan downlink 512kbps (512 kilo bit per<br />
second)<br />
● Komputer yang bertindak sebagai proxy server adalah komputer yang juga berperan sebagai<br />
gateway (internet sharing) pada jaringan LAN. Komputer ini memiliki dua buah network<br />
interface, yaitu eth0 dan eth1. Network interface eth0 terhubung dengan modem ADSL,<br />
sedangkan eth1 terhubung dengan hub atau switch LAN. Network Address LAN adalah<br />
192.168.1.0/24.<br />
● Konfigurasi proxy yang akan diterapkan adalah transparent proxy, dengan skenario pengaturan<br />
bandwidth download file adalah setiap komputer dalam jaringan diatur agar bandwidth download<br />
via http sebesar sekitar 16KBps(16 kilo byte per second), dengan maximum bucket 64KBps.<br />
II. Konfigurasi Internet sharing (gateway)<br />
Langkah konfigurasi pertama adalah mengkonfigurasi komputer bakal proxy server sebagai internet<br />
sharing (gateway), yaitu sebagai berikut:<br />
■ Enbale IP Forwarding<br />
# echo 1 > /proc/sys/net/ipv4/ip_forward<br />
atau edit file /etc/sysctl.conf, dan set parameter “net.ipv4.ip_forward=1”<br />
■ Enable IP Masquerade<br />
Diasumsikan default policy firewall Anda adalah ACCEPT, dan tidak ada rule spesifik apapun<br />
pada konfigurasi firewall di komputer proxy server sebelumnya.<br />
# service iptables stop<br />
# iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j<br />
MASQUERADE<br />
■ Rule iptables untuk mendukung Transparent proxy<br />
# iptables -t nat -A PREROUTING -p tcp -s 192.168.1.0/24 –dport 80 -j<br />
REDIRECT –to-ports 3128<br />
# service iptables save<br />
# chkconfig iptables on Rule firewall tersebut akan menyebabkan setiap koneksi dari LAN dengan port tujuan 80 kemanapun<br />
akan di arahkan ulang sehingga menuju local process pada komputer gateway(proxy server) yaitu proses<br />
yang berjalan pada port 3128 (squid).<br />
III. Konfigurasi squid standar<br />
Langkah selanjutnya adalah konfigurasi squid, secara default konfigurasi squid akan memblok semua<br />
koneksi dari jaringan LAN ke internet. Untuk itu kita harus melakukan konfigurasi ulang dengan<br />
mengedit file /etc/squid/squid.conf. Beberapa parameter konfigurasi squid yang sebelumnya perlu Anda<br />
setup diantaranya adalah parameter berikut ini:<br />
● visible_hostname : parameter ini mendefinisikan nama komputer proxy server Anda , nilai<br />
default parameter ini tidak diset. Terkadang pengguna awam sering menjumpai squid errror<br />
dikarenakan parameter ini tidak diset dan squid mencoba menggunkan nama hostname komputer<br />
Anda yang ternyata hostname nya tidak ditulis lengkap dengan nama domain. parameter ini dapat<br />
diisi dengan nama komputer yang dilengkapi dengan nama domain. Misalnya sebagai berikut:<br />
visible_hostname proxy.coba.co.id<br />
● http_port: parameter ini menunjukkan nomor port service squid. Nilai defaultnya dalah 3128.<br />
Jika Anda ingin menerapkan transparent proxy maka nilai parameter ini harus diset sebagai<br />
berikut:<br />
http_port 3128 transparent<br />
● acl: parameter ini digunakan untuk mendefinisikan access control list format penulisannya<br />
sebagai berikut:<br />
acl <nama-acl> <tipe-acl> <pattern> [<pattern...>] </pattern...></pattern></tipe-acl></nama-acl><br />
Dalam konfigurasi squid yang kita skenariokan , Anda harus membuat sebuah acl yang<br />
menunjukkan jaringan local Anda, Sebaiknya definisi acl ini Anda tulis pada file konfigurasi squid yaitu<br />
dibawah baris yang bertuliskan #INSERT YOUR OWN RULE HERE(S) ......., seperti berikut ini:<br />
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS<br />
acl lan src 192.168.1.0/24<br />
● http_access: parameter ini menunjukkan rule yang akan diterapkan pada suatu access control list.<br />
Untuk skenario kita maka Anda harus mendefinisikan rule yang akan mengijinkan LAN Anda<br />
untuk dapat mengakses internet (tulis rule tersebut dibagian bawah dari pendefinisian acl ),<br />
seperti berikut ini:<br />
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS<br />
acl lan src 192.168.1.0/24<br />
http_access allow lanIV. Konfigurasi squid delay pool<br />
Untuk mengatur bandwidth download sesuai skenario yaitu menyediakan bandwidth download untuk<br />
setiap host dalam LAN sebesar 16KBps dan maksimal bucket 64KBps, maka beberapa parameter<br />
konfigurasi squid yang berkaitan dengan delay pool yang harus Anda set adalah sebagai berikut (edit file<br />
/etc/squid/squid.conf):<br />
● delay_pool: parameter ini menentukan ada berapakah pool yang akan Anda terapkan. Misalnya<br />
dalam skenario kita ini hanya akan dibuat sebuah pool, maka konfigurasinya sebagai berikut:<br />
delay_pool 1<br />
● delay_class: parameter ini mendefinisikan class untuk setiap pool yang ada. Setiap pool harus<br />
memiliki sebuah class (delay_class) tidak lebih dan tidak kurang. Jadi kalau Ada 2 delay pool<br />
maka harus ada 2 delay_class. Class delay pool terdiri dari 3 class, yaitu :<br />
■ class 1 : untuk delay pool dengan class ini maka semuanya dibatasi dengan single bucket<br />
agregate. Setiap class harus berasosiasi dengan single bucket agregate. Single bucket<br />
agregtae ini adalah bandwidth yang diasosiasikan dengan setiap class.<br />
■ Class 2: untuk delay pool dengan class ini maka semuanya dibatasi dengan single bucket<br />
agregate, dan suatu “individual” bucket untuk stiap host atau komputer dalm jaringan<br />
class C.<br />
■ Class 3: untuk delay pool dengan class ini maka semuanya dibatasi dengan single bucket<br />
agregate, dan “networke” bucket untuk setiap network class C, serta suatu individual<br />
bucket untuk stiap host atau komputer dalm jaringan class C. Untuk class 3 ini biasanya<br />
digunakan jika LAN Anda terdiri dari beberapa segment jaringan class C.<br />
Untuk konfigurasi delay_class yang sesuai dengan skenario kita adalah seperti berikut ini:<br />
delay_class 1 2<br />
● delay_access: parameter ini menentukan suatu request ke proxy server harus diletakkan pada<br />
delay pool yang mana. Konfigurasi delay_access yang sesuai dengan skenario kita adalah seperti<br />
berikut ini:<br />
delay_access 1 allow lan<br />
delay_access 1 deny all● delay_parameters: parameter ini mendefinisikan parameter parameter untuk suatu delay pool.<br />
Format penulisan parameter delay_parameters adalah sebagai berikut:<br />
delay_parameter <pool> <aggregate bucket=""> [<network>] [<individual>]</individual></network></aggregate></pool><br />
Untuk skenario kita maka nilai delay_parameters nya sebagai berikut:<br />
delay_parameters 1 -1/-1 16000/64000<br />
catatan: 1/1 berarti bandwidth untuk aggregate nya diset unlimited (sesuai dengan bandwidth internet<br />
yang tersedia dari ISP). 16000(16KBps) adalah total bandwidth ratarata yang bakal diperloleh setiap host<br />
dalam LAN, dan 64000(64KBps) adalah nilai bandwidth maksimum yang dapat tersedia dalam bucket<br />
disetiap saat.<br />
Setelah konfigurasi squid Anda lakukan cobalah Anda restart atau start service squid seperti berikut ini:<br />
# service squid start<br />
# chkconfig squid on<br />
Kemudian coba Anda gunakan web browser di beberapa client dan cobalah Anda download suatu file<br />
diinternet kemudian perhatikan kecepatan download pada window download. Berikut ini gambar 1, yang<br />
menunjukkan proses download pada suatu komputer ketika mendownload sebuah file (perhatikan<br />
kecepatan perdetiknya sekitar 16KBps), dan juga perhatikan gambar2 yang menggambarkan kecepatan<br />
saat mendownload 2 buah file bersamaan (perhatikan jika di total kecepatan perdetiknya sekitar 16KBps )<br />
pada suatu host. Gambar1. Mendownload sebuah fileGambar2. Mendownload dua buah fileWelly Agung Kusuma Riva, S.Kom.http://www.blogger.com/profile/00265494199508708344noreply@blogger.com0