Setting VPS Linux yang Memiliki RAM Terbatas

VPS adalah singkatan dari Virtual Private Server. Kata virtual ini merujuk pada fakta bahwa server tersebut tidak eksis secara fisik, namun berada di dalam sebuah komputer. Satu server fisik dibagi menjadi beberapa server virtual.

Artikel ini untuk VPS Debian 5 dan 6, baca juga artikel terbaru untuk VPS Debian 8.

Virtual Private Server

Masing-masing VPS memiliki sumber daya yang sudah dialokasikan atau berbagi satu sama lain, sesuai dengan setelan utamanya. Dengan kata lain, VPS adalah komputer di dalam komputer. VPS merupakan pilihan yang lebih murah jika menginginkan server sendiri untuk berbagai tujuan.

Cara setting VPS dengan RAM minimalis

Kali ini saya akan membahas bagaimana cara setting vps dari awal. Cara yang akan saya bahas kali ini tidak membutuhkan keahlian yang terlalu tinggi. Asalkan anda mengerti bagaimana mengetik perintah di terminal Linux, itu sudah cukup. Sebelumnya, siapkan dulu segelas kopi dan cemilan. 🙂

  • Di pembahasan kali ini, saya menggunakan Debian 6 dan memang harus Debian 6. 🙂 Oleh karena itu install Debian 6 di VPS anda. Caranya? Kalo anda beli VPS, pasti anda sudah tahu caranya bagaimana.
  • Setelah itu masuk ke VPS anda lewat SSH, jalankan perintah apt-get update && apt-get -y upgrade. Perintah ini akan mengupdate aplikasi-aplikasi lawas dan menggantinya dengan yang baru jika ada.
  • Instal aplikasi git, ketik apt-get install git.
  • Download script LEB Debian 6, caranya ketik git clone https://github.com/restiono/autosetupvps.git /root/bin/ lalu tunggu prosesnya sampai selesai.
  • Jalankan dpkg-reconfigure locales untuk mensetting locale. Nanti akan muncul dialog box, pastikan anda hanya memilih en_US saja.
  • Masuk ke folder /root/bin, lalu jalankan perintah-perintah ini:
    chmod +x ./setup-debian.sh
    ./setup-debian.sh dotdeb
    ./setup-debian.sh dotdeb
    ./setup-debian.sh system
    ./setup-debian.sh dropbear 22
    ./setup-debian.sh iptables 22
    ./setup-debian.sh nginx
    ./setup-debian.sh php
    ./setup-debian.sh mysql

    Perintah kedua menambahkan repository dari dotdeb. Perintah ketiga membersihkan sistem VPS anda dari aplikasi-aplikasi yang tidak diperlukan seperti Apache, dll. Perintah keempat membuang sshd dan menggantinya dengan dropbear lalu berjalan di port 22. Perintah kelima melakukan instalasi firewall sederhana untuk mengamankan server anda. Perintah enam, tujuh dan delapan sudah jelas menginstall nginx web server, dukungan PHP dan database MySQL.
  • Anda juga dapat memindahkan port dropbear selain 22, misalnya pindah ke 888 atau 666, sesuka anda, asalkan bukan 80. Perhatikan bahwa angka pada perintah ketiga dan keempat harus sama atau anda akan kesulitan login SSH.

Pada langkah ini server anda sudah siap tempur, namun belum bisa diakses sebagai web server. Nah, untuk itulah ada langkah lagi untuk menangani web server nginx supaya dapat digunakan.

Menambahkan website/blog ke dalam VPS

Setelah melalui langkah diatas, anda bisa mulai menambahkan domain anda ke dalam web server nginx. Caranya masih cukup sederhana menggunakan script LEB diatas. Perintahnya adalah sebagai berikut:
./setup-debian.sh site nama-domain.com
./setup-debian.sh mysqluser nama-domain.com
./setup-debian.sh wordpress nama-domain.com

