Configuring Apache Web Server
Configuring Apache Web Server
1.
2.
3.
4.
5.
6.
7.
8.
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>