-
Notifications
You must be signed in to change notification settings - Fork 0
BloggingAssessment
Always set up the basic stuff first:
- New local user
- Update the ip address and hostname - nmtui
- Install software of choice - wordpress
nmtui
- IP to 10.0.5.10
- hostname to web02-elizabeth
systemctl restart network
nano /etc/ssh/sshd_config
Change "Permit root login" from yes to no
systemctl reload sshd
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
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-release
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php73
yum 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-server
systemctl enable --now mariadb
I just want to restart httpd one more time before we install Wordpress:
systemctl restart httpd
yum install -y wget unzip nano - needed to get everything we need
wget https://wordpress.org/latest.zip
unzip latest.zip
Remove the current /var/www/html to make it easier to put wordpress there
rm -r /var/www/html
mv wordpress /var/www/html