Anda di halaman 1dari 14

Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.

html

localhost

Membuat Server Hosting menggunakan Centos 7 //


Taufik Mulyana // Kulgram at Cilsy

10-13 minutes

This Work is licensed under a CC-BY-NC

Assalamualaikum warahmatullahi wabarakatuh.

Halo perkenalkan nama saya Taufik Mulyana, disini saya akan mengisi kulgram dari cilsy hari
ini dengan topik Membuat Server Hosting menggunakan centos web panel di centos 7

sebelumnya silahkan di persiapkan


- VirtualBox
- ISO Centos 7 minimal/dvd
- Koneksi internet

disini saya akan membuat peraturan harap di patuhi


- peserta mengikuti kulgram dengan tertib
- saat materi dibacakan tolong tidak chat apapun
- bertanya pada waktunya, nanti saya adakan beberapa sesi untuk bertanya
- materi disini saya lisensikan CC-BY-NC

Apa itu Centos Web Panel ? Centos Web panel adalah kontrol panel web hosting, dibuat untuk
siapa saja yang ingin membuat sebuah server hosting, centos web panel ini menyuguhkan
antarmuka web jadi anda tidak begitu perlu untuk mengakses lewat konsol ssh, centos web
panel ini telah di lengkapi banyak komponen untuk membangun sebuah server hosting seperti
web server, database server, ftp server, mail server dll

lebih jelasnya di bawah ini beberapa fitur dari centos web panel

fitur dari centos web panel


- Apache Web Server (Mod Security - Automatic updated rules optional)

1 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

- PHP 5.6 (suPHP, SuExec - PHP version switcher)


- MySQL/MariaDB - phpMyAdmin
- Postfix - Dovecot - roundcube webmail (Antivirus, Spamassassin optional)
- CSF Firewall
- File System Lock (no more website hacking, all your files are locked from changes)
- Backups (optional)
- AutoFixer for server configuration

3rd Party Aplications


- CloudLinux - CageFS - PHP Selector
- Softaculous – Script Installer (Free and Premium)
- LiteSpeed Enterprise (Web Server)

CentOS Web Panel (CWP) - Setups Server for Web Hosting (websites like WordPress…)
- API for easier account management, and whmcs billing api
- NAT-ed version, support for NAT-ed IPs
- Free Hosting Module, account activation provisioning for sites that
have a free hosting

Web Server
- Varnish Cache server (improve your server performances up to three times)
- Nginx Reverse Proxy (get you static files delivered in the fastest way)
- LiteSpeed Enterprise integrated
- Compiles Apache from source (improves performance up to 15%)
- Apache reCompiler - Additional modules installation with one click
- Apache server status, configuration
- Apache Redirects Manager
- Edit apache vhosts, vhosts templates, include configuration
- Rebuild all apache Virtual hosts with one click
- suPHP & suExec (improved security)
- Mod Security: Comodo WAF, OWASP rules (one click install, automatic updates, easy
management)
- Tomcat 8 server management & install in one click
- DoS protection from the Slow-Loris attacks
- Apache with spamhaus RBL protection (Protecting http PUT,POST,CONNECT)
- Perl cgi script support

PHP

2 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

- Compiles PHP from source (improves up to 20% on performances)


- PHP Switcher (switch between PHP versions like: 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.x)
- PHP Selector select PHP version per user or per folder (PHP 4.4, 5.2, 5.3, 5.4, 5.5, 5.6, 7.0,
7.1, 7.x)
- Simple php editor
- Simple php.ini generator in the users panel
- PHP addons with one click
- PHP.ini editor & PHP info & List modules
- php.ini per user account (you can add changes in /home/USER/php.ini)
- FFMPEG, For Video streaming websites)
- CloudLinux - PHP Selector
- ioncube, php-imap …

User Management
- Add, List, Edit and Remove Users
- User Monitoring (list users open files, listening sockets…)
- Shell access management
- User Limit Managment (Quota and Inodes)
- Limit Processes: The maximum available number of processes per account.
- Limit Open Files: The maximum available number of open files per account.
- User FTP & File Manager
- CloudLinux - CageFS
- Dedicated IP per account

DNS
- FreeDNS (Free DNS Server, no need for additional IPs)
- Add, Edit, List and Remove DNS zones
- Edit nameserver IPs
- DNS zone template editor
- New Easy DNS Zone Manager (with ajax)
- New DNS Zone list with Additional resolving information using google (also checking
rDNS, nameservers….)

Email
- postfix & dovecot
- MailBoxes, Alias
- Roundcube webmail

3 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

- Postfix Mail queue manager


- rDNS Checker Module (check you rDNS records)
- AntiSPAM (Spamhaus cronjob)
- SpamAssassin, RBL checking, AmaViS, ClamAV, OpenDKIM
- SPF & DKIM Integration
- Re-Build Postfix/Dovecot Mail server with (AntiVirus, AntiSpam Protection)
- Email Auto Responder
- Email Explore, read all mailboxes from one location.
- Mail Routing (local or remote MX Exchanger)

System
- Hardware Information (CPU core and clock info)
- Memory Information (Memory usage info)
- Disk Info (Detailed Disk status)
- Software Info (kernel version, uptime…)
- Services Status (Quick services restart eg. Apache, FTP,Mail…)
- ChkConfig Manager (Quick list and manage your services)
- Services Monitor (automatic restart of services and email
notifications)
- Network port usage
- Network configuration
- SSHD configuration
- Auto-Fixer (checks important configuration and tries to auto-fix issues)
- Sysstat Graphs

Monitoring
- Live Monitoring (Monitor services eg. top, apache stats, mysql…)
- Use Java SSH Terminal/Console within panel
- Services Configuration (eg. Apache, PHP, MySQL…)
- Run shell commands in screen/background

Security
- CSF Firewall (Best Linux Firewall)
- SSL generator
- SSL Certificate Manager (quick and easy installation of SSL Certs)
- Letsencrypt, Free SSL certificates for all your domains
- CloudLinux - CageFS

4 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

- CSF/LFD BruteForce protection


- IP access control
- Mod Security - OWASP rules (one click install, easy management)
- DoS protection from the Slow-Loris attacks (for Apache)
- File System Lock (no more website hacking, all your files are locked from changes)
- PHP now shows the script name and path in top or process lists
- Apache is limiting number of php processes per user
- Automated Backups
- Hide system and other user processes
- SFTP Security
- AutoSSL (automatically install Letsencrypt SSL certificate when creating new account,
addon domain or subdomain)

SQL
- MySQL Database Managment
- Add local or remote access user
- Live Monitor MySQL process list
- Create, Remove database
- Add additional users per database
- MySQL server configuration
- PhpMyAdmin (database managment)
- PostgreSQL, phpPgAdmin Support
- Remote MySQL support (remove mysql load from web server)
- MongoDB Manager/Installer

Additional options
- TeamSpeak 3 Manager (Voice servers)
- Shoutcast Manager (Shoutcast streaming servers)
- Auto-update
- Backup manage r - File Manager
- Scripts folder “/scripts” over 15- scripts
- Virtual FTP users per domain
- cPanel Account Migration (restores files, databases and database users)
- Torrent SeedBox (one click install with Deluge WebGU)
- SSH key generator

lanjut

5 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

Topology

kita asumsikan topologinya seperti dibawah

centos 7 di vbox dengan 2 nic


nic pertama terhubung ke host os dengan mode host only
ip host : 192.168.100.2
ip centos : 192.168.100.1
nic kedua terhubung ke internet dengan Mode NAT/Bridge

Instalasi Centos 7

untuk instalasi tidak akan saya bahas, rekan rekan bisa melihatnya disini
https://www.tecmint.com/centos-7-installation/

saya hanya akan bahas intinya saja - gunakan RAM 1 - 2GB


