Oracle Linux 5 and 6


How to build a free libre open source Oracle GNU/Linux 5 or 6 lamp server (that is 99.99% compatible with CentOS 5 or Red Hat RHEL 6) in 10 mins

Install ISO

Get Oracle Linux ISO from Oracle

Install

Boot from ISO and choose minimal / server install

Disable SELinux


Disable GUI startup

# vi /etc/initab


change id:5: to id:3:

# reboot


Remove Oracle Unbreakable Kernel

Optionally remove KERNEL*UEK* packages is you are creating a LAMP VM and want to install VMware Tools
# yum remove kernel*uek*


You'll have to re-install GCC (AFTER setting up oracle yum repo as below) since it is stupidly removed by uninstalling kernel*uek* !
# yum install gcc


Remove Oracle subscriptions

Remove Oracle RHN subscription services
# yum remove rhn*


Replace with Oracle yum repo

Replace oracle subscription services with Oracle free libre open source public yum repo
# wget http://public-yum.oracle.com/public-yum-el5.repo
# cp public-yum-el5.repo /etc/yum.repos.d/


edit /etc/yum.repos.d/public-yum-el5.repo and set
enabled=1


Add extra repos

EPEL

Add Fedora EPEL yum repo

# wget http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm


edit /etc/yum.repos/epel.repo and set
enabled=0


RPMForge

Add RPM Forge yum repo

# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
# rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm


edit /etc/yum.repos/rpmforge.repo and set
enabled=0


CentOS Testing for PHP 5.2

Add CentOS testing repo if you require PHP 5.2
http://dev.centos.org/centos/5/CentOS-Testing.repo


edit /etc/yum.repos/centos-testing.repo and set
enabled=1


Install AMP


# yum install http
# yum install mysql
# yum install php


Check Firewall


Oracle 5

# system-config-security


Oracle 6

# system-config-firewall



REFERRERS
HomePage
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki