9
The Principles of Web Technology Management http://purl.org/net/wtm [email protected] Principia Webica

Web Technology Management Lecture IV

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Web Technology Management Lecture IV

The Principles of Web TechnologyManagement

http://purl.org/net/wtm

[email protected]

Principia Webica

Page 2: Web Technology Management Lecture IV

Managing your virtual serverwith web applications

Practical Web Service Management

Page 3: Web Technology Management Lecture IV

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

Page 4: Web Technology Management Lecture IV

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…

Page 5: Web Technology Management Lecture IV

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

Page 6: Web Technology Management Lecture IV

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

Page 7: Web Technology Management Lecture IV

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

Page 8: Web Technology Management Lecture IV

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]

Page 9: Web Technology Management Lecture IV

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)