Install Apache,PHP,dan Mysql (2)

Klo postingan kemaren tentang instalasi, postingan yg ini cuma penjelasan sedikit tentang konfigurasinya.
A. Konfigurasi pada file httpd.conf
File httpd.conf terletak pada direktori /usr/local/apache2/conf/ (di percobaan saya). Untuk membuat webserver sederhana, hanya perlu mengedit beberapa saja,misalnya :

Listen 80
LoadFile /usr/local/lib/libxml2.so
LoadModule php5_module modules/libphp5.so
User www
Group www
ServerAdmin rody@umm.ac.id
ServerName ns-rody.rody-ngoprek.net:80
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-phpsource .phps

Kemudian menghilangkan tanda pagar di depan statement:
Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf

B. Mengaktifkan SSL
Install OpenSSL lewat Port
ns-rody# cd /usr/ports/security/openssl
ns-rody# make install clean

setelah selesai lanjutkan dengan
ns-rody# cd /usr/local/openssl
biasanya sudah tersedia direktori –> private dan certs

1. Generate private key
ns-rody# openssl genrsa -out private/rody-ngoprek.net.key 1024

2. Generate CSR –> Certificate Signing Request:

ns-rody# openssl req -new -key private/rody-ngoprek.net.key -out certs/rody-ngoprek.net.csr

Country Name (2 letter code) [GB]: ID
State or Province Name (full name) [Some-State]: East Java
Locality Name (eg, city) []: Malang
Organization Name (eg, company) [Internet Widgits Pty Ltd]: Rody Clickers,inc
Organizational Unit Name (eg, section) []: UPI
Common Name (eg, your name or your server’s hostname) []: ns-rody.rody-ngoprek.net
Email Address []: userody@gmail.comAlamat e-mail ini dilindungi dari spambot, anda harus memampukan JavaScript untuk melihatnya

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []: ********
An optional company name []:

3. Kemudian buat Certificate Signed (CRT) file:
ns-rody# openssl x509 -req -days 365 -in certs/rody-ngoprek.net.csr -out certs/rody-ngoprek.net.crt -signkey private/rody-ngoprek.net.key

yang ini udah, tinggal konfigurasi pada httpd-ssl.conf, terletak pada /usr/local/apache2/conf/extra

4. Mengedit File httpd-ssl.conf
tinggal tambahkan/edit:
SSLCertificateFile “/usr/local/openssl/certs/rody-ngoprek.net.crt”
SSLCertificateKeyFile “/usr/local/openssl/private/rody-ngoprek.net.key”

5. Running Apache
ns-rody# /usr/local/apache2/bin/apachectl start

—-selesai


Web Hosting Murah | Shared Hosting Murah | Registrasi Domain Murah

my tweet

Badge

blog-indonesia.com

instagram

Bercengkrama, 
#instafamily #instakids #instababy #instabanjar #mykeinara #myhanna #like4like #likeforlike Keinara intan & Hanna humaira Penyanyinya 3diva, 
Zufa, Hanna, Intan,

Bintang video klipnya Om Dana,

#lagubanjar #khasbanjar #amparamparpisang Full Team,.
Bersama 3orang anak,
1anak mertua + 2anak kandung.
#instafamily 
#mykeinara 
#myhanna

Menghadiri walimah perkawinan .
.
. .
.
#mykeinara
#holiday 
#manado 
#bunaken
#instamanado 
#indonesia 
#like4like

Blog Stats

  • 82,894 hits

%d bloggers like this: