Skip to content

BloggingAssessment

echadbourne edited this page Nov 7, 2023 · 15 revisions

First Steps

Always set up the basic stuff first:

  1. New local user
  2. Update the ip address and hostname - nmtui
  3. Install software of choice - wordpress

IP address and hostname

nmtui

  • IP to 10.0.5.10
  • hostname to web02-elizabeth

systemctl restart network

Disable SSH

nano /etc/ssh/sshd_config

Change "Permit root login" from yes to no

systemctl reload sshd

Overall Sources

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

Wordpress Installation Prep

I'm doing this in a slightly different way than the tutorial, but it should have the same result

Apache

yum install -y httpd - Install httpd services

Configure the firewall

  • firewall-cmd --permanent --add-port=80/tcp
  • firewall-cmd --permanent --add-port=443/tcp
  • firewall-cmd --reload

Enable everything

  • systemctl enable --now httpd

PHP 7

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

MySQL

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

Wordpress (Finally)

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

Clone this wiki locally