Compare commits

...

3 Commits

Author SHA1 Message Date
Andreas Zweili 9d24430d2e remove the second box from the vagrantfile
The second box isn't needed for this project. I therefore removed it. I
just add it for testing.
2017-10-08 19:25:25 +02:00
Andreas Zweili 2e7077e92e add a Vagrantfile to setup the project 2017-10-08 14:09:17 +02:00
Andreas Zweili 9ef11e69c7 remove the last unnecessary bit 2017-03-22 20:47:15 +01:00
2 changed files with 25 additions and 38 deletions

25
Vagrantfile vendored Normal file
View File

@ -0,0 +1,25 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_IMAGE = "debian/stretch64"
Vagrant.configure("2") do |config|
config.vm.box = BOX_IMAGE
config.vm.hostname = "webtech"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", type: "dhcp"
config.vm.provision "shell", inline: <<-SHELL
DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y apache2 php7.0 php7.0-mysql php7.0-xml mariadb-server avahi-daemon libnss-mdns
phpenmod mysqli
mysql < /vagrant/sql/remove_db.sql
mysql < /vagrant/sql/create_db.sql
mysql < /vagrant/sql/add_data.sql
if ! [ -L /var/www/html ]; then
rm -rf /var/www/html
ln -s /vagrant /var/www/html
fi
SHELL
end

View File

@ -1,38 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<!-- enable utf-8 encoding for umlauts etc.-->
<meta charset="utf-8">
<!-- Description of what this dose -->
<meta name ="viewport" content="width=device-width, initial-scale=1">
<!-- link to the default css file -->
<link rel="stylesheet" href="css/stylesheet.css"/>
</head>
<body>
<div>
<div>
<header>
<!-- The title begins here -->
<h1>Admin</h1>
<!-- The title begins here -->
<!-- The sidebar naviagtion begins here -->
<nav>
<?php
include 'navigation.php';
?>
<!--Login-->
<form action="signup.php" method="post">
<input type="text" name="uid" placeholder="Username"><br>
<input type="password" name="pwd" placeholder="Password"><br>
<button type="submit">Login</button>
</form>
<!--Login end-->
</nav>
<!-- The sidebar naviagtion ends here -->
</header>
</div>
</div>
</body>
</html>