May 2, 201115 yr These instructions are used as reference to install the CentOS 5.5 operating system (i386) PREREQ: The 7 CentOS Install CD's (or ISO's if you are building in a Virtual Machine) Internet Access Insert CentOS CD 1 of 7 and boot from CDROM Press enter on initial CentOS Splash Screen CD Found (you can check the media by pressing enter while OK is highlighted. I tab to Skip and press enter to continue) Click Next Select Language (I'm selecting English) click Next Select Keyboard (I'm selecting U.S. English) click Next WARNING: Initialize Drives.. notifying erasing ALL Data, Click Yes Change selection to Remove all partitions on selected drives, click Next (you may want to select a different setting if you have multiple Operating Systems or other configuration) Remove all partitions on selected drives, click Next WARNING: Confirmation... click Yes Network Setup, (leaving DHCP for now) click Next Select TimeZone and click Next Enter a root password (make difficult for others to guess but don't forget it) click Next Software Applications, Leave just the Desktop - Gnome selected and click Next Begin Install, click Next (recorded info found ./root/install.log and ./root/anaconda-ks.cfg) Required Install Media (which of the 7 CD's you actually will be using based on your selections), click Continue to begin Installation Complete, Click Reboot Welcome message, click Forward Firewall: only checkmarks should be, SSH, HTTP and HTTPS and then click Forward Confirm Setting by clicking Yes SELinux: change setting to Permissive and click Forward Date & Time: make necessary changes and click Forward Create User: enter a username, full name and your password, then click Forward Sound Card: click Forward Additional CDs: click Finish Login Screen: enter username and press enter Login Screen: enter password and press enter In less than 5 minutes you will see in the top right corner of the screen a message that says Updates Available, click on View Updates Package Updater: click Apply Updates Dependencies Added message, then Downloading Packages Import Key message will appear, click on Import key Updating Software message, then Software Update Complete message click OK Click Reboot Now Login Screen: enter username and press enter Login Screen: enter password and press enter Click Applications - Accessories - Terminal type: su and press enter type: root password and press enter type: rm -f /etc/localtime type: ln -s /usr/share/zoneinfo/UTC /etc/localtime press enter type: date and press enter(notice if it has UTC in the date command you entered) type: reboot and press enter (this will now sync your daemons with your new timezone of UTC) Login Screen: enter username and press enter Login Screen: enter password and press enter Click Applications - Accessories - Terminal type: su and press enter type: root password and press enter type: nano /etc/hosts (and enter the static IP address and hostname of this server.. not necessarily the web server address) # that require network functionality will fail.127.0.0.1 localhost.localdomain localhost192.168.0.100 server1.example.com server1::1 localhost6.localdomain6 localhost6 # Do not remove the following line, or various programs type: nano /etc/sysconfig/network-scripts/ifcfg-eth0:0 (review settings for your device) BOOTPROTO=staticBROADCAST=192.168.0.255IPADDR=192.168.0.101IPV6ADDR=IPV6PREFIX=NETMASK=255.255.255.0NETWORK=192.168.0.0ONBOOT=yes DEVICE=eth0:0 [*]type: /etc/init.d/network restart[*]type: yum upgrade[*]type: yum update[*]type: yum -y install yum-priorities[*]type: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm [*]type: rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm [*]type: yum -y install httpd[*]type: yum install mysql mysql-devel mysql-server[*]type: chkconfig --levels 235 mysqld on (this adds mysql to start upon reboot)[*]type: /etc/init.d/mysqld start[*]type: netstat -tap (confirm you see mysql running)[*]type: mysqladmin -u root password yourrootsqlpassword [*]type: yum remove php php-* (just in case you have a previous version of php installed)[*]type: yum -y install php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-pecl-apc php53u-pecl-memcache php53u-snmp[*]type: nano /var/www/html/phpinfo.php // Show all information, defaults to INFO_ALLphpinfo();// Show just the module information.// phpinfo(8) yields identical results.phpinfo(INFO_MODULES);?> <?php [*]type: chkconfig httpd on (if you get an error message, type: whereis chkconfig and use the path like /sbin/chkconfig httpd on) [*]type: /sbin/service httpd start or you can type /etc/init.d/httpd start [*]open your browser and browse to that phpinfo.php file you just created: http://localhost/phpinfo.php[*]type: wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz [*]type: tar xvfz ioncube_loaders_lin_x86.tar.gz[*]type: cd ioncube[*]type: mkdir /usr/local/ioncube[*]type: cp /home/dennis/* /var/www/html/ [*]type: nano /etc/php.ini (scroll to the bottom of the file) zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so [*]type: /etc/init.d/httpd restart[*]browse and download the sef_advance_tester.php from http://community.mywiseguys.com/files/file/104-sef-advance-tester/ [*]go to your home directory: cd /home/dennis[*]copy sef_advance_tester.php to your html directory: cp sef_advance_tester.php /var/www/html/[*]in browser type: http://localhost/sef_advance_tester.php (ionCube Loader must be green and so must Server Software.. note under additional information PHP Version should be 5.3 or newer)[*]type: wget http://prdownloads.sourceforge.net/webadmin/webmin-1.550-1.noarch.rpm [*]type: rpm -ivh webmin-1.550-1.noarch.rpm[*]verify webmin is installed by typing in your browser: http://localhost:10000 Now you have CentOS 5.6 installed and updated Apache installed PHP 5.3 installed ionCube installed mySQL installed webmin PART2 will discuss configuring webmin and installing two virtual websites (not really CentOS specific) sef_advance_tester.php sef_advance_tester.php
January 19, 201214 yr Author I'll start working on it. I got distracted with Ubuntu 11.10 server issues but I can happily say the CentOS server has been VERY reliable.
February 18, 201214 yr Moderators Thx wildweaselmi for this informative tutorial - especially the video thx again! Hope part 2 will be out at a cinema near u soon
May 1, 201214 yr Author I keep working on it but it never turns out the way I want it to. I will try and put something up by the end of this week.
July 24, 201213 yr Moderators This is a great tutorial. I have looked all over the web and this is the best. The only question I have is, what if you connect your machine to router and you restart and you can't connect to the web? what are the steps to know what your motherboard netcard name is and ip set up procedure is.
Create an account or sign in to comment