Upload
sopekmir
View
325
Download
1
Embed Size (px)
DESCRIPTION
Citation preview
The Principles of Web TechnologyManagement
http://purl.org/net/wtm
Principia Webica
Managing your virtual serverwith web applications
Practical Web Service Management
Virtual Server – the idea
Uses resources of the HOST Operating System to run multiple GUEST Operating Systems.
Allows for multiple Guest operating systems to co-exist on a single Host Operating Systems
Makes the installation easierAllows for harmless and enhanced
testingHelps the economy of hosting
businessAllows for fast & easy „cloud”
creation
Virtual Server – Virtual Box
VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use.
Supported & provided by OraclePortable…
Virtual Server – Virtual Box installation
Download the Virtal Box from: http://www.virtualbox.org/wiki/Downloads
Install it.Use pre-prepared OS delivered by
your professor (it comes as debian-student.vdi file)
Configure it – setup networking(settings | Networks | Bridged Adapter)
Install Apache, PHP, MySQLConfigure services
Virtual Server – Networking
Settings Network Briged AdapterLogin to the system:
User: root, Pass: prostehasloEdit /etc/network/interfaces (mcedit
interfaces):auto eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Virtual Server – Networking
Edit /etc/resolv.conf:domain clarkuniversity.eusearch clarkuniversity.euNameserver 193.239.136.62
Edit /etc/udev/rules.d/70-persistent-net.rules (remove last lines (4 ?))
Reboot or: service networking restart
Virtual Server – Installation
Get all required updates:apt-get update
Apache:apt-get install apache2
PHPapt-get install libapache2-mod-
php5PHP extra modules
apt-cache search php5- | lessapt-get install php5-[modul]
Virtual Server – Installation
Install mysql:apt-get install mysql-serverSet password for MySQL (e.g. mojabaza)
# mysql -u root –p
Install phpmyadmin (MySQL web manager)
apt-get install phpmyadminset password for MyPHP (e.g. myphp)
first login mysql login
Write your first webpages (in /var/www)