-
Notifications
You must be signed in to change notification settings - Fork 0
BloggingAssessment
Order of Operations:
- New local user
- Update the ip address and hostname - nmtui
- Disable root SSH
- Install software of choice - wordpress (there are many steps to this so they aren't listed)
- Domain Join
First reset the root user password with passwd (as root)
Then make a new user:
useradd elizabeth.chadbournepasswd elizabeth.chadbourneusermod -aG wheel elizabeth.chadbourne
Log out and log back in as elizabeth.chadbourne
nmtui
- IP to 10.0.5.20/24
- Default Gateway 10.0.5.2/24
- DNS to 10.0.5.6/24
- hostname to blog01-elizabeth
systemctl restart network
nano /etc/ssh/sshd_config
If nano doesn't work install with: yum install -y nano
Change "Permit root login" from yes to no
systemctl reload sshd
I'm doing this in a slightly different way than the tutorial, but it should have the same result
yum install -y httpd - Install httpd services
Configure the firewall
firewall-cmd --permanent --add-port=80/tcpfirewall-cmd --permanent --add-port=443/tcpfirewall-cmd --reload
Enable everything
systemctl enable --now httpd
Wordpress requires PHP 7 which is not in Centos 7 by default, so we need to make sure we download the correct version
yum install -y yum-utils epel-releaseyum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpmyum-config-manager --enable remi-php73yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql –y
This will make it easier to configure wordpress later
yum install -y mariadb-serversystemctl enable --now mariadb
I just want to restart httpd one more time before we install Wordpress:
systemctl restart httpd
-
yum install -y wget unzip- needed to get everything we need wget https://wordpress.org/latest.zipunzip latest.zip
Remove the current /var/www/html to make it easier to put wordpress there
rm -r /var/www/htmlmv wordpress /var/www/html
mysql -u root
In MySQL prompt:
- CREATE DATABASE echadbourne;
- GRANT ALL ON echadbourne.* to 'username'@localhost identified by 'apassword';
- FLUSH PRIVILEGES;
- exit;
Make sure to put the semicolon (;) at the end of each line, otherwise it won't work right
setenforce 0chown -R apache:apache /var/www/html-
cp /var/www/wp-config-sample.php /var/www/wp-config.php- Copy the sample file into a new config file -
nano /var/www/html/wp-config.php- edit said config file with the database name, username, and password
Restart httpd now with wordpress installed
systemctl restart httpd
Browse to http://10.0.5.10 and set up wordpress!
yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd
realm join --user=your-domain-admin-username@yourdomain.local yourdomain.local
Proof:
realm list
Also check the DNS records in AD to make sure it was properly joined
Sources not from class materials:
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7 https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-7