Web Technology Management Lecture IV

509 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
509
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Web Technology Management Lecture IV

  1. 1. The Principles of Web TechnologyManagement<br />http://purl.org/net/wtm<br />sopek@makolab.com<br />Principia Webica<br />
  2. 2. Managing your virtual serverwith web applications<br />Practical Web Service Management<br />
  3. 3. Virtual Server – the idea<br />Uses resources of the HOST Operating System to run multiple GUEST Operating Systems.<br />Allows for multipleGuestoperating systems to co-exist on a single Host Operating Systems<br />Makestheinstallationeasier<br />Allows for harmless and enhancedtesting<br />Helpstheeconomy of hosting business<br />Allows for fast & easy„cloud” creation<br />
  4. 4. Virtual Server – VirtualBox<br />VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use. <br />Supported & provided by Oracle<br />Portable<br />…<br />
  5. 5. Virtual Server – VirtualBoxinstallation<br />DownloadtheVirtalBoxfrom: http://www.virtualbox.org/wiki/Downloads<br />Installit.<br />Usepre-prepared OS delivered by yourprofessor (it comes as debian-student.vdi file)<br />Configureit – setup networking(settings | Networks | Bridged Adapter)<br />Install Apache, PHP, MySQL<br />Configure services<br />
  6. 6. Virtual Server – Networking<br />Settings  Network  Briged Adapter<br />Login to the system:<br /> User: root, Pass: prostehaslo<br />Edit /etc/network/interfaces (mcedit interfaces):<br />auto eth0<br />iface eth0 inet static<br /> address 192.168.1.7<br />netmask 255.255.255.0<br /> network 192.168.1.0<br /> broadcast 192.168.1.255<br /> gateway 192.168.1.1<br />
  7. 7. Virtual Server – Networking<br />Edit /etc/resolv.conf:<br />domain clarkuniversity.eu<br />search clarkuniversity.eu<br />Nameserver 193.239.136.62<br />Edit /etc/udev/rules.d/70-persistent-net.rules (remove last lines (4 ?))<br />Reboot or: service networking restart<br />
  8. 8. Virtual Server – Installation<br />Get all required updates:<br /> apt-get update<br />Apache:<br /> apt-get install apache2<br />PHP<br /> apt-get install libapache2-mod-php5<br />PHP extra modules<br /> apt-cache search php5- | less<br /> apt-get install php5-[modul]<br />
  9. 9. Virtual Server – Installation<br />Install mysql:<br /> apt-get install mysql-server<br /> Set password for MySQL (e.g. mojabaza)<br /> # mysql -u root –p <br /> Install phpmyadmin (MySQL web manager)<br /> apt-get install phpmyadmin<br />set password for MyPHP (e.g. myphp)<br /> first login  mysql login<br />Write your first webpages (in /var/www)<br />

×