Open webtek.ova
Log in user: webtek pass: webtek
Set Network to Bridge Adapter from Host only under Settings
update ova with sudo apt-get update
install apache with sudo apt-get install apache2
upgrade with sudo apt-get upgrade
check inet addr with ifconfig (eth0)
type sudo nano /etc/apache2/sites-available/default
(check configuration)
9. open a browser and type the Inet Address (eth0) to see if It works! appear
/*Mounting flash drives
1. USB > find your device and check it
2. ls /dev | grep sd
// check if there is sdb or sdb1 - means device is mounted
3. sudo mkdir /mnt/Nameofdirectory
// place the files in the Fd to a temporary directory as resource to cop
y
4. sudo mount /dev/sdb1 /mnt/Nameofdirectory
5. ls /mnt/Nameofdirectory // check if the files are copied
/*Now that you copied the files you want from your flash drive
you can transfer the copied files to a specific directory for
organizing purposes
6. sudo mkdir /var/www/idnumber //create your directory where sites will be plac
ed
7. sudo cp -r /mnt/Nameofdirectory /var/www/idnumber
explanation. //-r = include subfolders
//the first path is the file(directory) you want to copy
and the second path is where you want to copy the files
Unmount USB
/* to configure
1. sudo nano /etc/apache2/sites-available/default
2. type this
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName <yourservername.com>
ServerAlias <www.Yourservername.com>
DocumentRoot /var/www/<yourdirectory>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/<yourdirectory>>
Options Indexes FollowSymlinks MultiViews
AllowOverride All #Note: All to enable .htaccess and None to dis
able
Order, allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExcecCgi -MultiViews +SymlinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
#For the logs
ErrorLog ${APACHE_LOG_DIR}/error,log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
3. Go to your inet address e.g 192.168.x.x where x's are number assigned to your
terminal
/* .htaccess and .htpasswd
1. create .htaccess and .htpasswd file before the directory of your sites
e.g /var/www/Group20/idnumber //where your sites lives inside idnumber
create .htaccess and .htpasswd inside Group20 directory
sudo nano .htaccess
sudo nano .htpasswd
2. inside .htaccess type this
AuthUserFile /var/www/Group20/.htpasswd
AuthGroupFile /dev/null
AuthName "Please Log In"
AuthType Basic
require user 2112345
//note that you are defining that you can only use 2112345 as a username in pass
word
3. inside .htpasswdtype this
2112345:(generated password)