Xi6.org

Tag: php

How To Increase PHP Memory Limit

by on Feb.21, 2009, under linux/ubuntu

Ok, I’m sure that at one point or another we’ve all come across:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1966080 bytes)

Or some similar number of bytes, when trying to execute various web based php scripts or applications. The easiest way to change this is to drop in a .htaccess file with the following line (in your html directory)

php_value memory_limit 32M

If you have access to your php.ini file or wish to make the change that way, just change the following line to whatever Meg of ram you want. (Try 32M)

memory_limit 16M

Leave a Comment :, , more...

How To install Zend Ioncube Loader PHP Ubuntu Linux

by on Feb.20, 2009, under linux/ubuntu

Download the current tarbal for your architecture. (Mine is x86_64) Choose your’s accordingly.

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

next extract it

tar -zxvf ioncube_loaders_lin_x86-64.tar.gz

move the loader you need or just extract the whole dir to whatever location

sudo mv -R ioncube/ /usr/local/lib/

Edit your php ini file and add the following line:

sudo nano /etc/php5/apache2/php.ini

zend_extension=”/usr/local/lib/ioncube/ioncube_loader_lin_x.x.so”

restart apache

sudo /etc/init.d/apache restart

(or)

sudo apache2ctl restart

2 Comments :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...