Upgrade to PHP 5.3.10 on Ubuntu 10.04 5

Ubuntu 10.04 is LTS release hence it does not support latest releases of php, i.e you cannot upgrade to latest php version. Here are the instruction how to upgrade to php 5.3.10 on Ubuntu 10.04 You need to add this PPA: https://launchpad.net/~brianmercer/+archive/php5 sudo apt-add-repository ppa:brianmercer/php5 If you get below error: sudo: add-apt-repository: command not found ...

Detecting OS in PHP

Simply echo PHP_OS; It will print: For Mac: Darwin For Windows Visat: WinNT For Ubuntu: Linux Also if you want to know OS details about users accessing your site, you can use $_SERVER[‘HTTP_USER_AGENT’]

Configuring multiple CiviCRM on single Drupal 3

Update: Note that these instructions won’t work for Drupal 7 (due to some changes in core), hence this post is obsolete. Hence I would recommend single code base and separate drupal db for each multi-site. For eg: for CiviCRM 4.3 site you will need 2 db’s drupal_43 and civicrm_43 for drupal and civicrm respectively. ( ...

Xserver crashes on Dell – Ubuntu (Feisty )

My laptop is Dell Inspiron 1505, with ATI Mobility Card When i installed Ubuntu Feisty X-Server was not starting. Instructions to fix: sudo apt-get update sudo apt-get install linux-restricted-modules-$(uname -r) sudo apt-get install xorg-driver-fglrx sudo depmod -a After that reconfigure X Server sudo dpkg-reconfigure xserver-xorg Select fglx driver, keep remaining all default settings(for keyboard etc). ...

Fixing resolution on Dell WideScreens (Feisty – Ubuntu)

It took me a while to fix my resolution. I wanted 1280×800@ 60 resolution for my dell laptop. After lot of googling i got some help. 1. sudoedit /etc/X11/xorg.conf. Make following changes: Section “Monitor” Identifier “Generic Monitor” Option “DPMS” HorizSync 28-64 VertRefresh 43-60 Modeline “1280×800@60” 83.91 1280 1312 1624 1656 800 816 824 841 EndSection ...

Ubuntu Dapper to Edgy upgrade…

Using apt-get Edit your /etc/apt/sources.list as root. Change every occurrence of dapper to edgy. Use any prefered editor. If you have a CD-ROM line in your file, then remove it. sudo vi /etc/apt/sources.list or use the following Simple command sudo sed -e ’s/\sdapper/ edgy/g’ -i /etc/apt/sources.list Now you need to update the source list using ...