Skip navigation.

.: SuperTux

Open heart's screen where the pearl life in throne

Posts tagged with "ngoprek"

Vektor

Huh..akhirnya bisa belajar bikin gambar vektor jugak
Padahal maenan ini rame²nya belajar temen² setaon yg lalu, siyal baru skarang bisa niat nyoba, maklum dulu sibuk TA...jiakakak..sok²an hehehe..

Waktu itu /me dipamerin w_m, dia dah bisa bikin vektor dari fotonya, warna pink lagi..dasar wanita hehehe.. Klo mo liat fotonya, ini nich situsnya w_m blog

Akhirnya meski kmaren sibuk jadi pengacara alias pengangguran banyak acara seperti makan, tidur n nonton film wakakakak..nyoba aja otak-atik sotosop. Ga tau juga koq tumben gw sabar mo tracing tuh gambar.. Nih hasilnya..




Ga tau foto siapa nich, sebenernya maksudnya sih fotoku tapi koq hasilnya lebih ganteng yak
Ato jangan² /me me memang ganteng yak wakakakak..

Dilarang komentar, udah tau koq pasti komentar ganteng n keren kan...gubraks..

HTTPD dan Tomcat

Begh..gila..ternyata dah berbulan-bulan ni blog ga pernah terupdate..
Maklum kmaren² mumet mikir TA..lha skarang mumet cari kerja hehehe..
Dokumentasi TA aja blom ada.. nanti yak kapan² ditulisnya..

Skarang ada sedikit tips n trik halah..
Mengkoneksikan Apache dengan Tomcat.
* Apache adalah web server yg sangat populer saat ini dengan kelebihan dan kehandalan yg dimilikinya tapi sayangnya Apache tidak/blom support untuk koneksi pemrograman JSP (Java Server Pages). Untuk web server yg support JSP, Apache Group halah.. ngeluarin Tomcat dan tentunya secara default 2 web server diatas berbeda, termasuk port defaultnya. Apache make port 80 sedangkan Tomcat pake 8080.

Pertanyannya, gimana supaya web server qta bisa support JSP tanpa harus berjalan di 2 port yg berbeda?? Tentunya yg qta butuhkan adalah konektor penghubung 2 web server diatas.

request *.jsp --> Apache:80 --> mod_jk --> Tomcat:8080

Salah satu penghubungnya adalah mod_jk

==============================
Install Tomcat
==============================
//Harus terinstall java terlebih dulu
//Bawaan Linux sudah support java
//klo belom donlot aja JDK ato donlot Tomcat yg include JDK di http://tomcat.apache.org
//recommended yg versi 5.x soalnya yg versi 6.x masih ada beberapa bug
root@supertux $ cp apache-tomcat-version.tar.gz /usr/local/
root@supertux $ tar -zxvf apache-tomcat-version.tar.gz
root@supertux $ ln -s apache-tomcat-version/ tomcat

//Start tomcat
tuxedo@supertux # /usr/local/tomcat/bin/startup.sh

//Coba buka browser dan ketikkan http://localhost:8080 untuk cek koneksi tomcat, jika muncul tampilan maka udah berhasil

//Stop tomcat
tuxedo@supertux # /usr/local/tomcat/bin/shutdown.sh


==============================
Install connectors
==============================
//file : tomcat-connectors-1.2.22-src.tar.gz
tuxedo@supertux # tar -zxvf tomcat-connectors-1.2.22-src.tar.gz
tuxedo@supertux # cd tomcat-connectors-1.2.22-src/native
tuxedo@supertux # ./configure --with-apxs=/usr/local/apache/bin/apxs
tuxedo@supertux # make
tuxedo@supertux # su -c make install
root@supertux $ cp apache-version/mod_jk.so /usr/local/apache/modules
//dalam hal ini udah terinstall apache di /usr/local/apache
//untuk apache v.2x biasanya lokasi module ada pada /usr/local/apache/modules
//klo yg v.1.3.x ada di /usr/local/apache/libexec klo g salah sih

================================
Konfigurasi
================================
Create 2 file mod_jk.conf dan workers.properties
########## Pada file /usr/local/tomcat/conf/mod_jk.conf ###########
<IfModule !mod_jk.c>
LoadModule jk_module "/usr/local/apache/modules/mod_jk.so"
</IfModule>

JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkShmFile /usr/local/apache/logs/mod_jk.shm
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

######### /usr/local/tomcat/conf/workers.properties ###########
# create workers names
worker.list=ajp13
# Konfigurasi ini harus sama di /usr/local/tomcat/conf/server.xml
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

######### /usr/local/apache/conf/httpd.conf #############
//Tambahkan
Include /usr/local/tomcat/conf/mod_jk.conf

Sebenarnya qta bisa bikin file konfigurasi diatas yaitu mod_jk.conf secara otomatis yg digenerate oleh tomcat, caranya gini (khusus untuk tomcat versi 5.5.x):
* Buka /usr/local/tomcat/conf/server.xml
* Tambahkan
...
<Engine ...>
...
<Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/local/apache/modules/mod_jk.so" />
...
</Engine>
...
* Restart tomcat
* Secara otomatis akan terbentuk file mod_jk.conf di /usr/local/tomcat/conf/auto/
* Tinggal edit path lokasi mod_jk.conf ini di httpd.conf kan..

Wokeh..skarang qta bisa ngakses file *.jsp lewat Apache:80

Referensi :
http://httpd.apache.org
http://tomcat.apache.org

Install Server Yukz..


Instalasi Mysql http://www.mysql.com
========================
$tar -zxvf mysql-version.tar.gz
$./configure --prefix=/usr/local/mysql

Jika ingin melihat opsi lain, ketikkan ./configure --help
$make
#make install
#groupadd mysql
#useradd -g mysql mysql
#cp support-files/my-medium.cnf /etc/my.cnf <-- file konfigurasi mysql
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql <-- instalasi/pembuatan database default
#chown -R root .
#chown -R mysql var/
#chgrp -R mysql .
#bin/mysqld_safe --user=mysql & <--menjalankan mysql


Otomatis mysql akan aktif, untuk mengeceknya, coba masuk ke mysql :
#/usr/local/mysql/bin/mysql
Klo instalasi berhasil seharusnya akan masuk, maka akan ada tampilan :

mysql>
mysql>show databases;
mysql>use mysql;
mysql>show tables;
mysql>select user,password from user;
mysql>delete from user where user='';
mysql>update user set password=password('password_kamu') where user='root';


Dengan begini maka account user root di mysql akan berpassword, maka untuk masuk ke mysql :
#/usr/local/mysql/bin/mysql -u root -p

Instalasi Apache Web Server http://httpd.apache.org
=========================
Qta pake versi terbaru saat ini :
$tar -jxvf httpd-2.2.2.tar.bz2
$cd httpd-2.2.2
$./configure --prefix=/usr/local/apache --enable-ssl --enable-cgi --enable-vhost-alias --enable-rewrite --enable-so

--prefix menunjukkan letak/path lokasi instalasi
--enable-ssl mengaktifkan mod_ssl untuk apliakasi https
--enable-cgi membolehkan server untuk mengeksekusi script cgi
--enable-vhost-alias untuk membuat alias dalam virtual host
--enable-rewrite membolehkan server untuk "rewrite" suatu halaman page
--enable-so mengaktifkan modul-modul server
Opsi-opsi diatas adalah opsional, tergantung keinginan qta. Untuk melihat opsi lengkap $./configure --help
Untuk membuat redirecting ke HTTPS, sebelumnya harus install openssl dulu.
Penghubung antara Apache dengan openssl adalah module mod_ssl.
Mod_ssl sebenarnya diperuntukkan apache 1.3.x sedangkan untuk apache-2.x mod_ssl telah diinclude kedalamnya sehingga ga perlu install, cukup mengenable aja.
$make
#make install

Untuk menjalankan Apache :
#/usr/local/apache/bin/apachectl start <-- start server
#/usr/local/apache/bin/apachectl stop <-- stop server
#/usr/local/apache/bin/apachectl restart <-- restart server

File konfigurasi apache ada di /usr/local/apache/conf/httpd.conf

Instalasi PHP http://www.php.net
==========================
$tar -jxvf php-5.1.4.tar.bz2
$cd php-5.1.4
$./configure --with-apxs2=/usr/local/apache/bin/apxs --with-gd --with-mysql=/usr/local/mysql/ --with-ming=/usr/local/bin/ --with-zlib-dir=/usr/include/ --with-pear

