2017年5月9日星期二

Centos 7 install SSH , LAMP(replace mariadb with Mysql-server) & webmin

Install SSH

yum -y install openssh*

after installation complete. start the service

service sshd start


------------------------------------------------------------------------
Install LAMP

yum  -y  install  httpd  php  php-mysql  mariadb mariadb-server

Set MARIADB start when boot and start now

systemctl start mariadb
systemctl enable mariadb
Set Apache start when boot and start now

systemctl start httpd.service
systemctl enable httpd.service
After that , double check the firewall setting to make sure ports are opened correctly.

Edit use this command
vi /etc/sysconfig/iptables

After edit , please restart the service again
/etc/init.d/iptables restart

Double check the firewall status
/sbin/iptables -L -n

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

Download Webmin & install (Remarks, please install & start all service for LAMP before install webmin)

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

then install optional dependencies with :

yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty

and then run the command :

rpm -U webmin-1.831-1.noarch.rpm

more details can be find at :
http://www.webmin.com/rpm.html