Compile apc and ssh2 for PHP 5.2.xx in Linux (ssh2, apc)

APC for Php 5.2.xx: wget http://pecl.php.net/package/apc unzip the download file run phpize in the unzip folder ./configure –enable-apc –with-php-config=/usr/local/bin/php-config make && make install enable the apc.so in php.ini SSH2 for Php 5.2.xx wget http://www.libssh2.org/download/libssh2-1.2.5.tar.gz wget http://pecl.php.net/get/ssh2 unzip all downloaded files in libssh2 folder ./configure && make && make install in SSH2 folder phpize ./configure && make … Read more

Load balance in CentOS

1. Testing your system if the bonding driver is available modprobe bonding miimon=100 ifconfig bond0 192.168.1.1 netmask 255.255.255.0 ifconfig eth0 down ifconfig eth1 down ifenslave bond0 eth0 eth1 2. Create the network configration file for next reboot create /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=static ONBOOT=yes NETWORK=192.168.1.0 NETMASk=255.255.255.0 IPADDR=192.168.1.13 GATEWAY=192.168.1.1 USERCTL=no edit /etc/sysconfig/network-scripts/ifcfg-eth0 and eth1 **** original config ***** … Read more

Can’t edit a file in Linux even the root

In some case, the Linux have some files will not allow user edit directly. It will append immutable permission to the file. The file will not allow every one to edit or delete, unless the attribute has been removed. lsattr path_to_file Will show the addition attribute for the file or folder. chattr -i path_to_file Will … Read more

Cent OS 5 PPTPD Setup VPN + NAT

PPTP Server Installation in CentOS 5 This document is shown how to build a Linux Point to Point Tunneling Protocol (PPTP) server using Poptop. This allows roaming users to connect to their corporate network from anywhere on the Internet securely and inexpensively. It supports Windows 95/98/Me/NT/2000/XP PPTP clients and Linux PPTP clients. The requirements are: … Read more