--with-apxs2 untuk membuat module php5 untuk apache2 yg mengacu pada apache yg diinstall
Untuk apache 1.3.x memakai --with-apxs=path_apache1_3 ato --with-apache=path_apache1_3
--with-gd untuk mensupport gd, image processing di php <-- sebelumnya install gd dulu
--with-mysql mensupport database mysql
--with-ming untuk mensupport flash processing di php <-- install ming dulu
--with-zlib support kompresi zlib
--with-pear mensupport pear
$make
#make install


Konfigurasi Apache untuk mengenali PHP
===============================
Edit file konfigurasi Apache, gunakan editor yg disenangi.
#mcedit /usr/local/apache/conf/httpd.conf
Pastikan apache telah mengaktifkan modul php5, sempurnakan ato tambahkan konfigurasi ini:


LoadModule php5_module modules/libphp5.so <-- pastikan ada file libphp5.so di /usr/local/apache/modules/
AddType application/x-httpd-php .php


Jangan lupa untuk merestart server Apache.
Untuk memastikan server sudah support PHP, coba bikin file test.php di DocumentRoot biasanya di /usr/local/apache/htdocs

//========test.php=======
<?
phpinfo();
?>


Klo server sudah support PHP, maka test.php akan dieksekusi tapi jika belum maka file tidak dikenali sehingga akan muncul form download.

Auto Redirecting HTTPS
=======================
Edit file konfigurasi Apache
#mcedit /usr/local/apache/conf/httpd.conf


<Directory "/usr/local/apache/htdocs"> <-- document root server, setiap request HTTP akan diarahkan ke directory ini.
Options Indexes FollowSymLinks MultiViews
AllowOverride All
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$ <-- mengaktifkan port 443 untuk HTTPS
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [L,R] <-- rewrite page/encrypt ke HTTPS
Order allow,deny
Allow from all
</Directory>
#=== pada akhir file httpd.conf -- cek this ======
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf <-- hilangkan tanda '#' untuk mengaktifkan file konfigurasi SSL
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>



Klo mo merubah konfigurasi SSL, termasuk letak sertifikat SSL, edit aja file /usr/local/apache/conf/extra/httpd-ssl.conf
Letak sertifikat secara default adalah di /usr/local/apache/conf


#============httpd-ssl.conf============
<VirtualHost _default_:443>
DocumentRoot "/docroot"
ServerName localhost:443
ServerAdmin imamwib@students.stttelkom.ac.id
ErrorLog /usr/local/apache/logs/error_log
TransferLog /usr/local/apache/logs/access_log

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache/conf/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/server.key

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0


CustomLog /usr/local/apache/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>


Nah..selanjutnya qta bikin sertifikasi SSL :
# openssl genrsa -out /usr/local/apache/conf/server.key 1024
# openssl req -new -days 365 \
-key /usr/local/apache/conf/server.key \
-out /usr/local/apache/conf/server.csr

# openssl x509 -in /usr/local/apache/conf/server.csr \
-out /usr/local/apache/conf/server.crt -req \
-signkey /usr/local/apache/conf/server.key \
-days 365
# cd /usr/local/apache/conf/
# chmod 400 server.*


Restartlah server Apache dan coba browsing
http://localhost maka secara otomatis akan diredirect ke https://localhost

-- CMIIW --

Welcome to 2.6.16.20

Hahaha..akhirnya bisa juga..
Sejak tadi malem sampe sore tadi akhirnya bisa juga..
Compile kernel dari 2.4 menjadi 2.6.16.20..hahaha..
Seharian ketemu ma kernel panic..hahaha..pengalaman pertama nich ketemu kernel yg panik.. Grogi kali yak kernelnya..ketemu ma tux..lol
Tapi masih ada error sih..modul alsanya masih ada masalah euy..suaranya masih lom ada..
Jadi booting komputerku sekarang ada 3:
* UnixSystem - Good Looking
* Slackie - Wow..seksi man
* Yayang - I Love It ^_^ <-- ni yg terbaru

Dasar aneh..masak suaranya ga keluar juga..padahal ga da yg error..
XMMS berjalan baik..cuma ga ada suaranya
Lha..aq nonton TV malah ada suaranya..gimana sih..bingung aq..