This repository contains infrastructure and configuration file examples which match the Apache Fundamentals course.
- 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"):
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"):
home/vagrant- Contains files which should be placed in
/home/vagrant
- Contains files which should be placed in
var/www- Contains files which should be placed in
/var/www - This assumes that you have set the web server's
DocumentRootto/var/www - If that is not the case, substitute
/var/wwwwith whatever you have set to be theDocumentRootin/usr/local/apache2/conf/httpd.confin the VM
- Contains files which should be placed in
/usr/local/apache2/conf/extra- Contains solutions to labs + examples of configuration scripts
├── 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