April 2, 2020
Issues we've come across, and how we fixed them.
[CentOS 8] How To Set Up New Server From A Blank Slate

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

  • //-> install, start, enable httpd, php, mysql, vsftpd
  • yum update
  • //-> installs Apache, which is needed for websites to run
  • yum install httpd
  • systemctl start httpd
  • systemctl enable httpd
  • //-> we use php for my programming
  • yum install php
  • systemctl start php
  • systemctl enable php
  • //-> so we can send mail using online forms
  • yum install sendmail
  • 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

Proudly Serves

Allentown, Bethlehem, Lehigh Valley... and everywhere else!

Follow Our Socials