Install ZendOptimizer 3.3.9 to Lenny

# php -v
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 2010 03:25:57)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

# wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

# tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

# cp ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /usr/lib/php5/

下面这步是重点
# echo “zend_extension=/usr/lib/php5/ZendOptimizer.so” > /etc/php5/conf.d/zend.ini

# /etc/init.d/apache2 restart

# php -v
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 2010 03:25:57)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Install pptp and radius on lenny

1,install all packages
#apt-get install pptpd freeradius radiusclient1

2,configure pptp
#vim /etc/pptpd.conf

localip 192.168.42.122
remoteip 192.168.42.123-200

#vim /etc/ppp/pptpd-options

ms-dns 8.8.4.4
ms-dns 208.67.222.222
plugin /usr/lib/pppd/2.4.4/radius.so
radius-config-file /etc/radiusclient/radiusclient.conf

3,configure radius
#vim /etc/freeradius/client.conf

client 127.0.0.1 {
 secret  = mysecret
 nastype     = other
}

#vim /etc/freeradius/users

myusername Cleartext-Password := “mypassword”
 Service-Type = Framed-User,
 Framed-Protocol = PPP,
 Framed-IP-Address = 192.168.42.123,
 Framed-IP-Netmask = 255.255.255.0,
 Framed-Routing = Broadcast-Listen,
 Framed-Filter-Id = “std.ppp”,
 Framed-MTU = 1500,
 Framed-Compression = Van-Jacobsen-TCP-IP
 
 
4,configure radclient
#vim /etc/radiusclient

127.0.0.1           mysecret
 
#vim /etc/radiusclient/dictionary.microsoft

add content from http://wiki.freeradius.org/PopTop

#vim /etc/radiusclient/dictionary

INCLUDE /etc/radiusclient/dictionary.microsoft
INCLUDE /etc/radiusclient/dictionary.merit
5,test radius
#radtest myusername mypassword 127.0.0.1 0 mysecret

6,if OS not exist /dev/ppp device,creat it
#mknod /dev/ppp c 108 0