Install PHP 5.3 on CentOS 5.6

This article will outline the process for install PHP 5.3.x on CentOS 5.6 via the Enterprise Linux (EPEL) repository.

System Update

First of all, complete a yum update on your machine by running:

# yum update

If a kernel update occurs I recommend rebooting before completing the rest of the steps in this outline.

Install Repositories

In order to upgrade your PHP and MySQL environment you will need to install two repositories, one from the Fedora site and one from Famillecollet (remi).

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Apache & PHP Update

Once the repo’s are installed you can  complete the install (or upgrade) of MySQL, Apache and PHP: Continue reading “Install PHP 5.3 on CentOS 5.6”

Install LAMP (Linux, Apache, MySQL, PHP) on CentOS 5.6

This article will outline the process for installing Linux, Apache, MySQL and PHP (also known as ‘LAMP’) on CentOS 5.6.

Getting Started

First of all, make sure your YUM repositories and packages are up to date:

# yum check-update
# yum update

Install any available package and library updates.

Apache

Next, install Apache, set it to run on startup, and finally start the service:

# yum install httpd
# chkconfig –add httpd
# service httpd start

MySQL

Installing MySQL is similar to installing Apache, except we have an additional step of running a basic setup wizard. Continue reading “Install LAMP (Linux, Apache, MySQL, PHP) on CentOS 5.6”

Running KeePass 2.x on OSX using MacPack

There is no native OSX installer for KeePass. An alternative is running KeePassX but the the 2.0 password safe database format is not cross-compatible with KeePass on Windows. For those of us who keep KeePass databases syncronized between our Windows machines, Apple iPhone’s and Linux desktops, standard file format is important.

One option is to run KeePass under Mono in OSX but this can be a hassle to setup and maintain. The best solution is to install the Mono framework then use MacPack to compile a native OSX APP, as follows:

  1. Install Mono Framework
  2. Download latest version of KeePass 2.x and unpack it
  3. Open Terminal and navigate to unpacked KeePass folder
  4. Run the following command:

    macpack -o:. -m:winforms -r:/Library/Frameworks/Mono.framework/Versions/Current/lib/ libCocoaSharpGlue.dylib -r:KeePass.chm -r:KeePass.XmlSerializers.dll -r:KeePassLibC32.dll -r:KeePassLibC64.dll -r:License.txt -r:ShinstUtil.exe -r:./XSL -n:KeePass -a:KeePass.exe

  5. Confirm the file is built and no errors occur.

This will create a KeePass.app file that you can drag into your \Applications folder or desktop.

LIBSMBIOS errors when running YUM update on Dell PowerEdge

I’ve recently experienced an issue with Yum updates on some Dell PowerEdge servers which have the Dell OpenManage tools installed.

When running a “yum update” you may see the following transaction errors:

Transaction Check Error:
file /usr/share/locale/de/LC_MESSAGES/libsmbios-2.2-x86_64.mo from install of libsmbios-2.2.26-6.2.el5.i386 conflicts with file from package libsmbios-2.2.19-10.1.el5.x86_64
file /usr/share/locale/en/LC_MESSAGES/libsmbios-2.2-x86_64.mo from install of libsmbios-2.2.26-6.2.el5.i386 conflicts with file from package libsmbios-2.2.19-10.1.el5.x86_64
file /usr/share/locale/en@boldquot/LC_MESSAGES/libsmbios-2.2-x86_64.mo from install of libsmbios-2.2.26-6.2.el5.i386 conflicts with file from package libsmbios-2.2.19-10.1.el5.x86_64
file /usr/share/locale/it/LC_MESSAGES/libsmbios-2.2-x86_64.mo from install of libsmbios-2.2.26-6.2.el5.i386 conflicts with file from package libsmbios-2.2.19-10.1.el5.x86_64
file /usr/share/locale/ja/LC_MESSAGES/libsmbios-2.2-x86_64.mo from install of libsmbios-2.2.26-6.2.el5.i386 conflicts with file from package libsmbios-2.2.19-10.1.el5.x86_64

To resolve this error cut and paste the following to your command line:

rm -rfv /opt/dell/
yum -y remove libsmbios
yum -y remove dell-omsa-repository-2-5.noarch
yum remove openwsman-server openwsman-client Continue reading "LIBSMBIOS errors when running YUM update on Dell PowerEdge"

Subnetting Notes for Beginners

Here are some notes on IP subnetting for beginners.

1 and 1 = 1, everything else = 0.

An IP v4 IP address is 32 bit and made up of four octets, each 8 bits long. The minimum octet value is 0 and the maximum octet value is 255. 4 x 8 = 32.

The decimal notation to binary chart for IP subnetting is: 128, 64, 32, 16, 8, 4, 2, 1 The sum of which is 255 (128+64+32+16+8+4+2+1). 128 is the first 1 in binary chart, 1 is the last.

To convert a IP address from decimal to binary separate each octet, e.g. 203.170.50.1

203 = 128+64+8+2+1 or 11001011
170 = 128+32+8+1 or 10101001
50 = 32+16+2 or 00110010
1 = 00000001

1 and 1 = 1
1 and 0 = 0
0 and 1 = 0
0 and 0 = 0

If your IP address is 192.168.183.91 and your subnet mask is 255.255.255.224 you can find the network address as follows: Continue reading “Subnetting Notes for Beginners”