Skip to content

dbierer/apache-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apache-training.

This repository contains infrastructure and configuration file examples which match the Apache Fundamentals course.

Clone this repository:

  • As the normal user "vagrant", open a terminal window
  • Change to the home directory /home/vagrant:
cd /home/vagrant
  • Clone the repository:
git clone https://github.com/dbierer/apache-training
  • You will see a new directory: /home/vagrant/apache-training
  • Change to super user. Password is "vagrant"
su
  • Change to the directory for the newly cloned repository:
cd /home/vagrant/apache-training
  • Copy the files to the right places using the new shell script:
chmod +x ./copy.sh
./copy.sh
* NOTE: this script also sets permissions for the apache user (which defaults to "daemon"):

Refresh the files in the repository

After each class session the files in this repository will be updated. To perform a refresh, proceed as follows:

  • Open a terminal window
  • Change to super user. Password is "vagrant"
su
  • Change to the directory for the repository:
cd /home/vagrant/apache-training
  • Refresh the files
git pull
  • Copy the files to the right places using the shell script:
./copy.sh
* NOTE: this script also sets permissions for the apache user (which defaults to "daemon"):

Directory Structure

  • home/vagrant
    • Contains files which should be placed in /home/vagrant
  • var/www
    • Contains files which should be placed in /var/www
    • This assumes that you have set the web server's DocumentRoot to /var/www
    • If that is not the case, substitute /var/www with whatever you have set to be the DocumentRoot in /usr/local/apache2/conf/httpd.conf in the VM
  • /usr/local/apache2/conf/extra
    • Contains solutions to labs + examples of configuration scripts

Directory Tree

├── README.md
├── copy.sh
├── home
│   └── vagrant
│       ├── alias_test
│       │   ├── images
│       │   │   ├── cat.png
│       │   │   └── dog.png
│       │   └── index.html
│       ├── basetest
│       │   ├── images
│       │   │   ├── cat.png
│       │   │   ├── dog.png
│       │   │   ├── original
│       │   │   │   ├── animals
│       │   │   │   │   ├── cat.png
│       │   │   │   │   └── dog.png
│       │   │   │   ├── people
│       │   │   │   │   ├── man.png
│       │   │   │   │   └── woman.png
│       │   │   │   └── vehicles
│       │   │   │       ├── car.png
│       │   │   │       └── truck.png
│       │   │   ├── width_100
│       │   │   │   ├── animals
│       │   │   │   │   ├── cat.png
│       │   │   │   │   └── dog.png
│       │   │   │   ├── people
│       │   │   │   │   ├── man.png
│       │   │   │   │   └── woman.png
│       │   │   │   └── vehicles
│       │   │   │       ├── car.png
│       │   │   │       └── truck.png
│       │   │   ├── width_200
│       │   │   │   ├── animals
│       │   │   │   │   ├── cat.png
│       │   │   │   │   └── dog.png
│       │   │   │   ├── people
│       │   │   │   │   ├── man.png
│       │   │   │   │   └── woman.png
│       │   │   │   └── vehicles
│       │   │   │       ├── car.png
│       │   │   │       └── truck.png
│       │   │   └── width_300
│       │   │       ├── animals
│       │   │       │   ├── cat.png
│       │   │       │   └── dog.png
│       │   │       ├── people
│       │   │       │   ├── man.png
│       │   │       │   └── woman.png
│       │   │       └── vehicles
│       │   │           ├── car.png
│       │   │           └── truck.png
│       │   └── index.html
│       ├── cgi
│       │   ├── error
│       │   │   ├── 0.pl
│       │   │   ├── emerg.pl
│       │   │   └── numbers
│       │   │       └── 0.pl
│       │   ├── hello.pl
│       │   ├── one
│       │   │   └── hello.pl
│       │   └── two
│       │       └── hello.pl
│       ├── downloads
│       │   ├── gettysburg_address.pdf
│       │   ├── romeo_and_juliet.pdf
│       │   ├── tarzan.epub
│       │   └── tarzan.pdf
│       ├── errors
│       │   ├── 0.html
│       │   ├── 1.html
│       │   ├── 2.html
│       │   ├── 3.html
│       │   ├── 4.html
│       │   ├── 5.html
│       │   ├── 6.html
│       │   ├── 7.html
│       │   └── index.html
│       ├── graphics
│       │   ├── animals
│       │   │   ├── cat.png
│       │   │   └── dog.png
│       │   ├── index.html
│       │   ├── people
│       │   │   ├── man.png
│       │   │   └── woman.png
│       │   └── vehicles
│       │       ├── car.png
│       │       └── truck.png
│       ├── index.html
│       ├── maptest
│       │   ├── 0.html
│       │   ├── 1.html
│       │   ├── 2.html
│       │   ├── 3.html
│       │   ├── 4.html
│       │   ├── 5.html
│       │   ├── 6.html
│       │   ├── 7.html
│       │   ├── index.html
│       │   └── log_levels.txt
│       ├── secure
│       │   └── index.html
│       ├── slash
│       │   ├── images
│       │   │   ├── cat.png
│       │   │   └── dog.png
│       │   └── index.html
│       └── test.php
├── usr
│   └── local
│       └── apache2
│           └── conf
│               └── extra
│                   ├── httpd-alias.conf
│                   ├── httpd-cgi.conf
│                   ├── httpd-headers.conf
│                   ├── httpd-logs.conf
│                   ├── httpd-rewrite.conf
│                   ├── httpd-security.conf
│                   ├── httpd-ssl.conf
│                   ├── httpd-vhosts.conf
│                   └── test.conf
└── var
    └── www
        ├── downloads
        │   ├── index.html
        │   ├── pdf
        │   │   ├── gettysburg_address.pdf
        │   │   ├── romeo_and_juliet.pdf
        │   │   └── tarzan.pdf
        │   └── tarzan.epub
        ├── header
        │   └── index.html
        ├── homepage.mobile.html
        ├── homepage.std.html
        ├── illegal
        │   └── index.html
        ├── images
        │   ├── cat.png
        │   └── dog.png
        ├── index.html
        ├── index.php
        ├── json
        │   ├── index.html
        │   └── test.json
        ├── new_stuff
        │   └── index.html
        ├── old_stuff
        │   └── index.html
        ├── safe
        │   └── index.html
        ├── super_secret
        │   └── index.html
        ├── temporary
        │   └── index.html
        ├── test.php
        └── work_in_progress

56 directories, 104 files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors