Create a partial backup cpanel

To back up a portion of your site:

*Select Backup from the first page.
*Select the portion of your site to back up by clicking Home Directory, MySQL Databases, or Email Forwarders & Filters.
*Click the appropriate link or button on the following page to store the required information to your computer or web server.

The type of the backup file will depend on what portion of your site you are saving to your computer. For a list of backups and their corresponding file types, see the table below.

————————–
Part of Site File Type |
————————–
Home Directory *.tar.gz
————————–
Email Forwarders *.net, *.com
————————–
Email Filters *.net, *.com
————————–
SQL Database *.sql
————————–


ClamAV quick commands

ClamAV quick commands

Update antivirus database:

freshclam

Scan a directory and print out infected files:

clamav -ri /home

Scan a directly and remove infected files and emails:

clamav -ri –remove /home

Memcached Dependencies

Memcached Dependencies

Memcached is a C program, depending on a recent version of GCC and a rececnt version of libevent. The recommended method of installation is to first try your distribution’s package manager. If the version it contains is too old, you may have to try installing from a backport, or by source.

Installing From Your Distribution

Redhat/Fedora

yum install memcached

PHP Memcache Extension with cpanel

Download the latest stable version of memcache from http://pecl.php.net/package/memcache

Download and Install

wget http://pecl.php.net/get/memcache-2.2.5.tgz
tar xvf memcache-2.2.5.tgz
cd memcache-2.2.5
phpize
./configure && make && make install

Update php.ini Configuration

Create an empty file called test.php and place this in it the php info.

Determine what php.ini file is configured.

root@host [~/php]# php -f test.php | grep “Loaded Configuration File”
Loaded Configuration File => /usr/local/lib/php.ini

What is Memcached?

What is Memcached?

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

« Prev - Next »