Extra – Web Hosting/Server Intro Informatics Department Parahyangan Catholic University
Contoh-contoh pada slide ini dibuat berdasarkan pengalaman dan account pribadi, sama sekali tidak bertujuan untuk mempromosikan perusahaan-perusahaan yang dijadikan contoh dibuat oleh: Joanna Helga
To make our website accessible to public, we need to upload it to a public server There are 3 common options: web hosting service virtual private server dedicated server
Web Hosting Service free (usually very limited and supported by ads) paid Virtual Private Server & Dedicated Server managed unmanaged
Other Options Colocation Server Cloud Server Clustered & Grid Hosting Home Server etc.
The scope of web hosting services varies greatly. The most basic is web page and small-scale file hosting, where files can be uploaded via File Transfer Protocol (FTP) or a web interface.
We can store several websites in a single hosting account separate folder separate FTP account separate MySQL database etc. This allows web hosting reselling
Example from Proaxxss
Example from Godaddy (incomplete)
Uploading our website to the web hosting is usually done via web interface or FTP. FTP FTP Client usually works like file explorer. We can easily uploads several files at once by drag-and- drop More stable for uploading large files
Web Interface can be accessed with browser, no need to install FTP application sometimes web hosting provides feature for uploading a zip archive and automatically unzips it when the upload completes.
Example : Godaddy’s Control Panel
user only able to store 100Mb of files and can only access /alice/ user only able to store 100Mb of files and can only access /alice/
Example : Godaddy’s Control Panel
Managing domain & DNS Installing web app Creating New Database Accessing phpMyAdmin
It is possible to control multiple domain names in a single web hosting account (if the hosting plan permits) primary domain is directed to the document root directory (public_html, var/www, htdoc) add-on domains is directed to a subfolder inside the document root
In the Previous Example: primary domain is holicfarm.net
public_html public_html/mi2.me/ holicfarm.net mi2.me mi2me.holicfarm.netholicfarm.net/mi2.me/
public_html/alice/ alice.holicfarm.net holicfarm.net/alice
Suppose we want a sub-domain to redirect to another website
VPS is a virtual machine A single computer can have several VPSs, each one with its own OS and server software Customer has a superuser-level access can configure the server can install any software that runs on that OS responsible for its security
To the user, a VPS appears like a dedicated server, however, since the hardware is actually shared among other VPSs, performance may be lower and depend on the workload of other instances
Example: Godaddy’s Linux VPS Plan
Example: Godaddy’s Windows VPS Plan
Example: OVH’s VPS Plan (Linux Only)
Example: Godaddy’s Linux DS Plan
Example: Proaxxs’ Linux DS Plan
Example: OVH’s DS Plan
VPS/DS provider usually provides control panel for basic management: restarting the machine reinstalling the OS upgrading etc. Example: OVH’s control panel
There are several ways for managing a VPS/DS remote desktop (windows) telnet / ssh control panel (cpanel, webmin, etc.)
Example: Bitvise SSH Client
Control Panel is a convenient tools for managing a VPS if the VPS comes without it, we need to install it first. cPanel is a popular paid control panel, while webmin is a popular free control panel not all configurations can be done through control panel
To hook a domain name to a server is slightly more complicated than to a web hosting: 1. First we need to tell the DNS that our domain is directed to what IP address Example: mi2.me Second we need to “handle” the incoming request from that domain name to our server by creating a virtual host Example: request from pbw39.mi2.me var/www/PBW/39/
Virtual Host’s configuration is stored in /etc/apache2/sites-available Example: Debian8 OS
The file can be opened using a text editor (usually vi or nano is preinstalled) command: nano PBW39.mi2.me.conf Example: Debian8 OS
Domain Names can be bought through a domain name registrar (eg. Godaddy) To keep the domain name, we need to pay its yearly fee
Owned domain names are listed in the account control panel
MX record that points to Google App (was free, but now no longer free)