INSTALL Virtualmin

By admin at 2017-09-29 • 0 collector • 1799 pageviews

CentOS 5

----

# yum -y update

# yum install -y ntp nano nmap sysstat perl wget

-----------------------------------------------------------------

upgrade php 5.1 to 5.3  สำหรับ centos ต่ำกว่า version 6

# php -v

# yum list installed | grep php | cut -d' ' -f1

# yum search php53 | cut -d' ' -f1 | grep php

# service httpd stop

# yum remove php php-cli php-common php-devel php-gd php-mbstring \


# yum install php53-* -y

# yum install php53-mbstring

---------------------------------------------------------------

ติดตั้ง calmav antivirus


# cd /etc/yum.repos.d/

# wget http://www.linux-mail.info/files/dag-clamav.repo

# yum -y install clamav clamav-devel clamd

# clamscan

# freshclam

# /etc/init.d/clamd restart


------------------------------------------------------------------


 Disable SELINUX


To disable SELINUX we have to edit the config file

nano /etc/selinux/config

and change the SELINUX line to:

SELINUX=disabled

Then type:

setenforce 0

to disable selinux durring runtim

---------------------------------------------------------------*


ติดตั้ง VirtualMin


# cd /tmp

# wget http://software.virtualmin.com/gpl/scripts/install.sh

# /bin/sh install.sh


จบการติดตั้ง


https://x.x.x.x:10000

>login as root


follow steps


update via virtualmin cp


--------------------------------------------------------------


อัพเกรด php 5.1/5,2 to 5.3 อีกวิธี


# php -v

# yum list installed | grep php | cut -d' ' -f1

# yum search php53 | cut -d' ' -f1 | grep php

# service httpd stop

# yum remove php php-cli php-common php-devel php-gd php-mbstring \

# yum install php53 php53-cli php53-common php53-devel php53-gd \

# yum install php53-devel libmcrypt-devel

# yum install php53-mbstring



ติดตั้ง mcrypt extension


# yum -y install gcc make

# wget http://museum.php.net/php5/php-5.3.3.tar.gz

#  tar xvfz php-5.3.3.tar.gz

# cd php-5.3.3/ext/mcrypt/

# phpize

# aclocal

#  ./configure

# make

# make test


ตอบ Yes   แล้วใส่ email


# make install

# echo -e "; Enable mcrypt extension module\nextension=mcrypt.so" | \

# reboot


==========================================


CentOS 6

----

# yum -y update

# yum install -y ntp nano nmap sysstat perl wget

------


ติดตั้ง calmav antivirus


# cd /etc/yum.repos.d/

# wget http://www.linux-mail.info/files/dag-clamav.repo

# yum -y install clamav clamav-devel clamd

# clamscan

# freshclam

# /etc/init.d/clamd restart


-------


Disable SELINUX


To disable SELINUX we have to edit the config file

nano /etc/sysconfig/selinux

and change the SELINUX line to:

SELINUX=disabled

Then type:

setenforce 0

to disable selinux durring runtim

--------


ติดตั้ง VirtualMin


# cd /tmp

# wget http://software.virtualmin.com/gpl/scripts/install.sh

# /bin/sh install.sh


จบการติดตั้ง


https://x.x.x.x:10000

>login as root


follow steps


update via virtualmin cp


=========================================

Requires Login

Loading...