Live Help

Enterprise Email Hosting

Guru-host is now offering a wide range of Zimbra hosted packages based on latest Zimbra Collaboration Suite. With Zimbra you will be able to sync in real time your mobile phone no matter it's Operating System, share documents, write online documents and many many other interesting features available only on Zimbra. Squirrelmail, Gmail, Horde and other IMAP clients are a way behind Zimbra. Contact us to setup a demo account for you. Pricing details along with usuful information about how Zimbra works can be found under http://guru-host.eu/en/Zimbra.

Guru-host goes to Centos.org

We are thrilled to announce that Guru-host.eu is a sponsor of CentOS project.
A new repository with 100Mbit Internet Connection on Dual Core Xeon CPU will be available to all our customers along with European citizens. This will server data much faster than the US repositories. Guru-host customers will be able to update their CentOS servers without calculating traffic (bandwidth) as the server is running inside our core network. CentOS is 100% compatible with Redhat Enterprise Server.


Network Storage up to 8TB per customer

We can now deliver iSCSI storage on our enterprise class Storage Area Network (SAN) which is based on the industry leading Lefthand Networks platform from HP.

Contact us for a custom quote
MMCache How To on Linux

Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. Turck MMCache typically reduces server load and increases the speed of your PHP code by 1-10 times.

Latest Turck MMcache versions can be downloaded from:
http://sourceforge.net/project/showfiles.php?group_id=69426

Be sure that you have
installed the following packages or recent versions of them:
apache 1.3, mod_php 4.1,
autoconf, automake, libtool, m4

Unpack the file by issuing
the command:
tar xvf
turck-mmcache-2.4.6.tar.bz2 -bzip

Compiling, installing Turck MMCache

export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-mmcache=shared
--with-php-config=$PHP_PREFIX/bin/php-config
make
make install

Note: Prefix for cPanel
based servers is /usr

Next, issue the following
commands:

# updatedb
# locate mmcache.so

You will see something
like:

root [/]# locate mmcache.so
/usr/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so
/usr/src/turck-mmcache-2.4.6/modules/mmcache.so
/usr/src/turck-mmcache-2.4.6/.libs/mmcache.so

Then, go to your home
directory and issue the following:

user [/]# vi info.php

Add the following to that
file:
<?php phpinfo(); ?>
and press wq to save and exit

Go to your browser and type
yourdomain.com/info.php
Find the Configuration
File (php.ini) Path and edit that file.
Php.ini can be found under /usr/local/lib/php.ini on
cPanel based servers.

Edit that file (vi /usr/local/lib/php.ini) and search for
zend.
Above the lines:
;zend_optimizer.optimization_level=15
;zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
add the following:

zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"

Save the file and exit (wq)
Then issue the following
commands:
mkdir /tmp/mmcache
chmod 0777 /tmp/mmcache
Be sure that your tmp directory has plenty of space.
Restart Apache:
/etc/init.d/httpd restart
Go to your info.php file and search through your browser for mmcach.

NOTICE:
If you get an error message after #$PHP_PREFIX/bin/phpize command.

/usr/local/bin/phpize: line 48: cd: /usr/local/lib/php/build: No such file or directory
/usr/local/bin/phpize: line 49: cd: /usr/local/lib/php/build: No such file or directory
/usr/local/bin/phpize: line 52: /usr/local/lib/php/build/phpize.m4: No such file or directory
aclocal: `configure.ac' or `configure.in' is required

You need to run "yum install php-devel"
For WBEL and RHE run "up2date php-devel"

Comments, questions are always welcome, just drop me an email at admin [at] guru-host.com

Posted on: 19/06/2008

Back to Home page