- HDD min 10GB
- pada zona waktu pilih Asia/Jakarta - Pemartisian pilih automatic partition saja
- pengaturan network ( hostname cwp.cwp.local : ip ether 1 : 192.168.100.1 ip ether 2 : DHCP
)

Persiapan

6 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

lakukan update repository

install net-tools dan wget

yum install net-tools wget

cek ip

pastikan enp0s3 memiliki ip 192.168.100.1


untuk enp0s8 pastikan telah mendapat ip dhcp dan dapat terkoneksi ke internet

Instalasi

login dengan root

cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest

jalankan installer

tunggu proses instalasi sampai selesai, jika telah selasai akan menampilkan pesan seperti
dibawah

#############################
# CWP Installed #
#############################

go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/

http://192.168.100.1:2030
SSL: https://192.168.100.1:2031
---------------------
Username: root
Password: ssh server root password
MySQL root Password: qrvyIoYhxMLD

7 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

#########################################################
CentOS Web Panel MailServer Installer
#########################################################
SSL Cert name (hostname): centos.centos.local
SSL Cert file location /etc/pki/tls/ private|certs
#########################################################

visit for help: www.centos-webpanel.com


Write down login details and press ENTER for server reboot!
Press ENTER for server reboot!

harap informasi diatas disimpan

lalu buka peramban dan akses pranala

http://192.168.100.1:2030
SSL: https://192.168.100.1:2031

8 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

login dengan user root dan isi password sesuai password root anda

Dashboard CWP

Setup Nameserver

klik DNS Function >> Edit Nameserver

karena ini hanya lokal kita buat ns1.centos.local dan ns2.centos.local dengan ip 192.168.100.1

9 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

Setup CWP

klik CWP Settings >> Edit Settings

shared ip diisi 192.168.100.1

Setup Paket Hosting

paket hosting ini seperti paket hosting yang biasa ada pada penyedia hosting, kita bisa
mengatur ukuran penyimpanan, jumlah akun ftp, akun emal, database dll

klik Packages >> Add Package

10 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

Setup Akun Pengguna

sebelumnya anda login sebagai root, anda mempunyai akses untuk melakukan manajemen
akun, hal ini sama dengan jika anda memiliki root whm anda dapat mengatur/mengelola semua
akun cpanel

klik User Account >> New Account

11 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

jika sukses akan muncul informasi akun

Account Details
========================================
Server IP: 192.168.100.1
Web Panel Login:
Domain: nothinux.local
Username: nothinux
Password: et4ter4ngk@nlah
Admin Email: nothinux@gmail.com

Panel URL: http://192.168.100.1:2030

NameServers:
ns1.centos.local
ns2.centos.local

Tambahkan Domain ke /etc/hosts

karena ini lokal bukan internet kita perlu menambahkan nama domain ke file /etc/hosts di host
os

nothinux.local 192.168.100.1

untuk windows tambahkan di

c:\windows\system32\drivers\etc\hosts

Sampai step ini website sudah bisa di akses, coba buka tab baru dan akses pranala
http://nothinux.local, maka akan menampilkan halaman default dari centos web panel

12 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

Login sebagi user

logout, lalu login kembali dengan akun pengguna yang telah dibuat tadi disini kasusnya anda
sebagai client dari penyedia web hosting

sebagai user anda dapat membuat database, email, mengupload file


untuk mengupload file bisa menggunakan ftp, untuk membuat akun ftp klik File Management
> ftp account

dan login melalui aplikasi filezilla client

Mungkin itu saja untuk kulgram kali ini, akan di lanjutkan pada lain waktu

Terimakasih

13 of 14 9/27/17, 10:27 AM
Membuat Server Hosting menggunakan Centos 7 // Taufik Mul... about:reader?url=http://localhost:8000/centos-web-panel.html

Go Top

14 of 14 9/27/17, 10:27 AM

Anda mungkin juga menyukai