Test Block Top

The Blog...
Articles, Tips & Trick and Other Interesting Information...
Tampilkan postingan dengan label Putty. Tampilkan semua postingan
Tampilkan postingan dengan label Putty. Tampilkan semua postingan
17 Maret 2012

"Securing SSH" Ganti Port Default SSH

Semakin berkembangnya model hacking serangan acak (Inggris: Brute Force Attacks), saat ini sangat disarankan administrator server untuk mengganti port default SSH "Port 22" ke angka yang lebih tinggi/rumit. Langkah ini merupakan salah satu bentuk pencegahan dari model hacking brute force attacks.

Ilustrasi artikel ini menggunakan CenOS Versi 5.8 (Final), namun tahapan proses dalam mengganti port default ssh tidak akan terlalu jauh berbeda dengan distro lainnya.

Pertama; update file "/etc/ssh/sshd_config", ganti "Port 22" dengan nilai yang lebih tinggi, misal: "Port 9157".

Kedua; Edit file "/etc/services" dan ganti nomor port default (22) ke nomor port yang baru (misal seperti di atas "9157")

[bash collapse="false"]
ssh 9157/tcp # SSH Remote Login Protocol
ssh 9157/udp # SSH Remote Login Protocol
[/bash]

Restart service ssh:

[bash collapse="false"]
[root@localhost ~]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
[root@localhost ~]#
[/bash]

Selesai. Sekarang setiap kali login ke ssh atau login service terkait lainnya, anda harus menggunakan port ssh yang baru. Dan juga jika server yang anda gunakan memakai firewall, anda harus approve port baru sesuai perubahan setting port yang anda lakukan.

Referensi:

  1. http://wiki.centos.org/HowTos/Network/SecuringSSH

02 Maret 2012

Panduan Singkat Install cPanel

cPanel merupakan control panel web yang memudahkan user account hosting memanage mail, Database MySQL, subdomain, dns, ftp account, SSH/Shell Access dan beberapa fitur lainnya. Pengertian cPanel menurut Wikipedia:



Dari Wikipedia bahasa Indonesia, ensiklopedia bebas


cPanel adalah sebuah control panel web hosting pada Linux yang memberikan tampilan grafis dan peralatan automasi yang dibuat untuk memudahkan proses hosting di sebuah situs web. cPanel menggunakan 3 tingkat struktur untuk memberikan fungsi administrator, agen, dan pemilik situs web untuk mengatur berbagai macam aspek dari situs web dan administrasi server melalui sebuah penjelajah web standar. Selain memberikan Guide User Interface untuk memudahkan pengguna, cPanel juga dilengkapi dengan perintah dalam teks dan berdasarkan API agar vendor perangkat lunak pihak ketiga, organisasi web hosting dan pengembang untuk automasi sistem standar proses administrasinya


cPanel didesain untuk berfungsi pada dedicated server ataupun virtual private server yang bisa digunakan pada Sistem Operasi centOS, Red Hat Linux, dan FreeBSD. Aplikasi-aplikasi didukung cPanel termasuk Apache, PHP, mySQL, Postgres, Perl, Python, and BIND, dengan email seperti POP3, IMAP, layanan-layanan SMTP.



Sumber: http://id.wikipedia.org/wiki/CPanel

Install cPanel/WHM sebagai control panel website tidaklah rumit. Berikut panduan singkat install cPanel (Fresh Install OS):

Login ke SSH Server sebagai root user, kemudian ketikkan command:

cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest


[bash collapse="false"]
[root@server5 ~]# cd /home
[root@server5 home]#
[/bash]

[bash collapse="false"]
[root@server5 home]# wget -N http://httpupdate.cpanel.net/latest
--2012-05-27 22:43:52-- http://httpupdate.cpanel.net/latest
Resolving httpupdate.cpanel.net... 208.78.42.4, 208.82.118.100, 209.85.80.214, ...
Connecting to httpupdate.cpanel.net|208.78.42.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32145 (31K) [application/octet-stream]
Saving to: âlatestâ

