Changes

Jump to: navigation, search

OPS235 Assignment 2

295 bytes added, 13:29, 2 April 2019
Introduction and Purpose
== Introduction and Purpose ==
In this assignment, you will demonstrate the skills you have learned to this point by configuring two services: a '''database server''' and a '''web server'''. You will install and use a database-backed web application, '''Wordpress''', to show that these services have been installed properly. You will also configure the '''SELinux''' security system as well as the '''iptables firewall''' to further enhance the security of your computer system.
'''NOTE: Do this assignment inside the centos3 virtual machine. '''
 
'''NOTE2:''' You must set your iptables INPUT chain's default policy to DROP.
== Installing Packages==
# Download the latest .tar.gz version from wodpress.org into your centos3 (use wget).
# Extract it into '''/var/www/html'''
# Now we need to allow Apache to modify the wordpress installation. To do this use <b>chown </b> and <b>chgrp</b> with <b>-R </b> option to make the owner and group of every file and directory inside wordpress "apache".
# Check your work so far by pointing your web browser to http://centos3/wordpress/ where you will get an error starting with "There doesn't seem to be a wp-config.php file"
# Copy the wp-config-sample.php file to wp-config.php and edit the new file:
#* Change the DB_NAME, DB_USER, DB_PASSWORD to the appropriate values.
# Now go back to http://centos3/wordpress/ - you should see a Wordpress Welcome/Setup page.
#* Set the title to Your Name's Blog. For example for me it would be "Andrew SmithOPS235 Professor's Blog"
#* Set the password to your learn ID.
#* Set the email to your Seneca email address.
Open one or more terminals in c7host, SSH to centos3 from those terminals, and have the following ready:
* The correct RPMs are installed
* Status of the '''mysql ''' service* Status of the '''httpd ''' service* MySQL output of: '''show databases; use mysql; select User,Password from user; use myblog; show tables;'''* Output of : '''ls -la /var/www/html/wordpress/'''* Output of : '''head -30 /var/www/html/wordpress/wp-config.php'''* Output of: '''iptables -L -vn --line-numbers'''* Open a Firefox window with to: http://centos3/wordpress/
=== Rubric ===
|-
| Wordpress showing in Firefox || 1 ||
|-
| iptables rules configured correctly || 2 ||
|-
| Everything ready to show || 2 ||
| Second blog post || 3 ||
|-
| '''Total''' || 18 20 ||
|}
[[Category:OPS235]]

Navigation menu