Xi6.org

Archive for February, 2009

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...

Change Computer Name / Host Name Ubuntu Linux (8.10)

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

If you want to change the computer name of your linux box, it’s quite simple. Use the following commands to ensure the name is changed.

sudo nano /etc/hostname

And then make sure your hosts file is updated with the new name as well

sudo nano /etc/hosts

I typically use nano (pico) because to me it seems more user friendly and intutive. You may use vi or any such editor you wish.

2 Comments :, , , , , more...

How To Connect To a VPN using Ubuntu Linux (8.10)

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

In order to connect to a VPN you need a few things. Firstly you’ll need to install a VPN client. (Openvpn being my choice).

sudo apt-get install network-manager-openvpn

Then on the network icon on your task bar, right click and select “edit connections”.

Clicking on the VPN tab should now show the add/import buttons available. Click either depending on the files you were given by your system administrator (or whomever). Enter all your settings and select all the key locations and click OK when done.

Close the network connections box and then you are able to left click on the network icon on the taskbar, going to “VPN Connections” and selecing the VPN you just created. (A little lock will show up with a swirly thing going around your icon!).

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...