Tech Blog
Tech Nooz and How Tooz
CentOS 5.6 Basic Installation – with PHP, MySQL, Apache
Categories: Installation

Hit F11 for boot menu (Works on my machine. Yours may be different)

Boot from CD Rom – used graphical installation
CentOS 5.6

/*** PARTITIONING ***/

Choose “Auto Partition”
Remove all partitions

No boot loader password

/*** NETWORKING ***/
Click “Edit”
CHECK ONLY IPv4 support

Uncheck “DHCP”
Add Static IP: 66.77.222.33 (GET THESE NETWORK SETTINGS FROM YOUR HOST OR NETWORK ADMIN)
Netmask: 255.255.255.0

Set Hostname Manually:
obama.iamthepresident.com

Gateway: 66.77.222.1
Primary DNS: 66.77.222.7
Secondary DNS: 66.77.222.8

/*** TIMEZONE ***/
“America/Los_Angeles” (Choose your own timezone)
check: “System Clock uses UTC”

set root password

/*** Customize Software Packages ***/
Choose:

DESKTOPS
Gnome Desktop Environment
SERVER
Click: customize now

DESKTOP ENVIRONMENTS
Gnome – choose defaults
APPLICATIONS
Authoring & Publishing – choose defaults
Editors – choose defaults
Graphical Internet – choose defaults
Graphics – choose defaults
Text Based Internet – choose defaults
DEVELOPMENT
Development Libraries – choose defaults
Development Tools – choose defaults
SERVERS
Mail Server – choose defaults
MySQL Database – mod_auth_mysql
+ php-mysql
+ mysql_devel
+ choose defaults
Web Server + mod_authz_ldap
+ php_odbc
+ choose defaults
BASE SYSTEM
Base – choose defaults
Xwindows System – All Xorg packages
+ choose defaults

- completed -

SYSTEM REBOOTS

/*** post install tasks ***/

/**********************************************/
NOTE: You must disable the firewall and disable SElinux – Thank me later
/*********************************************/

Firewall: Disabled

SELinux: Disabled

Enable NTP:

adduser smith (Choose your own user name)


chkconfig httpd on
chkconfig mysqld on
chkconfig sshd on

[root@localhost ~]# /etc/init.d/httpd start

[root@localhost ~]# /etc/init.d/mysqld start

nano /etc/aliases (nano is my text editor of choice. Use whatever one you like)

Edit this file:
# Person who should get root’s mail
root: agentsmith@not-a-real-hostname.com

Edit this file:

nano /etc/httpd/conf/httpd.conf

edit file to say this:
Listen 66.77.222.33:80 (Again, this IP is from your Network Administrator)

ServerAdmin agentsmith@not-a-real-hostname.com

ServerName 66.77.222.33:80

<Directory “/var/www/html”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

AccessFileName .htaccess

<Files ~ “^.ht”>
Satisfy ALL
# Order allow,deny
# Deny from all
</Files>

/*** Update the system packages ***/
yum update

- completed -

/****************************/

Now, create your backup scripts and secure your machine (with firewall and system hardening) before it is live in the production environment.

Comments are closed.