Perintah nama-domain.com diganti dengan nama domain anda, misalnya kampret.com atau yang lain. Penjelasan perintah-perintah diatas adalah sebagai berikut:

  • Perintah pertama membuat file config nginx untuk domain yang anda sebutkan. Perintah ini juga membuat direktori di /var/www dengan nama folder sesuai domain yang anda sebutkan. Root folder website/blog anda ada di folder public yang ada di dalamnya.
  • Perintah kedua adalah membuat username, password dan database di MySQL server anda. Perintah ini harus digunakan setelah perintah yang pertama. Berguna jika anda ingin memindahkan blog/website anda dari tempat lama ke VPS.
  • Untuk anda yang ingin memasang wordpress baru, maka perintah ketiga ini dapat anda gunakan. Perintah ketiga ini tidak membutuhkan perintah pertama dan kedua. Sekali dijalankan, maka wordpress akan diinstall di /var/www/nama-domain.com/public, dimana nama-domain.com adalah nama domain yang anda sebutkan.

Nah, cukup mudah bukan? Jika ada yang ingin diketahui lebih lanjut, anda bisa mengutarakannya di kolom pendapat dibawah ini. 🙂

Sumber: LEB Setup Script by Xeoncross

Artikel ini diterbitkan pada

Seorang yang percaya hari akhir dan mencari Tuhan melalui ilmu pengetahuan. Mengerti PHP, Wordpress dan Linux. Namun masih saja menggunakan Windows 10 sebagai sistem operasi utama. Mau tanya apa saja atau bahkan curhat sama penulis ini, hubungi saja melalui formulir kontak disini. Pasti dibalas, kok!

Ada 86 pendapat pembaca

Dibawah ini adalah pendapat yang dikirimkan pembaca atas artikel ini. Negara Kesatuan Republik Indonesia adalah negara bebas, anda boleh menulis apa saja asal mampu mempertanggungjawabkannya. Kami menerima kritik dan saran namun tidak menerima caci maki. Hidup cuma sekali, jangan sia-siakan hanya untuk menyakiti hati orang lain.

  1. Serba Serbi:

    ok juga infonya gan, sangat membantu ..

  2. tomi:

    kalau mau menambahkan domain lain py om? dadi install addon domain di vps gt

    • Iwan Restiono:

      Addon domain itu hanya ilusi cpanel dan shared hosting mas. 😀
      Kalo di VPS, addon domain ya domain lain milik kita. 🙂
      Cara nambahkannya seperti section kedua diatas:
      ./setup-debian.sh site nama-domain.com
      ./setup-debian.sh mysqluser nama-domain.com

      Semua file ada di /var/www/nama-domain.com
      Untuk detail database per domain ada di /var/www/nama-domain.com/mysql.conf
      File manager bisa pakai WinSCP mas.

      • tomi:

        #okejoss bingit om.. maturr nuwun.. tak jajal e.. mengko optimasine nek kopdar yaa 😀

  3. tomi:

    om.. aku baru mau install leb kok gak bs ya?

    git clone git@github.com:restiono/autosetupvps.git /root/bin/
    Cloning into /root/bin…
    Warning: Permanently added the RSA host key for IP address ‘xxx.xxx.xxxx’ to the list of known hosts.
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly

    • Iwan Restiono:

      Wah, sorry om, salah copy paste URL github. 🙂
      Aku barusan forking script-nya buat nambahin setup phpmyadmin otomatis. Silahkan dicoba lagi pake URL baru diatas.

      • tomi:

        berarti script terbaru kui bisa sekalian setup phpmyadmin om? berarti install mysql otomatis sama phpmyadminnya om?

        o ya semalam juga coba² syntaks yg ./setup-debian.sh wordpress nama-domain.com kok sptnya gak work ya.. seng kenangkut neng folder /public malah mung wp-config.php tok .. file wp lainnya gak ada

        • Iwan Restiono:

          Setup phpmyadmin ada script-nya sendiri mas, setup-phpmyadmin.sh, aku pisah sementara, masih under development scriptnya. 😀

          Kalo yang install WordPress langsung itu aku belum pernah coba, tapi nanti aku bedahnya. Itu 99% masih asli dari github xeoncross, baru aku fork. Biasanya aku install wordpress e manual. 😀

  4. tomi:

    akhirnya bisa om.. aku install wp manual 😀
    o ya… aku mau jajal run phpmyadmin.. jarene wes terinstall. kok akses namadomain:81
    tp kok ra iso ya om?

    ada saran?

    • Iwan Restiono:

      Oh iyo, itu keblokir sama firewall. Lali rung tak lebokke nang script-nya utk buka blokir port 81. Caranya gini mas:

      1. Buka file /etc/iptables.up.rules
      2. Cari baris: # Allows HTTP and HTTPS … bla bla bla.
      3. Dibawah “-A INPUT -p tcp –dport 443 -j ACCEPT”, tambahkan baris yang sama, cuma beda port: “-A INPUT -p tcp –dport 81 -j ACCEPT” lalu save.
      4. Jalankan ini: iptables -F && iptables -X && iptables-restore < /etc/iptables.up.rules 5. Langkah empat bisa disingkat dengan cara pamungkas: RESTART. 😀 Selamat mencoba!

  5. Aryan:

    Dan akhirnya aku kudu njajal iki :mrgreen: ketinggalan banget aku… dohhhh… golek2 nyasare disini… dan aku pernah baca sebelumnya… ning gak tak gagas… sekarang bingung :mrgreen: jajal dulu, nanti kalau ada error tanya lagi 😀

    • Iwan Restiono:

      Hahaha…
      Kuwi jenenge dunyo ga luwih ombo soko godhong kelor… 🙂
      Ketemune yo wong kuwi-kuwi wae… :v

  6. kevinapril:

    Kalau untuk backup otomatis gimana mas?
    sekali kali di tulis biar lebih mudah.
    Btw, nice artikel 🙂

  7. Phone number reporter:

    Your enthusiasm is infectious. It’s difficult not to get pumped up about the topics you share.

  8. bahis porno:

    vurcazkircazpatliycaz.LJUdUed0Lqst

  9. bahis siteleri incest category:

    daktilogibigibi.wWmufCwRuIFo

  10. porn sex:

    daxktilogibigibi.hIZ3Kn8pmoaX

  11. unloveable:

    xbunedirloooo.2U4pdw252vSO

  12. palays:

    palays xyandanxvurulmus.1OIniik2h2sD

  13. euphemises:

    euphemises xyandanxvurulmus.2khUBq46jU5r

  14. bahis siteleri porn sex incest:

    eski rahatiniz olmayacak vurgunyedim.O8o9YoogoDOI

  15. bahis siteleri porn sex incest:

    porn siteleri yaralandinmieycan.CvKnt8qFHLmm

  16. am siteleri:

    sexax citixx.JtbuNOg1MfrT

  17. eski rahatiniz olmayacak:

    escort siteleri hyuqgzhqt.cT0Dx9lAFZgi

  18. escort siteleri:

    sexax ewrjghsdfaa.e7xOvhaHPqjK

  19. bahis siteleri sikis:

    seks siteleri wrtgdfgdfgdqq.D4JKGvxKE3kp

  20. sektor benim zaten amin evladi:

    craft porn wrtgdfgdfgdqq.XVFXZtrruaoF

  21. bahis siteleri porn sex incest:

    food porn wrtgdfgdfgdqq.Zoi1LW2PXbqq

  22. porno siteleri:

    anal siteleri asillartaklitler.6AWXxwC0zhID

  23. bahis siteleri sikis:

    porn sex hephupx.trJcYVFv1xLB

  24. porno siteleri:

    eskort siteleri juljulfbi.1mReiEpSOxpv

  25. viagra:

    porno izle bjluajszz.KfyrMnw63lA2

  26. craft porn:

    sektor benim zaten amin evladi bxjluajsxzz.FfZqJzqw1Zhb

  27. pornhub bahis siteleri:

    porno 0qbxjluaxcxjsxzz.66riHSt2SKbt

  28. bahis porno:

    craft porn 250tldenemebonusuxx.3i0Cj613A7GM

  29. fuck:

    pornhub bahis siteleri eyeconartxx.EaR1B2a3CcjR

  30. bahis siteleri porn sex incest:

    porno vvsetohimalxxvc.lAb6XmNQXjgv

  31. viagra:

    anal sikis siteleri tthighereduhryyy.8FejuwLamSy

  32. porn video 4k download:

    latest hd free porn gghkyogg.oaKtrKpx9X1

  33. download 4k porn videos:

    sex 4k video download ggjennifegg.qkBnlHV2TBh

  34. hd porn dawnlod:

    porno hd ggjinnysflogg.yrkUVcStrwA

  35. Kolay yemek tarifleri:

    kolay yemek tarifleri

  36. gebelik:

    En İyi Kadın Blogu

  37. kadın cinselliği:

    En İyi Kadın Blogu

  38. goodhere Group Sex:

    goodhere Lesbians porn vurucutewet.GQbdCIjUMaA

  39. ladyandtherose Anal porn:

    ladyandtherose Bisexual porn backlinkseox.NN2ZtwWqeAO

  40. jenniferroy フェチポルノ:

    jenniferroy 漫画ポルノ japanesexxporns.TsctoNZjbPV

  41. landuse VR porn:

    landuse Mature (40 ) porn lancdcuse.B6YlTRIopeS

  42. falbobrospizzamadison Lesbians porn:

    falbobrospizzamadison Gays porn jkkıjxxx.kokOrPYqFyk

  43. व्यभिचारी अश्लील:

    विंटेज अश्लील qqyyooppxx.gkRYjx7XiqY

  44. अंतरजातीय अश्लीलता के बारे में बतावल गइल बा:

    बड़का गधा पोर्न के बा hjkvbasdfzxzz.0hdqcUvVktd

  45. मजेदार अश्लील साहित्य:

    किशोर अश्लीलता txechdyzxca.UyJeaPuyQ85

  46. लैटिन अश्लील साहित्य:

    शौकिया अश्लीलता hkyonet.HsbkFVZ83DG

  47. ਗੁਦਾ ਪੋਰਨ:

    bdsm ਪੋਰਨ madisonivysex.UgwXQWb0O6g

  48. ladesbet hentai, ਐਨੀਮੇ ਪੋਰਨ:

    ladesbet ਏਸ਼ੀਆਈ ਪੋਰਨ ladesinemi.b9392lhLybn

  49. ladesbet フェチポルノ:

    ladesbet 熟女 (40 ) ポルノ ladestinemi.tHriWFJdQpF

  50. valliecolton68:

    I would like to take the ability of thanking you for that professional suggestions I have enjoyed visiting your site. We’re looking forward to the actual commencement of my school research and the overall preparation would never have been complete without visiting your web blog. If I might be of any assistance to others, I would be delighted to help as a result of what I have discovered from here.

  51. townandcampusunh 微乳ポルノ:

    微乳ポルノ .40I8BcyobhY

  52. dothanpodiatrist ਵਾਲਾਂ ਵਾਲਾ ਪੋਰਨ:

    ਵਾਲਾਂ ਵਾਲਾ ਪੋਰਨ .SUOwNiVA05F

  53. bernardluther1:

    May I simply say what a comfort to find someone that truly knows what they’re talking about online. You certainly know how to bring an issue to light and make it important. More and more people ought to read this and understand this side of the story. It’s surprising you are not more popular because you surely have the gift.

  54. claritahust:

    Hey there! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I’m getting sick and tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.

  55. Randolph Bonner:

    Hi, I read your blog daily. Your story-telling style is witty, keep doing what you’re doing!

  56. Aida Traill:

    Hi there, this weekend is pleasant designed for me, because this point in time i am reading this fantastic educational paragraph here at my home.

  57. jkt77 slot:

    For tһe reeason thaqt the admin of thiѕ site is working, no uncertaintу very soon it will be
    well-known, due to its quɑkity contents. https://netcallvoip.com/wiki/index.php/8kuda_Daftar_Lokasi_Permainan_Online_Link_Alternatif_Jkt77_Slot_Terpercaya_2023

  58. Major Hinkle:

    It’s very simple to find out any matter on net as compared to textbooks, as I found this paragraph at this web page.

  59. coba lihat:

    Hi tһere Ꭰear, are уou truly ѵiisiting this site on a regᥙlar basis, if so after that you will definitely obtain pleasant experience. https://Sustainabilipedia.org/index.php/20_Permainan_Slot_Link_Alternatif_Jkt77_Slot_Online_Alternatif_Terunggul_Di_Platform_Ternama

  60. Grace Vela:

    Hey, I think your blog might be having browser compatibility issues. When I look at your blog in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, great blog!

  61. Bonnie Stillwell:

    What a stuff of un-ambiguity and preserveness of precious experience regarding unexpected feelings.

  62. Elizbeth Otoole:

    Great blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

  63. Fredric Cain:

    Мега пользуется огромной популярностью и спросом среди клиентов, благодаря своей надежности, разнообразию позиций и простоте использования. Если вы ищете место, где можно приобрести любые товары, независимо от ваших требований, MEGA – идеальный выбор для вас. MEGA darknet – это безопасная и надежная площадка mega link, которая предоставляет широкий выбор товаров для каждого покупателя. Независимо от ваших предпочтений, вы сможете найти именно то, что нужно. https://xn--megsb7-yoc.com

  64. Felisha Leflore:

    Too Much Information – A series of movies developed by the Uk-primarily based National Autistic Society that showcase what some day to day encounters can sense like to some autistic persons, particularly “very low-performing” kinds. Eyes shut as she masturbates, the seem will make it seem to be like it is nearly shared encounter, but it stays intensely non-public and voyeuristic. I remarkably advocate employing the OTR plug-in, and encouraging any person that you chat with to do the exact, in purchase to retain your conversations encrypted and personal. Sex trafficking can consider area in private households, massage parlors, resorts, or brothels, among other areas, as well as on the web. BME/ILMHB’s Bloody Place – A cornucopia of downloadable modding resources for the basic horror very first-person shooter Blood. Standing Stones – A classical fansite for the cult traditional to start with-person shooter Clive Barker’s Undying, that includes every little thing you might have preferred to know about the video game. ThemeWorld – A vast archive of Windows 9x themes, that is in some way nevertheless standing as of this composing. Xiv – A enormous archive of scientific papers (mainly physics) hosted and managed by Cornell University.

  65. porta:

    LHGXg4eGbL0

  66. Flossie Tunn:

    This is a topic that’s near to my heart… Cheers! Where are your contact details though?

  67. josefaali924:

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  68. Chanda:

    As an example, individuals with reasonable skin might require a greater
    dose than those with darker skin tones.

  69. Penni Tomczak:

    Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you aided me.

  70. sawit777 link login:

    Spot on with this write-up, I truly think this web site
    needs far more attention. I’ll probably be back again to see more, thanks for
    the info!

  71. Catherine Chambliss:

    Have you ever considered about including a little bit more than just your articles? I mean, what you say is valuable and everything. However just imagine if you added some great images or videos to give your posts more, “pop”! Your content is excellent but with images and videos, this site could definitely be one of the best in its field. Great blog!

  72. web page:

    Can you tell us more about this? I’d care to find out more details.

  73. risarcimento danni malasanità studio legale diritto penale omicidio:

    I’ll immediately grab your rss feed as I can not find your email
    subscription hyperlink or e-newsletter service. Do
    you have any? Please let me understand in order that I could
    subscribe. Thanks.

  74. hindi sex video:

    I’m really enjoying the theme/design of your web site.
    Do you ever run into any internet browser compatibility issues?
    A few of my blog audience have complained about my site not operating correctly in Explorer but looks great in Safari.
    Do you have any recommendations to help fix this problem?

  75. egypt visa on arrival for schengen visa holders:

    It’s hard to come by educated people for this topic, however, you sound like you know what you’re talking about!
    Thanks

Kirim pendapat

Disclaimer: Komentar adalah tanggapan pribadi, tidak mewakili kebijakan Hanya Lewat. Redaksi berhak menyunting atau menghapus kata-kata yang berbau narsisme, promosi, spam, pelecehan, intimidasi dan kebencian terhadap suatu golongan.