Spark is currently live on Twitch! Go There Now?
April 2, 2020
Advice I Wish I Could Take For Myself
[CentOS 8] How To Set Up New Server From A Blank Slate

Taking notes so I don't forget this process again. This is what I do when I create a new server from scratch.

  • //-> install, start, enable httpd, php, mysql, vsftpd
  • yum update
  • //-> installs Apache, which is needed for websites to run (I think)
  • yum install httpd
  • systemctl start httpd
  • systemctl enable httpd
  • //-> i use php for my programming
  • yum install php
  • systemctl start php
  • systemctl enable php
  • //-> mysql so we can connect with database
  • yum install mysql
  • systemctl start mysqld
  • systemctl enable mysqld
  • //->vsftpd will allow us to ftp into the server
  • yum install vsftpd
  • systemctl start vsftpd
  • systemctl enable vsftpd
  • //-> add user for ftp purposes
  • adduser newUser
  • passwd newUser
  • usermod -d /var/www/html newUser
  • //-> test status of firewall & open each service
  • firewall-cmd --state
  • firewall-cmd --zone=public --add-service=http
  • firewall-cmd --zone=public --add-service=https
  • firewall-cmd --zone=public --add-service=ssh
  • firewall-cmd --zone=public --add-service=ftp
  • firewall-cmd --reload
  • systemctl restart httpd
 Profile Picture
Comment