Posts Tagged ‘ubuntu’

vnstat Start Logging – Ubuntu 10.04

By Mark Davidson on December 30th, 2010

Recently I installed vnstat on one of my new Ubuntu VPSs. After running for a while I checked the stats and I found nothing had been logged.

Read & Comment ›››

apc-beta Install – Ubuntu 10.04

By Mark Davidson on December 15th, 2010

Recently I installed the beta version of apc using pecl under Ubuntu 10.04, it took a few attempts before I worked out what the required libraries where so here is my very quick guide to getting it installed and running.

To perform the install, first install the required libraries and second install of apc itself.

sudo apt-get install apache2 php5 php-pear php5-dev libpcre3-dev
sudo pecl install apc-beta

When install apc you will be asked a couple of questions on configuration options best to leave them as default if you don’t know what they do. Once the install is complete you should get output saying.

Build process completed successfully
Installing '/usr/lib/php5/20090626/apc.so'
install ok: channel://pecl.php.net/APC-3.1.6
configuration option "php_ini" is not set to php.ini location
You should add "extension=apc.so" to php.ini

Simply add the line as it says to you php.ini and job done. If you check your phpinfo page output you should see a section for apc saying ‘APC Support enabled’.

I know its a very simple process but second time I have had to spend time figuring out the required libraries and though I would save people time by posting this up.

VPS.net – Ubuntu 10.04 Locale Warning Solution

By Mark Davidson on December 15th, 2010

With a default Ubuntu 10.04 on VPS.net I have found that when running perl scripts the following warning is shown.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

After a bit of Googling I found the simple solution to be to do

sudo apt-get install language-pack-en

also I would recommend doing

sudo update-locale

which solves another locale issue.

References