Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Mar 142009
 

Install APC for PHP on Ubuntu

Answer:

APC is a very fast byte-code caching module for PHP. (It will become part of PHP6 in the future). By installing it, the performance of your PHP codes can be speed up by 200-300%.

To install it under Ubuntu,

# sudo apt-get install php-apc

Then restart Apache,

# sudo /etc/init.d/apache2 restart

See also: Compile/Install APC on RedHat/CentOS/Fedora Linux

Feb 072007
 

Setup default system timezone in Linux

Answer:

To setup the default system timezone in Linux.

1. Check what timezones are available in your system

# ls /usr/share/zoneinfo/

...
Australia  Canada   EST    ..
..

2. From the list above, pick one you want to set, e.g. Canada

# sudo ln -sf /usr/share/zoneinfo/Canada /etc/localtime

That's all.