Jump to content

CentOS 5 Webmin Virtual Server PART1 (x64)


wildweaselmi
 Share

Recommended Posts

Had to Install Fresh (old system is 32bit install, new system is 64bit install)



after unselecting (web server, mysql, ftp server, gnome desktop, etc.)



Required x64 CD's: 1,2,3,4,5,8



nano /etc/hosts

rm -f /etc/localtime

ln -s /usr/share/zoneinfo/UTC /etc/localtime







edited nano /etc/profile (TO ADD PROXY SUPPORT)

below:

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC



add:

http_proxy="http://DOMAIN\user234:SECRETS@10.60.0.13:80/"

https_proxy=$http_proxy

ftp_proxy=$http_proxy

export http_proxy https_proxy ftp_proxy









edited nano /etc/yum.conf (ADD PROXY SUPPORT)

below:





add:

proxy=http://10.60.0.13:80

proxy_username=DOMAIN\user234

proxy_password=SECRETS







Reboot the server

reboot





Upgrade the software

yum -y upgrade





Reboot the server

reboot





Install the following prereq.

yum -y install yum-priorities







Download and installed the following

wget "http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm"

rpm -Uvh epel-release-5-4.noarch.rpm





Note: If you are going through a corporate proxy and this site is blocked, here is an alternative.

wget "http://mywiseguys.com/files/epel-release-1-1.ius.el5.noarch.rpm"

rpm -Uvh epel-release-1-1.ius.el5.noarch.rpm







Install Apache Web Server (may already be installed)

yum -y install httpd



ALREADY INSTALLED?



Start Apache automatically after reboot of server

chkconfig httpd on





Install MySQL

yum -y install mysql mysql-devel mysql-server





Start MySQL after every reboot

chkconfig --levels 235 mysqld on

/etc/init.d/mysqld start





Set MySQL Admin password

mysqladmin -u root password [i]yourrootsqlpassword[/i]





Install the PHP 5.3 minimum

yum remove php php-*





x64 PHP 5.3 install:

yum -y install php53.x86_64 php53-bcmath.x86_64 php53-cli.x86_64 php53-common.x86_64 php53-dba.x86_64 php53-devel.x86_64 php53-gd.x86_64 php53-imap.x86_64 php53-intl.x86_64 php53-ldap.x86_64 php53-mbstring.x86_64 php53-mysql.x86_64 php53-odbc.x86_64 php53-pdo.x86_64 php53-pgsql.x86_64 php53-process.x86_64 php53-pspell.x86_64 php53-snmp.x86_64 php53-soap.x86_64 php53-xml.x86_64 php53-xmlrpc.x86_64







Download and install ioncube

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

tar xvfz ioncube_loaders_lin_x86.tar.gz


cd ioncube


mkdir /usr/local/ioncube


cp /root/ioncube/* /usr/local/ioncube/





nano /etc/php.ini

  • zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so



/etc/init.d/httpd restart









wget "http://mywiseguys.com/files/sef_advance_tester.php"







Download and install Webmin

wget "http://prdownloads.sourceforge.net/webadmin/webmin-1.550-1.noarch.rpm"



Note: If you are being blocked by corporate firewall

# wget "http://prdownloads.sourceforge.net/webadmin/webmin-1.550-1.noarch.rpm"

--2011-06-02 07:35:43-- http://prdownloads.s...50-1.noarch.rpm

Connecting to 10.9.0.16:80... connected.

Proxy request sent, awaiting response... 403 Forbidden

2011-06-02 07:35:43 ERROR 403: Forbidden.


I have the file located here

wget "http://mywiseguys.com/files/webmin/webmin-1.550-1.noarch.rpm"

rpm -ivh webmin-1.550-1.noarch.rpm



Note: If you decided to download the .tar.gz file then here is what to do

gunzip webmin-1.550.tar.gz

tar xf webmin-1.550.tar

cd webmin-1.550

./setup.sh /usr/local/webmin






After installation you should be able to browse to http://serverip:10000 (or whatever port you set)

If you are unable to reach the server check some common issues:

1. Verify webmin is started (just run /etc/init.d/webmin start)

2. Check to make sure that port is open

lsmod | grep ip_tables 

iptables -L -n





If iptables (firewall) isn't running, run the following command

system-config-securitylevel





Add port 10000 to iptables so you can access the webmin page

nano /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT





Restart firewall

service iptables restart





Verify port is open

iptables -L -n

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.

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

 Share

×
×
  • Create New...