PHP Cache

Written by Pravin on October 18, 2008 – 10:23 am -

If your sites are using php as the major scripting & the server load is highly around 10+, PHP Cachers like APC , Xcache or Eaccelerator can are really help to minimize the load to 1-2.

APC: The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was conceived of to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

XCache: XCache is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduce serverload.

Eaccelerator: It is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.


Tags: , , , ,
Posted in Dedicated Server Hosting, linux, Linux VPS Hosting, Plesk For Linux, VPS hosting, Windows VPS | 1 Comment »

Error after installing Ioncube

Written by Jahangir on October 17, 2008 – 3:10 pm -

ERROR
====

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/ioncube/ioncube_loader_lin_5.1.so’ – /usr/lib/php/modules/ioncube/ioncube_loader_lin_5.1.so
The ionCube Loader is a Zend-Engine extension and not a module
Please specify the Loader using ‘zend_extension’ in php.ini
PHP Fatal error: Unable to start ionCube Loader module in Unknown on line 0
====

CAUSE
====
The ionCube Loader is a Zend-Engine extension and if the ionCube Loader is not specify properly in php.ini using ‘zend_extension’.
====

SOLUTION
====

Only you need to specify the ionCube Loader properly in php.ini using ‘zend_extension’ like,

“zend_extension=/path to your ioncube folder/ioncube_loader_lin_5.1.so”


Tags: , , ,
Posted in Dedicated Server Hosting | 3 Comments »

Enable Pear (php) for a Domain on Plesk

Written by Pravin on October 10, 2008 – 4:02 am -

Installing php-pear

First we will have to install the php-pear module on the server. This can be done using yum.

yum install php-pear*

We must also configure pear in php config at /etc/php.ini.

include_path=”.:/usr/share/pear:/local/PEAR/”

Restart apache on the server.

/etc/init.d/httpd stop
/etc/init.d/httpd start

Enable PEAR for a domain.

Create a file called vhost.conf in /var/www/vhosts/domain.com/conf with the following contents:

<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_value include_path “/var/www/vhosts/domain.com/httpdocs/:/usr/share/pear/”
php_admin_value open_basedir “none”
</Directory>

Reconfigure your webserver so it will look for your new vhost.conf file by doing this:

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com

Finally  restart apache service:

/etc/init.d/httpd stop
/etc/init.d/httpd start


Tags: , , , ,
Posted in linux, Linux VPS Hosting, Plesk For Linux, VPS hosting | 3 Comments »
RSS

  • Subscribe Me

  • Tag Cloud

  • Archives