APC is used for php caching. There are two main ways you can install APC. This guide will show you how to do both eventually. To start off I will show you how to install using Pecl. Pecl installs the latest version of APC. This install should normally be fine however sometimes it may not […]
Posts from January 2015
sFTP Chroot (with BIND mounts)
This guide will go through secure FTP (sFTP) which uses the ssh port 22. sFTP is more secure than FTP as it encrypts data. This guide will explain how to jail a user so that they have no way to break out of their home directory. You are then able to mount a location to their […]
vsFTPd
This guide will go through installing and configuring vsFTPd on CentOS. The guide will also cover chrooting users. Quick Links: Installing vsFTPd Configuring vsftpd.conf Configuring vsftpd chroot Firewall rules Adding a new user Modifying a user Creating an FTP group Upload Permissions
Memcache (Data + Object caching)
Memcache(d) is a object caching system that stores data in RAM to reduce the number of times something has to be read. It is generally used to speed up dynamic database-driven websites. Quick Links: Memcache repo CentOS Installing memcache Installing memcache php module Php.ini configuration Memcache Commands
Percona DB
Perconadb Quick Links: Adding Perconadb Repo Installing Percona db 5.5/5.1 Securing db configuration Creating .my.cnf
X-Forwarded-For Headers (Loadbalancers)
If you have a server behind a loadbalancer then your web servers access logs may not log the correct IP address, they may log localhost or the ipaddress of the load balancer. Some hosting companies such as Rackspace have their LoadBalancer add a specific header called X-Forwarded-For headers. You can make a few changes to […]
Varnish
Varnish is a reverse caching proxy. It is used to reduce the load on a server when the same website is being repeatedly requested. This guide is for CentOS. Quick Introduction to varnish: