This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Survey

Selasa, 24 Juni 2014

CentOS 6.4 - Install SSH2 extension for PHP
















Hari ini test send file via sftp dengan  php. Berikut ini adalah snippet code untuk test send file:
public function index(){
$connection = ssh2_connect('localhost', 22); if ($connection) {
ssh2_auth_password($connection, 'user', password');
// send a file
ssh2_scp_send($connection,  '/local/filename','/remote/filename', 0644);
} else {
print_r('not connect');
}
}

Tapi ketika run file php nya terjadi terjadi error
PHP Fatal error: Call to undefined function ssh2_connect()

Setelah gooling.... Akhirnya dapat mantra untuk install ssh2 terlebih dahulu. Dengan langkah-langkah sebagai berikut:

1. Install the necessary packages before you can build/install ssh2 extension
yum install gcc php-devel php-pear libssh2 libssh2-devel make

2. Install the extension, (hit enter for autodetect when it prompts you)
pecl install -f ssh2

3. Once the install is completed, you just have to tell PHP to load the extension when it boots.
echo extension=ssh2.so > /etc/php.d/ssh2.ini

4. Restart your webserver and test to see if the changes took effect.
service httpd restart

5. You can check it installed with the following command
php -m | grep ssh2

Jakarta, 24 Juni 2014
by waw

Konfigurasi VPN Pada Ubuntu 14.04 Untuk Koneksi Internet dan VPN Secara Bersamaan













1. Click Network Manager -> Select VPN Connections -> Click Configure VPN
2. Click Add -> Select PPTP -> Click Create
3. Click VPN -> Input Connetion Name, Gateway, User name, and Password -> Click Advanced.



4. Click IPv4 Setting -> Select Method : Automatic (VPN) addresses only -> Click Route.
Example : Lists IP for VPN access are in range 10.17.71.* .Click add button and then input Address, Netmask, Gateway (if any)














After all configuration and connect to VPN. The default routing is using wlan0 (if using wifi connection).


Jakarta, 24 Juni 2014
by waw

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More