100%[======================================>] 32,145 16.6K/s in 1.9s

2012-05-27 22:43:55 (16.6 KB/s) - âlatestâ

[root@server5 home]#
[/bash]

[bash]
[root@server5 home]# sh latest
Creating directory installd
Verifying archive integrity... All good.
Uncompressing Cpanel & WHM Installer.............
____ _
___| _ \ __ _ _ __ ___| |
/ __| |_) / _` | '_ \ / _ \ |
| (__| __/ (_| | | | | __/ |
\___|_| \__,_|_| |_|\___|_|

Installer Version v00021 r76bbb37d4fd42509adbd80d6b12bf47e3845c762

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
...
opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/domimplementation.c -o ext/dom/domimplementation.lo
2012-05-27 20:44:58 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/element.c -o ext/dom/element.lo
2012-05-27 20:44:59 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/node.c -o ext/dom/node.lo
2012-05-27 20:45:00 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/string_extend.c -o ext/dom/string_extend.lo
2012-05-27 20:45:00 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/characterdata.c -o ext/dom/characterdata.lo
2012-05-27 20:45:00 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/documenttype.c -o ext/dom/documenttype.lo
2012-05-27 20:45:00 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/domimplementationlist.c -o ext/dom/domimplementationlist.lo
2012-05-27 20:45:00 788 (DEBUG): /bin/sh /home/cpeasyapache/src/php-5.3.13/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/cpeasyapache/src/php-5.3.13/ext/dom/ -DPHP_ATOM_INC -I/home/cpeasyapache/src/php-5.3.13/include -I/home/cpeasyapache/src/php-5.3.13/main -I/home/cpeasyapache/src/php-5.3.13 -I/home/cpeasyapache/src/php-5.3.13/ext/date/lib -I/home/cpeasyapache/src/php-5.3.13/ext/ereg/regex -I/opt/xml2/include/libxml2 -I/opt/pcre/include -I/opt/curlssl//include -I/opt/php_with_imap_client//include -I/usr/include/mysql -I/home/cpeasyapache/src/php-5.3.13/TSRM -I/home/cpeasyapache/src/php-5.3.13/Zend -g -O2 -fvisibility=hidden -c /home/cpeasyapache/src/php-5.3.13/ext/dom/entity.c -o ext/dom/entity.lo
...
...
2012-05-27 20:47:20 788 (DEBUG): /opt/php_with_imap_client//lib64/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
2012-05-27 20:47:20 788 (DEBUG): /home/cpeasyapache/src/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
2012-05-27 20:47:20 788 (DEBUG): Generating phar.php
2012-05-27 20:47:20 788 (DEBUG): Generating phar.phar
2012-05-27 20:47:20 788 (DEBUG): PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
2012-05-27 20:47:20 788 (DEBUG): invertedregexiterator.inc
2012-05-27 20:47:20 788 (DEBUG): pharcommand.inc
2012-05-27 20:47:20 788 (DEBUG): directorygraphiterator.inc
2012-05-27 20:47:20 788 (DEBUG): clicommand.inc
2012-05-27 20:47:20 788 (DEBUG): directorytreeiterator.inc
2012-05-27 20:47:20 788 (DEBUG): phar.inc
2012-05-27 20:47:20 788 (DEBUG): Build complete.
2012-05-27 20:47:20 788 (DEBUG): Don't forget to run 'make test'.
2012-05-27 20:47:20 788 (DEBUG): -- End step 'make for system PHP' --
2012-05-27 20:47:20 788 (DEBUG): -- Begin step 'make install for system PHP' --
2012-05-27 20:47:20 788 (DEBUG): Installing PHP SAPI module: cgi
2012-05-27 20:47:20 788 (DEBUG): Installing PHP CGI binary: /usr/bin/
2012-05-27 20:47:20 788 (DEBUG): Installing build environment: /usr/lib/php/build/
2012-05-27 20:47:25 788 (DEBUG): Installing header files: /usr/include/php/
2012-05-27 20:47:31 788 (DEBUG): Installing helper programs: /usr/bin/
2012-05-27 20:47:31 788 (DEBUG): program: phpize
2012-05-27 20:47:31 788 (DEBUG): program: php-config
2012-05-27 20:47:31 788 (DEBUG): Installing man pages: /usr/man/man1/
2012-05-27 20:47:31 788 (DEBUG): page: phpize.1
2012-05-27 20:47:31 788 (DEBUG): page: php-config.1
2012-05-27 20:47:31 788 (DEBUG): Installing PEAR environment: /usr/lib/php/
2012-05-27 20:47:31 788 (DEBUG): [PEAR] Archive_Tar - installed: 1.3.7
2012-05-27 20:47:31 788 (DEBUG): [PEAR] Console_Getopt - installed: 1.3.0
2012-05-27 20:47:31 788 (DEBUG): [PEAR] Structures_Graph- installed: 1.0.4
2012-05-27 20:47:31 788 (DEBUG): [PEAR] XML_Util - installed: 1.2.1
2012-05-27 20:47:31 788 (DEBUG): [PEAR] PEAR - installed: 1.9.4
2012-05-27 20:47:31 788 (DEBUG): Wrote PEAR system config file at: /usr/etc/pear.conf
2012-05-27 20:47:31 788 (DEBUG): You may want to add: /usr/lib/php to your php.ini include_path
2012-05-27 20:47:31 788 (DEBUG): /home/cpeasyapache/src/php-5.3.13/build/shtool install -c ext/phar/phar.phar /usr/bin
2012-05-27 20:47:31 788 (DEBUG): ln -s -f /usr/bin/phar.phar /usr/bin/phar
2012-05-27 20:47:31 788 (DEBUG): -- End step 'make install for system PHP' --
2012-05-27 20:47:31 788 (DEBUG): -- Begin step 'symlink php.ini' --
2012-05-27 20:47:31 788 (DEBUG): -- End step 'symlink php.ini' --
2012-05-27 20:47:31 788 (DEBUG): -- Begin step 'set extension_dir in php.ini' --
2012-05-27 20:47:31 788 (DEBUG): -- End step 'set extension_dir in php.ini' --
2012-05-27 20:47:31 788 (DEBUG): -- Begin step 'PHP httpd.conf setup' --
2012-05-27 20:47:31 788 (DEBUG): -- End step 'PHP httpd.conf setup' --
2012-05-27 20:47:31 788 (DEBUG): -- Begin step 'Update PHP magicloader if necessary' --
2012-05-27 20:47:31 788 (DEBUG): -- End step 'Update PHP magicloader if necessary' --
2012-05-27 20:47:31 788 (DEBUG): -- Begin step 'Update PHP version files' --
2012-05-27 20:47:31 788 (DEBUG): !! '/usr/local/apache/conf/php5.version' has been updated to '5.3.13' !!
...
...
2012-05-27 20:49:01 211 (DEBUG): [20120527.204901] [10741] The following modules are now being installed/updated/verified: Locales,version,CDB_File,Module::Build,BSD::Resource,Class::Std,Digest::MD5::File,Expect,Encode::Guess,Encode::MIME::Name,Encode::Detect::Detector,Data::Dump,File::Copy::Recursive,File::ReadBackwards,File::Find::Rule,IO::Tty,Sys::Hostname::Long,local::lib,AppConfig,Template,YAML::Syck,JSON::Syck,cPanel::MemTest,List::MoreUtils,DateTime::Locale,DateTime,DB_File,HTTP::Date,Scalar::Util,MIME::Base64,URI,Net::FTP,HTML::Tagset,HTML::Parser,HTML::HeadParser,LWP,Bundle::LWP,DBI,Crypt::SSLeay,CPAN::SQLite,Data::Dumper,Digest::MD5,Digest::SHA1,Encode,ExtUtils::Constant,ExtUtils::Install,ExtUtils::ParseXS,File::Touch,Filesys::Df,Filesys::Virtual,Filter::Util::Call,Getopt::Long,Getopt::Param::Tiny,IO::Interactive::Tiny,Compress::Raw::Zlib,Authen::Libwrap,Net::FTPSSL,Net::SSL,Net::SSLeay,IO::Compress::Gzip,IO::Scalar,IO::Socket::INET6,IO::Socket::SSL,IO::Stty,IO::Uncompress::Gunzip,Lchown,List::Util,MD5,Net::DNS,Net::OSCAR,Net::LibIDN,Pod::Perldoc,Socket6,Storable,Sys::Syslog,TAP::Harness,Term::ReadKey,Term::ReadLine::Perl,Time::HiRes,Tree::MultiNode,Unix::PID,Unix::PID::Tiny,XML::LibXML::Common,XML::LibXML,XML::Parser,XML::SAX,XML::Simple,lib::restrict,Crypt::Passwd::XS,DBD::mysql,Filesys::Statvfs,Crypt::GPG,Class::Accessor,Class::Accessor::Fast,File::MMagic::XS,Email::Valid,ExtUtils::MakeMaker,Mail::SRS,Acme::Spork,Archive::Tar,Archive::Tar::Streamed,Archive::Zip,MIME::Lite,Business::OnlinePayment::AuthorizeNet,Business::UPS,CGI,Class::Std::Utils,Compress::Bzip2,Compress::Zlib,DBIx::MyParsePP,DBD::SQLite2,Date::Parse,File::Tail,GD::Graph,GD::Text::Align,Memoize,Geo::IPfree,HTTP::Daemon::App,IO::Socket::ByteCounter,Image::Size,Mail::DomainKeys,Error,NetAddr::IP,Net::DNS::Resolver::Programmable,Mail::SPF,Mail::SPF::Query,Mail::DKIM,IP::Country,Graph::Easy,Graph::Flowchart,Mail::SpamAssassin,URI::Escape,File::Find::Rule::Filesys::Virtual,File::Slurp,Net::DAV::Server,Net::Daemon,Net::Daemon::SSL,Net::LDAP,Net::LDAP::Schema,Net::LDAP::Server,Net::IP::Match::Regexp,OLE::Storage_Lite,Parse::RecDescent,Quota,SVG::TT::Graph,Safe::Hole,Text::CSV,Spreadsheet::ParseExcel,Spreadsheet::WriteExcel,String::CRC32,SQL::Statement,Set::Crontab,Tie::IxHash,Tie::ShadowHash,Tie::DBI,URI::URL,Bundle::Interchange,Devel::PPPort,Linux::Inotify2
...
...
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Provided options list is: deliver_queue_load_max|queue_only_load|daemon_smtp_ports|tls_on_connect_ports|system_filter_user|system_filter_group|tls_require_ciphers|hostlist loopback|hostlist senderverifybypass_hosts|hostlist skipsmtpcheck_hosts|hostlist spammeripblocks|hostlist backupmx_hosts|hostlist trustedmailhosts|hostlist relay_hosts|domainlist user_domains|remote_max_parallel|smtp_receive_timeout|ignore_bounce_errors_after|rfc1413_query_timeout|timeout_frozen_after|auto_thaw|callout_domain_negative_expire|callout_negative_expire|acl_smtp_connect|acl_smtp_data|acl_smtp_mail|acl_smtp_quit|acl_smtp_notquit|acl_smtp_rcpt|message_body_newlines|deliver_queue_load_max|queue_only_load|daemon_smtp_ports|tls_on_connect_ports|system_filter_user|system_filter_group|tls_require_ciphers|spamd_address
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Exim Insert Regex is: virtual_userdelivery|virtual_aliases|democheck|remote_smtp|lookuphost|address_pipe|virtual_user|localuser|virtual_sa_user
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Exim Replace Regex is: virtual_sa_user|sa_localuser|virtual_sa_userdelivery|local_sa_delivery|central_filter|central_user_filter|democheck|fail_remote_domains|fixed_login|fixed_plain|has_alias_but_no_mailbox_discarded_to_prevent_loop|literal|local_delivery|local_delivery_spam|localuser|localuser_spam|lookuphost|remote_smtp|secure_login|secure_plain|userforward|virtual_aliases|virtual_aliases_nostar|virtual_user|virtual_user_spam|virtual_userdelivery|virtual_userdelivery_spam
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Exim Match Insert Regex is: quota_directory|maildir_format
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Exim version 4.77 #2 built 03-Nov-2011 00:54:21
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Copyright (c) University of Cambridge, 1995 - 2007
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Berkeley DB: Berkeley DB 4.7.25: (November 12, 2010)
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Support for: crypteq iconv() IPv6 PAM Perl OpenSSL Content_Scanning DKIM Old_Demime Experimental_SPF Experimental_SRS
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz passwd
2012-05-27 21:16:26 211 (DEBUG): [20120527.211626] [4308] Authenticators: cram_md5 dovecot plaintext spa
...
...
2012-05-27 21:17:39 211 (DEBUG): [20120527.211739] Removing upcp pidfile
2012-05-27 21:17:39 211 (DEBUG): [20120527.211739]
2012-05-27 21:17:39 211 (DEBUG): [20120527.211739] Completed all updates
2012-05-27 21:17:39 211 (DEBUG): => Log closed Sun May 27 21:17:39 2012
2012-05-27 21:17:39 211 (DEBUG): - ssystem [END]
2012-05-27 21:17:39 217 ( INFO): Adding services to chkconfig.
2012-05-27 21:17:39 219 ( INFO): - Enabling cpanel
2012-05-27 21:17:39 220 (DEBUG): - ssystem [BEGIN]: /sbin/chkconfig --level 35 cpanel on
2012-05-27 21:17:39 220 (DEBUG): - ssystem [END]
2012-05-27 21:17:39 219 ( INFO): - Enabling mysql
2012-05-27 21:17:39 220 (DEBUG): - ssystem [BEGIN]: /sbin/chkconfig --level 35 mysql on
2012-05-27 21:17:40 220 (DEBUG): - ssystem [END]
2012-05-27 21:17:40 219 ( INFO): - Enabling sshd
2012-05-27 21:17:40 220 (DEBUG): - ssystem [BEGIN]: /sbin/chkconfig --level 35 sshd on
2012-05-27 21:17:40 220 (DEBUG): - ssystem [END]
2012-05-27 21:17:40 1755 ( INFO): Enabling cphulkd ...
2012-05-27 21:17:40 1762 ( INFO): Done
2012-05-27 21:17:40 236 ( INFO): cPanel install finished in 329 minutes and 54 seconds!
2012-05-27 21:17:40 1582 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2012-05-27 21:17:40 1583 ( WARN): Your system kernel may have been updated.
2012-05-27 21:17:40 1584 ( WARN): Current kernel (2.6.32-220.el6.x86_64) has been changed to: 2.6.32-220.17.1.el6.x86_64
2012-05-27 21:17:40 1585 ( WARN): Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment.
2012-05-27 21:17:40 1595 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Removing /root/installer.lock
[root@server5 home]#
[/bash]

Tunggu beberapa saat sampai proses instalasi selesai (tergantung koneksi server yang dipakai). Setelah itu validasi lisensi cPanel dengan cara mengetikkan command:

/usr/local/cpanel/cpkeyclt

[bash collapse="false"]
root@server5 [~]# /usr/local/cpanel/cpkeyclt
Updating cPanel license...Done. Update succeeded.
Building global cache for cpanel...Done
root@server5 [~]#
[/bash]

cPanel/WHM Setup:

» Login WHM sebagai root user (http://ip-address:2086)

[caption id="attachment_1271" align="alignnone" width="150" caption="WHM Login"]Tutorial Install cPanel 1[/caption]

» Klik tombol I Agree/Go to Step 2

[caption id="attachment_1272" align="alignnone" width="150" caption="Install cPanel 2"]Install cPanel 2[/caption]

» Server Contact Email Address, isikan email administrator server → This Server's Hostname, isikan dengan hostname server (misal; server.domainmuxyz.com).

[caption id="attachment_1273" align="alignnone" width="150" caption="Install cPanel 3"]Install cPanel 3[/caption]

» Primary Resolver *, isikan IP Address 1 → Secondary Resolver *, isikan IP Address 2 → Klik tombol Save & go to Step 3

[caption id="attachment_1274" align="alignnone" width="150" caption="Install cPanel 4"]Install cPanel 4[/caption]

» Jika ingin menambahkan IP, masukkan IP pada text field IP Address(es) to add kemudian klik tombol Add IP(s). Jika tidak klik pada tombol Skip This Step and Use Default Settings.

[caption id="attachment_1275" align="alignnone" width="150" caption="Install cPanel 5"]Install cPanel 5[/caption]

» Nameserver Configuration pilih BIND DNS

[caption id="attachment_1276" align="alignnone" width="150" caption="Install cPanel 6"]Install cPanel 6[/caption]

» Nameserver 1 * isikan dengan default NS1, Nameserver 2 * isikan dengan default NS2 → Centang checkbox Add "A Entries" for all Nameservers & Add "A Entries" for Hostname. Klik tombol Save & go to Step 5.

[caption id="attachment_1277" align="alignnone" width="150" caption="Install cPanel 7"]Install cPanel 7[/caption]

» FTP Configuration pilih default setting Pure-FTPDMail Configuration pilih Dovecot → Klik tombol Save & go to Step 6


[caption id="attachment_1278" align="alignleft" width="150" caption="FTP Configuration"]FTP Configuration[/caption][caption id="attachment_1279" align="alignleft" width="150" caption="Mail Configuration"]Mail Configuration[/caption][caption id="attachment_1280" align="alignleft" width="150" caption="Save Setting Step 5"]Save Setting Step 5[/caption]


» Quotas pilih Use file system quotas. → Klik tombol Finish Setup Wizard

[caption id="attachment_1281" align="alignnone" width="150" caption="File System Quotas"]File System Quotas[/caption]

» Anda akan diarahkan ke halaman main page WHM.

[caption id="attachment_1282" align="alignnone" width="150" caption="WHM Main Page"]WHM Main Page[/caption]

Selesai, cPanel/WHM siap digunakan.

Dokumentasi install cPanel.
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/WebHome
28 Februari 2012

Varnish Cache Install Error "Missing Dependency: libedit.so.0()" (RedHat/CentOS)

"Varnish Cache Install Error "Missing Dependency: libedit.so.0()" (RedHat/CentOS)"

Cara mengatasi, install rpm epel >> http://fedoraproject.org/wiki/EPEL

[bash collapse="false"]
[root@server5 ~]# cd /tmp
[root@server5 tmp]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
[root@server5 tmp]# rpm -ivh epel-release-6-5.noarch.rpm
[/bash]

Kemudian jalankan command install varnish cache:

[bash collapse="false"]
[root@server5 tmp]# yum install varnish
[/bash]

Referensi Panduan Install Varnish Cache:


  1. https://www.varnish-cache.org/docs

500 Internal Server Error (Incorrect File Ownership)

Cara mengatasi 500 Internal Server Error dikarenakan ownership file ('index.php' misalnya) berbeda/tidak sama dengan ownership domain, adalah dengan cara mengganti ownership file yang error ke username domain:


  1. Buka Putty & login sebagai root

  2. Ketikkan Command Berikut ini (asumsi control panel web cPanel/sesuaikan dengan direktori error file):


    [bash collapse="false"]
    [root@localhost ~]# chown -R username:username /home/username/public_html
    [root@localhost ~]# chown username:nobody /home/username/public_html
    [/bash]

    Ganti "username" dengan aktual username.

  3. Selesai. Refresh ulang halaman yang error.

Loncat ke Atas ↑