Jump to content

CentOS 5 Webmin Virtual Server PART1 (i386)


Recommended Posts

These instructions are used as reference to install the CentOS 5.5 operating system (i386)


The 7 CentOS Install CD's (or ISO's if you are building in a Virtual Machine)

Internet Access

  1. Insert CentOS CD 1 of 7 and boot from CDROM
  2. Press enter on initial CentOS Splash Screen
  3. CD Found (you can check the media by pressing enter while OK is highlighted. I tab to Skip and press enter to continue)
  4. Click Next
  5. Select Language (I'm selecting English) click Next
  6. Select Keyboard (I'm selecting U.S. English) click Next
  7. WARNING: Initialize Drives.. notifying erasing ALL Data, Click Yes
  8. 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)
  9. Remove all partitions on selected drives, click Next
  10. WARNING: Confirmation... click Yes
  11. Network Setup, (leaving DHCP for now) click Next
  12. Select TimeZone and click Next
  13. Enter a root password (make difficult for others to guess but don't forget it) click Next
  14. Software Applications, Leave just the Desktop - Gnome selected and click Next
  15. Begin Install, click Next (recorded info found ./root/install.log and ./root/anaconda-ks.cfg)
  16. Required Install Media (which of the 7 CD's you actually will be using based on your selections), click Continue to begin
  17. Installation Complete, Click Reboot
  18. Welcome message, click Forward
  19. Firewall: only checkmarks should be, SSH, HTTP and HTTPS and then click Forward
  20. Confirm Setting by clicking Yes
  21. SELinux: change setting to Permissive and click Forward
  22. Date & Time: make necessary changes and click Forward
  23. Create User: enter a username, full name and your password, then click Forward
  24. Sound Card: click Forward
  25. Additional CDs: click Finish
  26. Login Screen: enter username and press enter
  27. Login Screen: enter password and press enter
  28. 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
  29. Package Updater: click Apply Updates
  30. Dependencies Added message, then Downloading Packages
  31. Import Key message will appear, click on Import key
  32. Updating Software message, then Software Update Complete message click OK
  33. Click Reboot Now
  34. Login Screen: enter username and press enter
  35. Login Screen: enter password and press enter
  36. Click Applications - Accessories - Terminal
  37. type: su and press enter
  38. type: root password and press enter
  39. type: rm -f /etc/localtime
  40. type: ln -s /usr/share/zoneinfo/UTC /etc/localtime press enter
  41. type: date and press enter(notice if it has UTC in the date command you entered)
  42. type: reboot and press enter (this will now sync your daemons with your new timezone of UTC)
  43. Login Screen: enter username and press enter
  44. Login Screen: enter password and press enter
  45. Click Applications - Accessories - Terminal
  46. type: su and press enter
  47. type: root password and press enter
  48. type: nano /etc/hosts (and enter the static IP address and hostname of this server.. not necessarily the web server address)

    1. # that require network functionality will fail. localhost.localdomain localhost server1.example.com server1

      ::1 localhost6.localdomain6 localhost6
      # Do not remove the following line, or various programs

    2. type: nano /etc/sysconfig/network-scripts/ifcfg-eth0:0 (review settings for your device)

      1. BOOTPROTO=static








      [*]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

      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

      1. // Show all information, defaults to INFO_ALL


        // Show just the module information.

        // phpinfo(8) yields identical results.



      [*]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)

      1. 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

      [*]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:

      (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)



Link to comment
Share on other sites

  • 8 months later...
  • 5 weeks later...
  • 2 months later...
  • 2 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...