Linux Assessment Research and Rehearsal - Hsanokklis/2023-2024-Tech-journal GitHub Wiki
-
web02
will be DESTROYED and replaced withblog02
- You will need to configure a new server and install
blogging
orcontent management
software on it.
What is blogging software?
- Blogging software is designed for creating and managing blogs
- Its primary purpose is to facilitate the creation of indiviudal blog posts
- Blogging software is ideal for individuals, hobby bloggers, or small organizations who want to focus on regular, time-sensitive content updates.
What is Content management software?
- CMS - used to organize and facilitate collaborative content creation (think of making a website on wordpress)
- Offer a broad range of capabilities for managing content across various types of websites
- CMS is used to build entire websites, online stores, or any content-heavy digital platform, including blogs. Its purpose is to manage a wide range of content beyond just blog posts, such as pages, images, videos, documents, and more.
Rehearsal tasks:
- Practice/document installing blogging/content management software on
web02
Keep in mind that that
web02
will not be accessible so you will need to setup the host (onad02
) with an IP under.11
- After joining AD domain, install HTTP server and blog software(with AD account)
- demonstrate your working blog
- Sign into the box with username
root
and pwCh@mpl@1n!22
adduser hannelore
passwd hannelore
usermod -aG wheel hannelore
This should be done on the NEW web server that is set up (evil evil evil)
nmtui
-
10.0.5.20/24
---> make sure you have CIDR - hostname
blog01-hannelore
- Gateway:
10.0.5.2
- DNS:
10.0.5.6
You might have to do a system reboot
IP configuration should be automatic
Within the server manager in
ad02
- hannelore.local
- new host
blog01-hannelore
- IP address:
10.0.5.10
- Create a PTR record with it
- use
sudo yum install httpd
firewall-cmd --zone=public --add-port=80/tcp --permanent
-
firewall-cmd --zone=public --add-port=443/tcp --permanent
- add ports 80/tcp or http and https defined services to the firewall permanently
firewall-cmd --reload
systemctl enable --now httpd
Required for Wordpress and this specific version as well
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
yum install -y mariadb-server
systemctl enable --now mariadb
yum install -y wget unzip nano
wget https://wordpress.org/latest.zip
unzip latest.zip
rm -r /var/www/html
mv wordpress /var/www/html
mysql -u root
within the SQL prompt:
- CREATE DATABASE ;
- GRANT ALL ON .* to 'username'@localhost identified by 'apassword';
- FLUSH PRIVILEGES;
- exit;
=setenforce 0
chown -R apache:apache /var/www/html
cp /var/www/wp-config-sample.php /var/www/wp-config.php
nano /var/www/html/wp-config.php
fill in SQL details (db name, user name, password)
systemctl restart httpd
sudo yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd
realm join [email protected] hannelore.local
realm list
Resources:
Apache lab ---> https://github.com/Hsanokklis/2023-2024-Tech-journal/wiki/Apache-Lab
cd /var/www/html && rm wp-config.php && cp wp-config-sample.php wp-config.php ????