Centos7 - Start your own website in 15 minutes

Admin

hi
Staff member
Joined
Jan 14, 2015
Messages
150
Points
28
Credits
53,857,711
Bronze Usergroup
Username Style
Here is a great video i found, it's great for beginners, it takes about 15 minutes and you can start your own website,

i use this before, if anyone needs help, let me know,

here is the video:

 

Admin

hi
Staff member
Joined
Jan 14, 2015
Messages
150
Points
28
Credits
53,857,711
Bronze Usergroup
Username Style
- yum install -y nano wget
- yum install -y httpd
- systemctl start httpd
- systemctl enable httpd
- yum install -y mariadb mariadb-server
- systemctl start mariadb
- systemctl enable mariadb
- mysql_secure_installation

set password
y,y,y,y,y

- yum install -y php php-mysql
- systemctl restart httpd
- wget http://prdownloads.sourceforge.net/webadmin/webmin-1.890-1.noarch.rpm
- yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
- rpm -U webmin-1.890-1.norach.rpm

- systemctl disable firewalld
- yum install -y iptables-services
- systemctl enable iptables
- nano /etc/sysconfig/iptables


add this under :OUTPUT ACCEPT [0:0]

-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT

then save it, ctrl+x


- systemctl restart iptables
 
Last edited:

Admin

hi
Staff member
Joined
Jan 14, 2015
Messages
150
Points
28
Credits
53,857,711
Bronze Usergroup
Username Style
afterwards configure mail(no need to add in ip tables)

nano -w -/etc/postfix/main.cf

edit and put own servers ip, will look like this
inet_interface = 192.168.0.103


inet_interface = 192.168.0.103


inet_protocols = ipv4

sudo apt-get install sendmail
chkconfig postfix on

postfix start
postfix stop

echo "test | mail -s "test mail" [email protected]

nano -w /var/log/maillog
cat maillog

restorecon -v /etc/postfix/main.cf
getsebool httpd_can_sendmail
getsebool httpd_can_sendmail
sudo setbool -P httpd_can_sendmail 1
sudo setsebool -P httpd_can_sendmail 1
 

Admin

hi
Staff member
Joined
Jan 14, 2015
Messages
150
Points
28
Credits
53,857,711
Bronze Usergroup
Username Style
add domain

change hostname, example: myserver.com

vi /etc/hostname


hosts file, example: 192.168.1.6 myserver.com localhost
vi /etc/hosts
 
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet. Forum-List.com