APC Install Using Pecl

APC is a cache speeding up php execution and allows you to speed up applications by in-memory caching.

You can already install it though:

# pecl install apc

Or, for those with /tmp mounted as noexec:

{{{{install new package from pecl site}}}}}}

I downloaded here >> APC-3.1.6.tgz
# wget http://pecl.php.net/get/APC-3.1.6.tgz
# tar -xvzf APC-3.1.6.tgz
# cd APC-3.1.6
# phpize
# ./configure
# make
# make install

Now configure PHP to use the new extension, add the following in the php.ini file.

Setting Maximum Mails Per Hour For A Domain

Try the following steps to set maximum mails per hour count for a single domain other than the server wide default setting “maxemailsperhour” in /var/cpanel/cpanel.config

– Edit the file
vi /var/cpanel/user/user-name

– Add the entry MAX_EMAIL_PER_HOUR=number

– After saving the file , run the script

/scripts/update_email_limits user-name

This will create corresponding domain entry in /var/cpanel/maxemailsperdomain