How to check whether mod_rewrite is enable on server?

Usually cpanel(WHM) compiles mod_rewrite by default. You can check with this: So you must just activate it in your ‘.htaccess’ using: To check if mod_rewrite module is enabaled, create a new php file in your root folder of your WAMP server. Enter the following phpinfo(); Access your created file from your browser. Ctrl+F to open … Read more

Install pear and pear mail on CentOS

PEAR – PHP Extension and Application Repository, PEAR is a framework and distribution system for reusable PHP components. The mail() function is using for sending emails from a php script. This is the most simplest way to send emails from a server and also its not secure process. The mail sending scripts will shows some … Read more

configure: error: no, libmemcached sasl support is not enabled. (pecl/memcached, CentOS, cpanel)

# yum install libmemcached libmemcached-devel # pecl install memcached libmemcached directory [no]: checking whether libmemcached supports sasl… no configure: error: no, libmemcached sasl support is not enabled. Run configure with –disable-memcached-sasl to disable this check ERROR: `/tmp/pear/temp/memcached/configure –with-libmemcached-dir=no’ failed yum install cyrus-sasl-devel # cd /usr/local/src # wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz # tar -zxvf libmemcached-1.0.18.tar.gz # cd libmemcached-1.0.18 … Read more

Install Memcache on WHM/cPanel or CentOS

Memcached (Memcache Daemon) is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory. It is commonly used to speed up dynamic database-driven websites by caching data and objects in server memory to reduce the number of times the data source must be read. Memcached is free … Read more

opcache in php 5.5

Installation OpCache is compiled by default on PHP5.5+. However it is disabled by default. In order to start using OpCache in PHP5.5+ you will first have to enable it. To do this you would have to do the following. Add the following line to your php.ini: Note that when the path contains spaces you should … Read more