Tentukan lokasi tempat kita mengambil update paket terbaru
root@chuaching~#vi /etc/slackpkg/mirrors
Pilih dimana yang menurut anda paling dekat selanjutnya hilangkan tanda # lalu save
root@chuaching~#slackpkg update
2.Setting agar apache aktif setiap selesei reboot
root@chuaching~#chmod 755 /etc/rc.d/rc.httpd
Perintah
/usr/sbin/apachectl -k start
/usr/sbin/apachectl -k restart
/usr/sbin/apachectl -k stop
/usr/sbin/apachectl configtest
3.Konfigurasi httpd.conf
root@chuaching~#vi /etc/httpd/httpd.conf
Edit :
ServerAdmin diditsaputra9@gmail.com
ServerName ccliki.blogspot.com
DocumentRoot "/srv/httpd/htdocs"
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
Include /etc/httpd/mod_php.conf
root@chuaching~# /usr/sbin/apachectl -k start
4.Setting SSL
root@chuaching~#/usr/sbin/apachectl -k stop
root@chuaching~#vi /etc/httpd/httpd.conf
Edit
Hapus tanda # pada baris
#LoadModule ssl_module lib/httpd/modules/mod_ssl.iso
#Include /etc/httpd/extra/httpd-ssl.conf
Jika sudah silahkan save.
5.Membuat sertifikat
root@chuaching~#openssl req -new > new.cert.csr
Ikuti saja petunjuknya
root@chuaching~#openssl rsa -in privkey.pem -out new.cert.key
root@chuaching~#openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 1825
root@chuaching~#mkdir /etc/httpd/ssl.crt/
root@chuaching~#mkdir /etc/httpd/ssl.key/
root@chuaching~#cp new.cert.cert /etc/httpd/ssl.crt/server.crt
root@chuaching~#cp new.cert.key /etc/httpd/ssl.key/server.key
6.Konfigurasi httpd-ssl.conf
root@chuaching~#vi /etc/httpd/extra/httpd-ssl.conf
SSLCertificateFile "/etc/httpd/ssl.crt
SSLCertificateFile "/etc/httpd/ssl.crt/server.key
7.Jika anda mempunyai konfigurasi Virtual Host, maka konfigurasilah di httpd-ssl.conf
DocumentRoot "/srv/httpd/htdocs/pulic_html"
ServerName ccliki.blogspot.com:443
ServerAdmin diditsaputra9@gmail.com
ErrorLog /"var/log/httpd/error_log"
TransferLog "/var/log/httpd/access_log"
8.Start kembali apache
root@chuaching~#/usr/sbin/apachectl -k start
root@chuaching~#netstat -tpan | grep 443
tcp6 0 0 :::443 :::* LISTEN 4486/httpd
Jika keluar seperti diatas berarti anda berhasil