This document provides instructions for managing a virtual server using VirtualBox virtualization software. It discusses setting up VirtualBox on a host operating system, installing a Debian guest operating system, configuring networking and services like Apache, PHP, and MySQL. Specific steps include downloading VirtualBox, configuring networking using a bridged adapter, installing updates, and configuring Apache, PHP, and MySQL. The document also provides commands for initial VirtualBox and guest OS configuration, and writing initial web pages.
3. Virtual Server – the idea Uses resources of the HOST Operating System to run multiple GUEST Operating Systems. Allows for multipleGuestoperating systems to co-exist on a single Host Operating Systems Makestheinstallationeasier Allows for harmless and enhancedtesting Helpstheeconomy of hosting business Allows for fast & easy„cloud” creation
4. Virtual Server – VirtualBox VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use. Supported & provided by Oracle Portable …
5. Virtual Server – VirtualBoxinstallation DownloadtheVirtalBoxfrom: http://www.virtualbox.org/wiki/Downloads Installit. Usepre-prepared OS delivered by yourprofessor (it comes as debian-student.vdi file) Configureit – setup networking(settings | Networks | Bridged Adapter) Install Apache, PHP, MySQL Configure services
6. Virtual Server – Networking Settings Network Briged Adapter Login to the system: User: root, Pass: prostehaslo Edit /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
7. Virtual Server – Networking Edit /etc/resolv.conf: domain clarkuniversity.eu search clarkuniversity.eu Nameserver 193.239.136.62 Edit /etc/udev/rules.d/70-persistent-net.rules (remove last lines (4 ?)) Reboot or: service networking restart
8. Virtual Server – Installation Get all required updates: apt-get update Apache: apt-get install apache2 PHP apt-get install libapache2-mod-php5 PHP extra modules apt-cache search php5- | less apt-get install php5-[modul]
9. Virtual Server – Installation Install mysql: apt-get install mysql-server Set password for MySQL (e.g. mojabaza) # mysql -u root –p Install phpmyadmin (MySQL web manager) apt-get install phpmyadmin set password for MyPHP (e.g. myphp) first login mysql login Write your first webpages (in /var/www)