Linux, Apache, MySQL, PHP/Python/PERL ● a.k.a. LAMP ● Standard set of tools for configuring a Linux-based web server with database & interfacing capabilities ● Installation:
LAMP: Apache2 ● This is the actual web server software. ● Client computers request web pages via accessing URL of your server (can be aliased with Fully Qualified Domain Name or FQDN over www) ● FQDN gets /var/www/index.html – Example: ● FQDN/path gets specific files (or directory listing) – gets /var/www/about_me/cv.pdf ● All serviced via Apache2
Apache2 sudo apt-get install apache2 ls /etc/apache2 apache2.conf magic sites-available conf.d mods-available sites-enabled envvars mods-enabled httpd.conf ports.conf
Apache2 sudo apt-get install apache2 ls /etc/apache2 apache2.conf magic sites-available conf.d mods-available sites-enabled envvars mods-enabled httpd.conf ports.conf Main (Global) Apache2 Configuration File
Apache2 sudo apt-get install apache2 ls /etc/apache2 apache2.conf magic sites-available conf.d mods-available sites-enabled envvars mods-enabled httpd.conf ports.conf Contains virtual host-specific configuration files Virtual host: Apache2 enables multiple site configurations to exist on one server
Apache2 Creating new (virtual) host by copying & editing default configuration file
Identifies 'IPaddr:port' that server is listening on Where Apache2 sends error logs & also the advertised site administrator address Where Apache2 goes to display index.html when a request comes in.
cd /var/www ls index.html sudo gedit index.html sudo mv index.html /home/jarrod/dalton_rqi/ sudo ln -s /home/jarrod/dalton_rqi/index.html./index.html ls -l lrwxrwxrwx 1 root root :31 index.html -> /home/jarrod/dalton_rqi/index.html sudo a2ensite dalton_rqi Enabling site dalton_rqi. Run '/etc/init.d/apache2 reload' to activate new configuration! sudo /etc/init.d/apache2 restart * Restarting web server apache2... waiting. [ OK ]
rapache
Package 'brew' – An R Markup Language
HTTP GET Before After
rqi_mortality.html...
site...