Linux Assessment (Preparation) - AidanP017/Aidan-SYS-255 GitHub Wiki
Objectives
- Install a constant management software of your choice on blog01 (https://www.dokuwiki.org/install:ubuntu).
-
- Update and upgrade Ubuntu using the following command:
-
-
- sudo apt-get update && sudo apt-get upgrade
-
-
- Install Apache2 and PHP using the following command:
-
-
- sudo apt-get install apache2 libapache2-mod-php php-xml
-
-
- Restart Apache2 using the following command:
-
-
- systemctl restart apache2
-
-
- Enable the Apache Rewrite module using the following command:
-
-
- sudo a2enmod rewrite
-
-
- Navigate to the /var/www directory using the following command:
-
-
- cd /var/www
-
-
- Download the latest stable release of Dokuwiki using the following command:
-
- Uncompress the package using the following command:
-
-
- sudo tar xvf dokuwiki-stable.tgz
-
-
- Move the package to this location using the following command:
-
-
- sudo mv dokuwiki-*/ dokuwiki
-
-
- Change the permissions of this directory using the following command:
-
-
- sudo chown -R www-data:www-data /var/www/dokuwiki
-
-
- Change the document root in Apache to point to /var/www/dokuwiki using one of the following commands:
-
-
- sudo vim /etc/apache2/sites-enabled/000*.conf
-
-
-
- sudo nano /etc/apache2/sites-enabled/000*.conf
-
-
-
-
- Replace "DocumentRoot /var/www/html" with "DocumentRoot /var/www/dokuwiki"
-
-
-
- Change the AllowOverrides setting in Apache2 to use .htaccess files for security using one of the following commands:
-
-
- sudo vim /etc/apache2/apache2.conf
-
-
-
- sudo nano /etc/apache2/apache2.conf
-
-
-
-
- Under the directory /var/www/, replace "AllowOverride None" with "AllowOverride All"
-
-
-
- Restart the Apache2 service using the following command:
-
-
- sudo service apache2 restart
-
-
- Open up a browser and visit http://IP-address-of-your-server/install.php to initially configure your Dokuwiki server and install the HTTP server.
-
-
- Establish a server name, superuser name, password, and the type of wiki that it will be recognized as.
-
-
- Delete the install.php file after finishing configuring Dokuwiki using the following command:
-
-
- sudo rm /var/www/dokuwiki/install.php
-
Additional Objectives
- Configure hosts, IP addresses, and other network information accordingly with an IP under .11.
- Join blog01 to the AD domain.
- Perform a blog with the AD account.