installing php-fpm in Ubuntu Lucid Lynx 10.04

19 12 2010

Until it’s in official repository let’s use one provided by Brian Mercer:

put these in sources.list

deb http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main
deb-src http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main

And at then run this:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D0DC64F
sudo aptitude update
sudo aptitude install php5-fpm

done!



transparent http proxy with Linux and Squid

11 08 2009
#<transparent proxying>
#local squid
#iptables -t nat -A PREROUTING -i $INT_IFACE -s ! $PROXY_IP -p tcp –dport 80 -j REDIRECT –to $PROXY_PORT
#remote squid
#iptables -t mangle -A PREROUTING -j ACCEPT -p tcp –dport 80 -s $PROXY_IP
#iptables -t mangle -A PREROUTING -j MARK –set-mark 3 -p tcp –dport 80
#ip rule add fwmark 3 table 2
#ip route add default via $PROXY_IP dev $INT_IFACE table 2
###!!!! do not forget to add following line to proxy_server iptables:
#iptables -A PREROUTING -t nat -i $INT_IFACE -p tcp –dport 80 -j REDIRECT –to-port $PROXY_PORT
#</transparent proxying>

if you are running Squid on or behind you Linux gateway here’s HowTo transparently┬árun all outgoing HTTP through it

Read the rest of this entry »



Cisco ASA 5510 and Squid via WCCP2

25 06 2008

Had this mix working smoothly for couple of years. But recent migration of proxy server to the virtualized Ubuntu server caused strange behavior – sites which are using advanced web techniques (gmail, hotmail etc.) started to show empty pages without any tracks in log files. After some research I had to shoot down TCP window scaling which is enabled by default and decrease mtu to 1400. Full configuration after the break.

Read the rest of this entry »



ncache – nginx based load balancing reverse proxy with cache.

20 03 2008

Was tuning new LAMP cluster last night… Decided to revise what can further boost its performance – was really pleased with speed and functionality of this relatively new but awaited for long time piece of software. Details to come…