Other : It – Information Systems homework help
The project team is ready to create the directory structure for the
Web site. You are tasked with creating the directories and
implementing the security mechanism. For this assignment, you need
to create the following directory structure and permissions:
Ensure that you are starting in your individual Home directory:
| – html/
| – cgi-bin/
| – ftp/
The following file permission should be enabled for the
In addition, create the following empty files and set the following
apache/bin/httpd – 755
www/html/index.html – 644
www/cgi-bin/process.pl – 711
Finally, create a file called apache/conf/httpd.conf, and add the
following lines to the file:
# This is the main Apache HTTP server configuration file. It
# configuration directives that give the server its
# Do not add a slash at the end of the directory path.
# DocumentRoot: The directory out of which you will serve
Save the file and exit the editor. Set the file permission for this
file to be: 664.
Show the command used to show content of the file and the content
of the file.
Using the grep command, write comment to find the line containing
the word(s) ServerRoot and DocumentRoot in the httpd.conf file.
Write a sed command that will change the ServerRoot value from /usr
to the absolute directory patch for your apache directory.
Write a sed command that will change the Document value from
/Library/WebServer/Documents to the absolute directory patch for
your www directory.
Write an awk command that will print only the comment field and the
login id of all users in the /etc/passwd file in this format:
Your submission should include the following, as well as a
description about each step (what you did and why you are
performing each command):