Squid server

- sudo apt-get install openssh g++ openssl-dev

- download Squid 3.1 from website:

- ./configure --enable-ssl

- make

- make install

- cd /usr/local/squid/var

- sudo chmod a+w cache

- sudo chown nobody cache

- sudo chmod a+w logs

- sudo chown nobody logs

- sudo chmod a+w run

- sudo chown nobody run

- add the following lines to: /usr/local/squid/etc/squid.conf

http_port 80 accel
cache_peer parent 80 0 no-query originserver name=webp2p
acl our_sites dstdomain
http_access allow our_sites
cache_peer_access webp2p allow our_sites

- sudo /usr/local/squid/sbin/squid -z

note. this command will create cache and log directories in /usr/local/squid/var. make sure all directories created are owned by "nobody"

- sudo /usr/local/squid/sbin/squid -NCd1

note. -NCd1 is used for debugging

Apache server


apache2ctl start