PHP enable error reporting Rumi, December 11, 2013 You can set PHP error reporting on in php.ini file (in case you have access to this file). Set the following lines: error_reporting = E_ALL display_errors = On If you have no access to php.ini file but you can modify .htaccess file on your server (in root of your public_hml… Continue Reading
PHP-RRDTool installation on CentOS 5 Rumi, January 13, 2013January 13, 2013 Step-1 Adding Yum Repository Add the Reporforge repository. Then- Yum install php-rrdtool Alternatively, you can download the rpm from http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/php-rrdtool-1.4.4-1.el5.rf.i386.rpm Continue Reading
Installing XHProf on Debian Rumi, January 12, 2013January 12, 2013 xhprof provides profiling information, down to the function call. This includes execution time, CPU and memory usage for each operation. The module allows you to find and optimise bottlenecks in your application. The library includes a GUI output, you just use the classes provided to create the reports. I installed… Continue Reading
Using FastCGI with Nginx for Performance on a VM Rumi, November 11, 2012November 11, 2012 This weekend I decided to play around with the configuration on my Rackspace Cloud Server. Since our various websites have been doing well lately, the relatively low-powered machine I am running on is starting to fill up its available RAM. So far so good but as everyone quickly learns –… Continue Reading
PHP accelerator Rumi, November 11, 2012 Even though compilation is very fast, it still has a resource and time cost, especially on high-traffic servers. We can improve our response times by more than 5x by pre-caching our compiled opcode for direct execution later. There are a few PHP accelerators which accomplish this for us: Xcache Xcache… Continue Reading
Install Memcache Rumi, November 11, 2012June 20, 2013 By default PHP loads and saves sessions to disk. Disk storage has a few problems: 1. Slow IO: Reading from disk is one of the most expensive operations an application can perform, aside from reading across a network. 2. Scale: If we add a second server, neither machine will be… Continue Reading
Redhat/CentOS install PHP on NginX server as fastcgi Rumi, August 26, 2012 tep # 1: Enable EPEL repo ngnix is not included in the base system. Turn on EPEL repo to install nginx stable release: # rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -m)/epel-release-5-3.noarch.rpm Step # 2: Install ngnix Type the following command at a shell prompt: # yum install nginx Sample output: Loaded plugins: downloadonly,… Continue Reading