Cara Install Tengine, PHP, MySQL, WordPress di Ubuntu 20.04

&NewLine;<p class&equals;"wp-block-paragraph"><strong>Cara install Tengine &&num;8211&semi; <&sol;strong>Jadi&comma; beberapa waktu lalu saya menemukan sebuah website yang menggunakan teknologi <a href&equals;"http&colon;&sol;&sol;tengine&period;taobao&period;org&sol;" target&equals;"&lowbar;blank" rel&equals;"noreferrer noopener nofollow">tengine<&sol;a> untuk web servernya&period; Akhirnya saya <em>kepo <&sol;em>soal tengine dan sekaligus mencoba-coba installasi tengine&period; Setelah mengalami beberapa kesulitan seperti installasi ssl yang cukup ribet&comma; akhirnya saya berhasil melakukan Installasi Tengine&comma; PHP&comma; MySQL&comma; WordPress di Ubuntu 20&period;04 yang akan saya share pada artikel kali ini&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Sebelum masuk ke tutorial <strong>Cara Install Tengine&comma; PHP&comma; MySQL&comma; WordPress di Ubuntu 20&period;04<&sol;strong>&period; Saya akan membahas sedikit tentang tengine&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading"><strong>Apa itu Tengine&quest;<&sol;strong><&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Tengine adalah server web yang dibuat oleh Taobao&comma; situs web e-commerce terbesar di Asia&period; Ini didasarkan pada server HTTP Nginx dan memiliki banyak fitur lanjutan&period; Tengine telah terbukti sangat stabil dan efisien di beberapa dari 100 situs web teratas di dunia&comma; termasuk taobao&period;com dan tmall&period;com&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Tengine telah menjadi proyek open source sejak Desember 2011&period; Proyek ini secara aktif dikembangkan oleh tim Tengine&comma; yang anggota intinya berasal dari Taobao&comma; Sogou dan perusahaan Internet lainnya&period; Tengine adalah upaya komunitas dan setiap orang didorong untuk terlibat&period; <strong>Baca juga&colon; <&sol;strong><a href&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;cara-install-nginx-di-debian&sol;"><strong>Cara Install Nginx di Debian<&sol;strong><&sol;a><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Jadi&comma; tengine adalah sebuah https akselerator yang menggunakan source dari nginx&period; yang dikembangkan lebih lanjut oleh tim taobao&period; Karena tengine menggunakan kode sumber dari nginx&comma; seperti yang kita tahu bahwa nginx merupakan software opensource&comma; demikian pula dengan tengine&period; Tengine dapat kita gunakan secara gratis&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Pada artikel cara install tengine ini&comma; saya menggunakan <a href&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;cara-membuat-server-sendiri-di-digital-ocean&sol;" target&equals;"&lowbar;blank" rel&equals;"noreferrer noopener">VPS dari digital ocean<&sol;a> dengan distro Ubuntu 20&period;04 LTS&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading">Required Library<&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Sebelum melakukan installasi tengine&comma; ada beberapa library yang diperlukan diantaranya&colon;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<ul class&equals;"wp-block-list"> &NewLine;<li><a href&equals;"https&colon;&sol;&sol;www&period;openssl&period;org&sol;">OpenSSL<&sol;a> library version between 1&period;0&period;2–1&period;1&period;0<&sol;li> &NewLine;<li><a href&equals;"https&colon;&sol;&sol;www&period;zlib&period;net&sol;">Zlib<&sol;a> library version between 1&period;1&period;3–1&period;2&period;11<&sol;li> &NewLine;<li><a href&equals;"http&colon;&sol;&sol;www&period;pcre&period;org&sol;">PCRE<&sol;a> library version between 4&period;4–8&period;40<&sol;li> &NewLine;<li><a href&equals;"https&colon;&sol;&sol;gcc&period;gnu&period;org&sol;">GCC<&sol;a> Compiler<&sol;li> &NewLine;<li><a href&equals;"http&colon;&sol;&sol;jemalloc&period;net&sol;">jemalloc<&sol;a><&sol;li> &NewLine;<li><a href&equals;"https&colon;&sol;&sol;github&period;com&sol;ivmai&sol;libatomic&lowbar;ops">libatomic-ops<&sol;a><&sol;li> &NewLine;<&sol;ul> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Untuk menginstall library-library tersebut&comma; jalankan perintah dibawah ini&colon;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<pre><code> &NewLine;apt install build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libjemalloc-dev libatomic-ops-dev make &NewLine;<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<h2 class&equals;"wp-block-heading"><strong>Cara Install Tengine&comma; PHP&comma; MySQL &amp&semi; WordPress<&sol;strong><&sol;h2> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading"><strong>Install Tengine<&sol;strong><&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p>Download tengine dari repository github<&sol;p> &NewLine;<pre><code>git clone https&colon;&sol;&sol;github&period;com&sol;alibaba&sol;tengine<&sol;code><&sol;pre> &NewLine;<p>Compile Tengine&comma; Jalankan satu persatu perintah dibawah ini&colon;<&sol;p> &NewLine;<pre><code>mkdir &sol;usr&sol;local&sol;nginx<&sol;code><&sol;pre> &NewLine;<pre><code>mkdir &sol;var&sol;tmp&sol;nginx<&sol;code><&sol;pre> &NewLine;<pre><code>cd tengine<&sol;code><&sol;pre> &NewLine;<pre><code>&period;&sol;configure --prefix&equals;&sol;usr&sol;local&sol;nginx &bsol; &NewLine;--pid-path&equals;&sol;var&sol;run&sol;tengine&period;pid &bsol; &NewLine;--error-log-path&equals;&sol;var&sol;log&sol;nginx&sol;error&period;log &bsol; &NewLine;--user&equals;www-data &bsol; &NewLine;--group&equals;www-data &bsol; &NewLine;--with-poll&lowbar;module &bsol; &NewLine;--with-http&lowbar;stub&lowbar;status&lowbar;module &bsol; &NewLine;--with-http&lowbar;gzip&lowbar;static&lowbar;module &bsol; &NewLine;--with-http&lowbar;stub&lowbar;status&lowbar;module &bsol; &NewLine;--with-http&lowbar;sub&lowbar;module &bsol; &NewLine;--add-module&equals;&period;&sol;modules&sol;ngx&lowbar;http&lowbar;concat&lowbar;module &bsol; &NewLine;--http-fastcgi-temp-path&equals;&sol;var&sol;tmp&sol;nginx&sol;fastcgi &bsol; &NewLine;--http-scgi-temp-path&equals;&sol;var&sol;tmp&sol;nginx&sol;scgi &bsol; &NewLine;--http-uwsgi-temp-path&equals;&sol;var&sol;tmp&sol;nginx&sol;uwsgi &bsol; &NewLine;--http-client-body-temp-path&equals;&sol;var&sol;tmp&sol;nginx&sol;client &bsol; &NewLine;--with-ipv6 &bsol; &NewLine;--with-http&lowbar;v2&lowbar;module &bsol; &NewLine;--with-http&lowbar;ssl&lowbar;module &bsol; &NewLine;--with-http&lowbar;realip&lowbar;module &bsol; &NewLine;--add-module&equals;&period;&sol;modules&sol;ngx&lowbar;http&lowbar;sysguard&lowbar;module &NewLine;<&sol;code><&sol;pre> &NewLine;<pre><code>make &amp&semi;&amp&semi; make install &NewLine;<&sol;code><&sol;pre> &NewLine;<p>Sekarang Tengine sudah terinstall&period; Tinggal atur user dan hak akses direktori nya saja&period;<&sol;p> &NewLine;<pre><code>useradd -s &sol;sbin&sol;nologin www-data<&sol;code><&sol;pre> &NewLine;<pre><code>cd &sol;usr&sol;local&sol;nginx<&sol;code><&sol;pre> &NewLine;<p>memberi akses ke directory html&comma; secara default html directory tengine berada di &sol;usr&sol;local&sol;nginx&sol;html anda bisa mengubahnya sesuai keinginan<&sol;p> &NewLine;<pre><code>chown www-data&colon;www-data -R &sol;usr&sol;local&sol;nginx&sol;html<&sol;code><&sol;pre> &NewLine;<pre><code>chown www-data&colon;www-data -R &sol;usr&sol;local&sol;nginx&sol;logs<&sol;code><&sol;pre> &NewLine;<pre><code>chown www-data&colon;www-data -R &sol;var&sol;tmp&sol;nginx<&sol;code><&sol;pre> &NewLine;<pre><code>chmod 700 -R &sol;usr&sol;local&sol;nginx&sol;html<&sol;code><&sol;pre> &NewLine;<pre><code>chmod 700 -R &sol;var&sol;tmp&sol;nginx<&sol;code><&sol;pre> &NewLine;<pre><code>chmod 777 -R &sol;usr&sol;local&sol;nginx&sol;logs<&sol;code><&sol;pre> &NewLine;<pre><code>ln -s &sol;usr&sol;local&sol;nginx&sol;sbin&sol;nginx &sol;usr&sol;bin&sol;nginx<&sol;code><&sol;pre> &NewLine;<p>Tes konfigurasi tengine lalu jalankan service nya&period;<&sol;p> &NewLine;<pre><code>nginx -t<&sol;code><&sol;pre> &NewLine;<p>Untuk menjalankan tengine cukup jalankan perintah seperti berikut ini&period;<&sol;p> &NewLine;<pre><code>nginx<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Sekarang coba buka browser anda dan akses ip atau domain vps anda&period; Jika muncul seperti tampilan dibawah ini&comma; itu artinya anda telah berhasil melakukan installasi tengine di server ubuntu&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7558" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;455-min-1024x424&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading"><strong>Install PHP-FPM<&sol;strong><&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p>Install PHP7&period;4<&sol;p> &NewLine;<pre><code>apt-get install php7&period;4-common php7&period;4-readline php7&period;4-fpm php7&period;4-cli php7&period;4-gd php7&period;4-mysql php7&period;4-curl php7&period;4-mbstring php7&period;4-opcache php7&period;4-json php7&period;4-xml -y &NewLine;<&sol;code><&sol;pre> &NewLine;<p>Mengubah pengaturan default PHP<&sol;p> &NewLine;<pre><code>sed -i "s&sol;memory&lowbar;limit &equals; &period;&ast;&sol;memory&lowbar;limit &equals; 256M&sol;" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;php&period;ini<&sol;code><&sol;pre> &NewLine;<pre><code>sed -i "s&sol;upload&lowbar;max&lowbar;filesize &equals; &period;&ast;&sol;upload&lowbar;max&lowbar;filesize &equals; 128M&sol;" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;php&period;ini<&sol;code><&sol;pre> &NewLine;<pre><code>sed -i "s&sol;zlib&period;output&lowbar;compression &equals; &period;&ast;&sol;zlib&period;output&lowbar;compression &equals; on&sol;" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;php&period;ini<&sol;code><&sol;pre> &NewLine;<pre><code>sed -i "s&sol;max&lowbar;execution&lowbar;time &equals; &period;&ast;&sol;max&lowbar;execution&lowbar;time &equals; 18000&sol;" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;php&period;ini<&sol;code><&sol;pre> &NewLine;<pre><code>sed -i "s&sol;&semi;cgi&period;fix&lowbar;pathinfo&equals;1&sol;&semi;cgi&period;fix&lowbar;pathinfo&equals;0&sol;" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;php&period;ini<&sol;code><&sol;pre> &NewLine;<pre><code>sed -i "s&commat;listen &equals; &sol;run&sol;php&sol;php7&period;4-fpm&period;sock&commat;listen &equals; 127&period;0&period;0&period;1&colon;9000&commat;g" &sol;etc&sol;php&sol;7&period;4&sol;fpm&sol;pool&period;d&sol;www&period;conf<&sol;code><&sol;pre> &NewLine;<p>Apply configuration<&sol;p> &NewLine;<pre><code>&sol;etc&sol;init&period;d&sol;php7&period;4-fpm restart<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading"><strong>Install MariaDB<&sol;strong><&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p>Install MariaBD Server &amp&semi; Client<&sol;p> &NewLine;<pre><code>apt-get install mariadb-server mariadb-client -y<&sol;code><&sol;pre> &NewLine;<p>Pada langkah ini anda hanya disuruh mengikuti instruksi yang diberikan&period;<&sol;p> &NewLine;<pre><code>mysql&lowbar;secure&lowbar;installation<&sol;code><&sol;pre> &NewLine;<p>Logs<&sol;p> &NewLine;<pre><code>Enter current password for root &lpar;enter for none&rpar;&colon; &NewLine;OK&comma; successfully used password&comma; moving on&period;&period;&period; &NewLine; &NewLine;Setting the root password ensures that nobody can log into the MariaDB &NewLine;root user without the proper authorisation&period; &NewLine; &NewLine;Set root password&quest; &lbrack;Y&sol;n&rsqb; y &NewLine;New password&colon; &NewLine;Re-enter new password&colon; &NewLine;Password updated successfully&excl; &NewLine;Reloading privilege tables&period;&period; &NewLine; &period;&period;&period; Success&excl; &NewLine; &NewLine; &NewLine;By default&comma; a MariaDB installation has an anonymous user&comma; allowing anyone &NewLine;to log into MariaDB without having to have a user account created for &NewLine;them&period; This is intended only for testing&comma; and to make the installation &NewLine;go a bit smoother&period; You should remove them before moving into a &NewLine;production environment&period; &NewLine; &NewLine;Remove anonymous users&quest; &lbrack;Y&sol;n&rsqb; n &NewLine; &period;&period;&period; skipping&period; &NewLine; &NewLine;Normally&comma; root should only be allowed to connect from 'localhost'&period; This &NewLine;ensures that someone cannot guess at the root password from the network&period; &NewLine; &NewLine;Disallow root login remotely&quest; &lbrack;Y&sol;n&rsqb; n &NewLine; &period;&period;&period; skipping&period; &NewLine; &NewLine;By default&comma; MariaDB comes with a database named 'test' that anyone can &NewLine;access&period; This is also intended only for testing&comma; and should be removed &NewLine;before moving into a production environment&period; &NewLine; &NewLine;Remove test database and access to it&quest; &lbrack;Y&sol;n&rsqb; y &NewLine; - Dropping test database&period;&period;&period; &NewLine; &period;&period;&period; Success&excl; &NewLine; - Removing privileges on test database&period;&period;&period; &NewLine; &period;&period;&period; Success&excl; &NewLine; &NewLine;Reloading the privilege tables will ensure that all changes made so far &NewLine;will take effect immediately&period; &NewLine; &NewLine;Reload privilege tables now&quest; &lbrack;Y&sol;n&rsqb; y &NewLine; &period;&period;&period; Success&excl; &NewLine; &NewLine;Cleaning up&period;&period;&period; &NewLine; &NewLine;All done&excl; If you've completed all of the above steps&comma; your MariaDB &NewLine;installation should now be secure&period; &NewLine; &NewLine;Thanks for using MariaDB&excl;<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph"><strong>Mengatur Server Block Tengine<&sol;strong><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Meskipun tengine memiliki source yang sama dengan nginx&comma; tapi ada perbedaan dalam pengaturan server block tengine&period; Kalau di nginx&comma; kita bisa mengatur virtual host per file&period; Namun kalau di tengine kita hanya mengatur virtual host di dalam 1 file yaitu di <em>nginx&period;conf<&sol;em><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p>Berikut ini adalah gambaran dari pengaturan virtualhost tengine<&sol;p> &NewLine;<pre><code>stream &lbrace; &NewLine; server &lbrace; &NewLine; listen 443 ssl&semi; &NewLine; server&lowbar;name www&period;domain1&period;com&semi; &NewLine; &period;&period;&period;&period;&period;&period; &NewLine; &rcub; &NewLine; &NewLine; server &lbrace; &NewLine; listen 443 ssl&semi; &NewLine; server&lowbar;name www&period;domain2&period;com&semi; &NewLine; &period;&period;&period;&period;&period;&period; &NewLine; &rcub; &NewLine; &NewLine; &num;Default server&comma; first server block will be used &NewLine; &num;if not such default server is provied&period; &NewLine; server &lbrace; &NewLine; listen 443 ssl default&semi; &NewLine; &period;&period;&period;&period; &NewLine; &rcub; &NewLine; &NewLine;&rcub;<&sol;code><&sol;pre> &NewLine;<p>Jadi&comma; jika anda mempunyai lebih dari 1 domain&comma; anda hanya perlu menambahkan server block berikutnya&comma; namun masih dalam http block&period; Karena kita akan mengubah konfigurasi tengine&comma; kita backup dulu nginx&period;conf file nya&period;<&sol;p> &NewLine;<pre><code>cp &sol;usr&sol;local&sol;nginx&sol;conf&sol;nginx&period;conf &sol;root&sol;<&sol;code><&sol;pre> &NewLine;<p>Lalu&comma; kosongkan konfigurasi yang lama&comma;<&sol;p> &NewLine;<pre><code>cat &sol;dev&sol;null &gt&semi; &sol;usr&sol;local&sol;nginx&sol;conf&sol;nginx&period;conf<&sol;code><&sol;pre> &NewLine;<p>Secara default&comma; sebenarnya konfigurasi tengine hanya seperti dibawah ini&period;<&sol;p> &NewLine;<pre><code> &NewLine;user www-data&semi; &NewLine;worker&lowbar;processes 1&semi; &NewLine; &NewLine;events &lbrace; &NewLine; worker&lowbar;connections 1024&semi; &NewLine;&rcub; &NewLine; &NewLine; &NewLine;http &lbrace; &NewLine; include mime&period;types&semi; &NewLine; default&lowbar;type application&sol;octet-stream&semi; &NewLine; sendfile on&semi; &NewLine; keepalive&lowbar;timeout 65&semi; &NewLine; &NewLine; gzip on&semi; &NewLine; &NewLine; server &lbrace; &NewLine; listen 80&semi; &NewLine; server&lowbar;name localhost&semi; &NewLine; location &sol; &lbrace; &NewLine; root html&semi; &NewLine; index index&period;html index&period;htm&semi; &NewLine; &rcub; &NewLine; &NewLine; error&lowbar;page 500 502 503 504 &sol;50x&period;html&semi; &NewLine; location &equals; &sol;50x&period;html &lbrace; &NewLine; root html&semi; &NewLine; &rcub; &NewLine; &NewLine; &rcub; &NewLine; &NewLine;&rcub;<&sol;code><&sol;pre> &NewLine;<p>Namun&comma; jika ingin menggunakan wordpress maka ada beberapa perubahan didalam konfigurasinya&period; Saya tidak bisa jelaskan baris per-baris&period; Cukup perhatikan saja tanda komen &lpar;&num;&rpar; yang saya berikan&period;<&sol;p> &NewLine;<pre><code>user www-data&semi; &NewLine;worker&lowbar;processes 1&semi; &NewLine; &NewLine;events &lbrace; &NewLine; worker&lowbar;connections 1024&semi; &NewLine;&rcub; &NewLine; &NewLine; &NewLine;http &lbrace; &NewLine; include mime&period;types&semi; &NewLine; default&lowbar;type application&sol;octet-stream&semi; &NewLine; sendfile on&semi; &NewLine; keepalive&lowbar;timeout 65&semi; &NewLine; &NewLine; gzip on&semi; &NewLine; &NewLine; server &lbrace; &NewLine; listen 80&semi; &NewLine; root &sol;usr&sol;local&sol;nginx&sol;html&sol;&semi; &num;lokasi file website anda &NewLine; server&lowbar;name dev&period;tutorialpedia&period;net&semi; &num;nama domain anda &NewLine; index index&period;html index&period;htm index&period;php&semi; &NewLine; &NewLine; location &sol; &lbrace; &NewLine; try&lowbar;files &dollar;uri &dollar;uri&sol; &sol;index&period;php&quest;&dollar;args&semi; &NewLine; &rcub; &NewLine; &NewLine; &num;konfigurasi PHP &NewLine; location ~ &bsol;&period;php&dollar; &lbrace; &NewLine; fastcgi&lowbar;pass 127&period;0&period;0&period;1&colon;9000&semi; &NewLine; fastcgi&lowbar;index index&period;php&semi; &NewLine; fastcgi&lowbar;param SCRIPT&lowbar;FILENAME &dollar;document&lowbar;root&dollar;fastcgi&lowbar;script&lowbar;name&semi; &NewLine; include fastcgi&lowbar;params&semi; &NewLine; fastcgi&lowbar;cache&lowbar;valid 200 60m&semi; &NewLine; &rcub; &NewLine; error&lowbar;page 500 502 503 504 &sol;50x&period;html&semi; &NewLine; location &equals; &sol;50x&period;html &lbrace; &NewLine; root html&semi; &NewLine; &rcub; &NewLine; &NewLine; &rcub; &NewLine; &NewLine;&rcub;<&sol;code><&sol;pre> &NewLine;<p>Sebelum apply configuration sebaiknya test dulu konfignya dengan cara&period;<&sol;p> &NewLine;<pre><code>nginx -t<&sol;code><&sol;pre> &NewLine;<p>Jika output yang dihasilkan <i>test is succesful<&sol;i> Lalu restart tengine<&sol;p> &NewLine;<pre><code>nginx -s reload<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<h3 class&equals;"wp-block-heading"><strong>Install WordPress<&sol;strong><&sol;h3> &NewLine; &NewLine; &NewLine; &NewLine;<p>Installasi wordpress hampir sama pada umumnya&period; masuk ke folder direktori html tengine dan Download WordPress<&sol;p> &NewLine;<pre><code>cd &sol;usr&sol;local&sol;nginx&sol;html &amp&semi;&amp&semi; wget https&colon;&sol;&sol;wordpress&period;org&sol;latest&period;tar&period;gz<&sol;code><&sol;pre> &NewLine;<p>Ekstrak wordpress dan letakkan di root direktori<&sol;p> &NewLine;<pre><code>tar -x --xform s&sol;wordpress&sol;&sol; -f &sol;usr&sol;local&sol;nginx&sol;html&sol;latest&period;tar&period;gz -C &sol;usr&sol;local&sol;nginx&sol;html&sol;<&sol;code><&sol;pre> &NewLine;<p>beri hak akses tengine ke folder<&sol;p> &NewLine;<pre><code>chown -R www-data&colon;www-data &sol;usr&sol;local&sol;nginx&sol;html&sol;<&sol;code><&sol;pre> &NewLine;<pre><code>chmod -R 755 &sol;usr&sol;local&sol;nginx&sol;html&sol;<&sol;code><&sol;pre> &NewLine;<p>hapus file yang tidak perlu yang berada di root direktori<&sol;p> &NewLine;<pre><code>rm &sol;usr&sol;local&sol;nginx&sol;html&sol;index&period;html<&sol;code><&sol;pre> &NewLine;<p>Sebelum melakukan installasi wordpress&comma; kita diwajibkan membuat database terlebih dahulu&period; Command dibawah ini akan membuat database dengan nama &&num;8220&semi;tengine&&num;8221&semi;<&sol;p> &NewLine;<pre><code>mysql -uroot -p -e "CREATE DATABASE tengine&semi;"<&sol;code><&sol;pre> &NewLine;<p>Jika diminta password&comma; silahkan masukkan password database anda&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Lalu akses domain&sol;ip vps anda&period; Maka akan muncul tampilan seperti berikut&colon;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7564" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;456-min-1024x862&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Klik <strong>Let&&num;8217&semi;s Go<&sol;strong><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7565" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;457-min-1024x769&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Lalu masukkan kredensial seperti <strong>Nama database&comma; user database dan password database&period;<&sol;strong><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7566" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;458-min-1024x650&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Jika pada saat klik <strong>submit<&sol;strong> muncul <em>error establishing database connection<&sol;em>&comma; meskipun semua informasi yang anda masukkan sudah benar&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7567" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;459-min-1024x669&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Ini dikarenakan&comma; secara default mariadb melarang kita untuk menggunakan root user sebagai user default untuk digunakan sebagai user database&period; Untuk itu kita harus meng-<em>alter <&sol;em>user root tersebut agar bisa digunakan&period; Namun&comma; cara tersebut kurang aman&comma; jadi ada baiknya kita membuat user baru saja dengan level yang sama dengan user root&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p>Masuk ke mysql anda&period;<&sol;p> &NewLine;<pre><code>mysql -uroot -p<&sol;code><&sol;pre> &NewLine;<p>Create user&period; Agar memenuhi kriteria password&comma; silahkan gunakan huruf besar kecil dan karakter unik<&sol;p> &NewLine;<pre><code>CREATE USER 'useranda'&commat;'localhost' IDENTIFIED BY 'password'&semi;<&sol;code><&sol;pre> &NewLine;<p>beri semua akses ke user<&sol;p> &NewLine;<pre><code>GRANT ALL PRIVILEGES ON &ast;&period;&ast; TO 'useranda'&commat;'localhost'&semi;<&sol;code><&sol;pre> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Lalu sekarang masukkan kembali user baru yang sudah dibuat&period; Harusnya berhasil&colon;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7568" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;460-min-1024x524&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Tinggal lanjutkan saja installasi wordpress seperti biasa&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<figure class&equals;"wp-block-image size-large"><img class&equals;"wp-image-7569" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;461-min-1024x727&period;png" alt&equals;"cara install tengine" &sol;><&sol;figure> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Jika&comma; langkah-langkah yang anda ikuti sesuai&comma; maka seharusnya installasi tengine tidak ada masalah&period; Untuk mengecek&comma; apakah website kita sudah menggunakan tengine&comma; anda bisa mencoba add on browser bernama wappalyzer&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<div class&equals;"wp-block-image"> &NewLine;<figure class&equals;"aligncenter size-large"><img class&equals;"wp-image-7570" src&equals;"https&colon;&sol;&sol;www&period;tutorialpedia&period;net&sol;wp-content&sol;uploads&sol;Screenshot&lowbar;410&period;png" alt&equals;"" &sol;><&sol;figure> &NewLine;<&sol;div> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph"><strong>Lalu&comma; bagaimana dengan installasi SSL di tengine&quest; <&sol;strong><&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Nah&comma; untuk installasi ssl di tengine memang agak sedikit tricky&comma; berhubungan artikel ini sudah terlalu panjang&period; maka akan saya bahas pada artikel berikutnya&period;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Stay tune&excl;<&sol;p> &NewLine; &NewLine; &NewLine; &NewLine;<p class&equals;"wp-block-paragraph">Demikian artikel <strong>Cara Install Tengine&comma; PHP&comma; MySQL dan WordPress<&sol;strong><&sol;p> &NewLine;

Recent Articles

Kumpulan DNS Gratis Tercepat!

0
DNS merupakan sebuah sistem yang bertugas menyimpan semua informasi data domain dalam jaringan. Dengan adanya DNS, domain atau hostname yang ada akan ditranslate dan...

Apa itu DNS ? Dan Fungsinya

0
Apa itu DNS? - DNS (Domain Name System) adalah sebuah sistem yang bertugas menyimpan semua informasi data domain dalam jaringan. Dengan adanya DNS, domain...

Apa itu OLT ? Serta Fungsinya Dalam Jaringan

0
Apa itu olt ? OLT (Optical Line Termination) adalah perangkat keras yang berfungsi sebagai titik akhir (end-point) dari layanan jaringan optik pasif (Passive Optical...

Template Voucher Untuk Mixradius

2
Template Voucher Untuk Mixradius - Pasti kalian bosen kan dengan template voucher default mixradius? tenang. kali ini saya akan memberikan template untuk voucher mixradius kamu agar...

Daftar Port Game Online Mikrotik Terbaru

2
Daftar port game online dibawah ini bisa digunakan untuk membuat rule agar koneksi ke game online tersebut bisa lancar, bisa juga untuk memisahkan antara...

Related Articles

Leave A Reply

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Dapatkan konten terbaik dari kami!