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 in the Web servers category:
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
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:
nginx, php-fpm and server blocks
Tutorial on installing and configuring nginx webserver, php-fpm and vhost (server blocks) Quick Links: Nginx Repository Install Nginx Nginx Vhost Config nginx vhost symbolic link To install Nginx you may need to add a repo to your server. Yum repo can be added by adding an nginx repo (nginx.repo) to /etc/yum.repos.d/ Full path: /etc/yum.repos.d/nginx.repo You […]
htaccess
Quick Links: .htaccess for apache mod_rewrite for .htaccess apache .htpassword file nginx http auth (.htaccess equivalent) mod_rewrite for nginx Securing phpmyadmin centos htaccess for apache .htaccess to can be used to specify protecting of a location or protect wp-admin login for wordpress. To use the .htaccess file you will need to allow the file […]