SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
Installation of 
LAMP Server 
with Ubuntu 14.10 Server Edition 
Sammy Fung 
sammy@sammy.hk
Sammy Fung 
● Python Developer 
● President at Open Source Hong Kong 
● Volunteers at Open Source Communities
Linux Certifications 
● Linux Professional Institute 
– Level 1: Perform Maintenance tasks. 
– Level 2: Administrate Small-medium mixed network. 
– Level 3: New enterprise-level. 
● Linux Foundation (New) 
– LFCS: System Admins 
– LFCE: Engineers
Linux 
Web Server
LAMP
LAMP Stack 
● L = Linux 
● A = Apache (Web Server) 
● M = MySQL (Database Server) 
● P = PHP (Programming Language)
LAMP Stack Alternatives 
● L = Linux 
● A = Apache 
● M = MySQL / MariaDB 
● P = PHP / Python / Perl
Other Alternatives 
● Web Server 
– Nginx replacing Apache 
● Database 
– PostgreSQL replacing MySQL / MariaDB 
● Programming Languages 
– Ruby, Node.JS
Step-by-Step Install Demosration 
● Linux: Ubuntu 14.10 Server Edition 
– Base system with SSH server. 
● MySQL database system 
● Apache web server + PHP 
– Apache PHP module. 
– PHP libraries 
– Drupal: PHP Content Management System.
Linux 
● Linux = Linux Kernel 
● Linux distributions (distros) 
– Linux Kernel + System Tools + Application Progams 
– Red Hat and RPM-based 
● Red Hat Enterprise Linux 
● Fedora, CentOS 
● SuSE, OpenSuSE 
– Debian and DEB-based 
● Debian 
● Ubuntu
Ubuntu 14.10 Server Edition 
● Single CD-size image to target Linux installation for server 
purposes. 
● Non-LTS version: 9-month support cycle. 
– Upgrade to next version after support cycle (July 2015). 
– Next version 15.04 Vivid Vervet (non-LTS) will be released in April 
2015. 
– LTS versioon 14.04 (Trusty Tahr) supports till April 2019. 
● Linux Kernel 3.16 
● OpenStack 2014.2 (Juno) release in main repo. 
● Docker 1.2
Installation Targets 
● Physical machines 
● Virtual machines 
– KVM, Virtualbox, VMware 
– Linode 
– Amazon Web Service (AWS) 
– Google Cloud Service 
– Rackspace 
– Microsoft Azure
OK! Let's start 
to install. 
Ubuntu 14.10 Server Edition as base system
Linux Operating System 
● UNIX-style Operation System 
● Command Line Interface (CLI) 
● Disk Storages and Filesystems 
● Process and memory management 
● Networking 
● OS managament
UNIX-Style Operating System 
● Users and Groups 
– Super User (Admin): root 
● su, sudo, id 
– useradd, usermod, userdel. 
– groupadd, groupmod, groupdel. 
– /etc/passwd, /etc/shadow 
● Everything is file. 
– Filesystem Structure 
● /dev, /etc, /home, /var
Command Line Interfaces 
● Shell: BASH 
● BASH Script: .bashrc 
● Redirection: >, >>, <, |, `cmd` 
● uname 
● SSH 
– Secure Remote Shell over SSL Secret 
Communication
Disk Storage and Filesystems 
● Partitioning: fdisk 
● Filesystem: ext4 
– mkfs, mount, fsck, mkswap 
● File Operation 
– ls, pwd, cd, mkdir, rmdir, rm, chmod, chown, find, 
du, df 
– Tar, rsync
Process and Memory Management 
● Runlevels 0-6 
– /etc/init.d/ 
● Process Management 
– ps, kill 
● Memory Management 
– free
Networking 
● Networking interface 
– Ifconfig 
– /etc/network/interface 
– /etc/resolv.conf 
● Routing: route, traceroute 
● Packet Filtering (Firewall): iptables 
● Monitoring: netstat 
● Troubleshooting: ping, host, traceroute
OS Managament 
● Software Package: .deb 
– dpkg: core package management tool 
– apt-get: easier software package tool 
● apt-get install python 
– aptitude: menu-based package tool
MySQL 
● RDBMS: Relationship-based Database System 
● CLI Client: mysql -u username -p 
● Config File /etc/my.cnf 
● SQL 
– CREATE DATABASE / TABLE / USER, GRANT 
– FLUSH PRIVILEGES 
– USE databasename 
– SHOW DATABASES / TABLES 
– INSERT, UPDATE, DELETE
MySQL 
● apt-get install mysql-server 
● mysql -u root -p 
– CREATE DATABASE mydrupal; 
– CREATE USER mydrupal@localhost identified by 
'opensource.hk'; 
– GRANT ALL ON mydrupal.* to mydrupal@localhost; 
– FLUSH PRIVILEGES;
Apache 
● HTTP server 
– HTTP = web protocol 
● Installation and Configuration 
– Setting up name-based virtual web hosts 
– Configure Apache log files 
– Restrict access to a web page with Apache 
– Modules: SSL, Userdir, rewrite 
● PHP 
– MySQL, SMTP 
● Postfix SMTP server
Name-based Virtual Host 
<VirtualHost 10.0.2.15:80> 
ServerName firsttest.sammy.hk.lan 
ServerAdmin webmaster@sammy.hk 
DocumentRoot /home/sammy/www 
<Directory "/home/sammy/www"> 
AllowOverride All 
Options Indexes FollowSymLinks 
order allow,deny 
allow from all 
Require all granted 
</Directory> 
ErrorLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-error.log 
CustomLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-access.log 
combined 
</VirtualHost>
Name-based SSL Virtual Host 
<VirtualHost *:443> 
ServerName firsttest.sammy.hk.lan 
ServerAdmin webmaster@sammy.hk 
DocumentRoot /home/sammy/www 
<Directory "/home/sammy/www"> 
AllowOverride All 
Options Indexes FollowSymLinks 
order allow,deny 
allow from all 
Require all granted 
</Directory> 
ErrorLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-error.log 
CustomLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-access.log 
combined 
SSLEngine on 
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem 
SSLCertificateKeyFile /etc/ssl/certs/ssl-cert-snakeoil.key 
</VirtualHost>
Apache + PHP5 Installation 
● apt-get install apache2 
● apt-get install php5 
● apt-get install php5-mysql 
● apt-get install php5-gd 
● cd /etc/apache2/sites-available 
● vim firsttest.sammy.hk.lan.conf 
● cd /etc/apache2/sites-enabled 
● ln -s ../sites-available/firsttest.sammy.hk.lan.conf 
● /etc/init.d/apache restart
PHP / Python 
● Drupal: PHP Content Management System 
● Wordpress: PHP Blog System 
● Django: Python Web Framework
Drupal basic installation 
● Download and uncompress Drupal tarball to DocumentRoot 
– cp sites/default/default/settings.php sites/default/settings.php 
– mkdir sites/default/files 
– chmod a+w sites/default/settings.php sites/default/files 
● At web browser, 
– http://firsttest.sammy.hk.lan/ 
– Add above hostname to host files on your client machine, eg. /etc/hosts 
– Use port 8080 at VirtualBox port forwarding to port 80 
● Go thru step-by-step installation. 
● DONE!
LAMP
LAMP Stack 
● L = Linux 
● A = Apache (Web Server) 
● M = MySQL (Database Server) 
● P = PHP (Programming Language)
THANK YOU! 
Sammy Fung <sammy@sammy.hk> 
http://slidesha.re/1tsBbLA 
This slide is licensed under 
Creative Commons BY-NC-SA 3.0

Mais conteúdo relacionado

Mais procurados

Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
webhostingguy
 
Your own minecraft server on a linode vps
Your own minecraft server on a linode vpsYour own minecraft server on a linode vps
Your own minecraft server on a linode vps
Cleo Morisson
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
PASCAL Jean Marie
 

Mais procurados (20)

PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with Foreman
 
Cobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioningCobbler - Fast and reliable multi-OS provisioning
Cobbler - Fast and reliable multi-OS provisioning
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apache
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Readme
ReadmeReadme
Readme
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache Tutorial
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
 
Your own minecraft server on a linode vps
Your own minecraft server on a linode vpsYour own minecraft server on a linode vps
Your own minecraft server on a linode vps
 
Foreman in your datacenter
Foreman in your datacenterForeman in your datacenter
Foreman in your datacenter
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
 
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
 
Setting up a local WordPress development environment
Setting up a local WordPress development environmentSetting up a local WordPress development environment
Setting up a local WordPress development environment
 
are available here
are available hereare available here
are available here
 
Step by-step installation of a secure linux web dns- and mail server
Step by-step installation of a secure linux web  dns- and mail serverStep by-step installation of a secure linux web  dns- and mail server
Step by-step installation of a secure linux web dns- and mail server
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 

Destaque

Konfigurasi mikrotik-dasar-hotspot-dan-warnet
Konfigurasi mikrotik-dasar-hotspot-dan-warnetKonfigurasi mikrotik-dasar-hotspot-dan-warnet
Konfigurasi mikrotik-dasar-hotspot-dan-warnet
R Arju Damar
 
Debian Server Tutorial Komplit
Debian Server Tutorial KomplitDebian Server Tutorial Komplit
Debian Server Tutorial Komplit
Rahmad Kurniawan
 

Destaque (20)

&lt;iframe src="http://video.yandex.ru/iframe/ya-events/0ro6nfi3fv.5216/" hei...
&lt;iframe src="http://video.yandex.ru/iframe/ya-events/0ro6nfi3fv.5216/" hei...&lt;iframe src="http://video.yandex.ru/iframe/ya-events/0ro6nfi3fv.5216/" hei...
&lt;iframe src="http://video.yandex.ru/iframe/ya-events/0ro6nfi3fv.5216/" hei...
 
Introduction to Ubuntu core, Ubuntu for IoT
Introduction to Ubuntu core, Ubuntu for IoTIntroduction to Ubuntu core, Ubuntu for IoT
Introduction to Ubuntu core, Ubuntu for IoT
 
Ubuntu OS and it's Flavours
Ubuntu OS and it's FlavoursUbuntu OS and it's Flavours
Ubuntu OS and it's Flavours
 
Understanding ASP.NET MVC
Understanding ASP.NET MVCUnderstanding ASP.NET MVC
Understanding ASP.NET MVC
 
Membangun server intranet dengan linux
Membangun server intranet dengan linuxMembangun server intranet dengan linux
Membangun server intranet dengan linux
 
Ubuntu 2014 Cloud and Server Survey
Ubuntu 2014 Cloud and Server SurveyUbuntu 2014 Cloud and Server Survey
Ubuntu 2014 Cloud and Server Survey
 
Ubuntu Server a Comprehensive Overview
Ubuntu Server a Comprehensive OverviewUbuntu Server a Comprehensive Overview
Ubuntu Server a Comprehensive Overview
 
Installing and deploying ubuntu server box
Installing and deploying ubuntu server boxInstalling and deploying ubuntu server box
Installing and deploying ubuntu server box
 
Creating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an PythonCreating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an Python
 
Cobit5 owerwiev and implementation proposal
Cobit5 owerwiev and implementation proposalCobit5 owerwiev and implementation proposal
Cobit5 owerwiev and implementation proposal
 
Managing server disk storage
Managing server disk storageManaging server disk storage
Managing server disk storage
 
Ubuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release PartyUbuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release Party
 
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
 
Cobit 5 - An Overview
Cobit 5 - An OverviewCobit 5 - An Overview
Cobit 5 - An Overview
 
COBIT®5 - Implementation
COBIT®5 - ImplementationCOBIT®5 - Implementation
COBIT®5 - Implementation
 
Konfigurasi mikrotik (virtualbox)
Konfigurasi mikrotik (virtualbox) Konfigurasi mikrotik (virtualbox)
Konfigurasi mikrotik (virtualbox)
 
Tutorial membangun server jaringan
Tutorial  membangun  server  jaringanTutorial  membangun  server  jaringan
Tutorial membangun server jaringan
 
Konfigurasi mikrotik-dasar-hotspot-dan-warnet
Konfigurasi mikrotik-dasar-hotspot-dan-warnetKonfigurasi mikrotik-dasar-hotspot-dan-warnet
Konfigurasi mikrotik-dasar-hotspot-dan-warnet
 
Debian Server Tutorial Komplit
Debian Server Tutorial KomplitDebian Server Tutorial Komplit
Debian Server Tutorial Komplit
 
COBIT®5 - Foundation
COBIT®5 - FoundationCOBIT®5 - Foundation
COBIT®5 - Foundation
 

Semelhante a Installation of LAMP Server with Ubuntu 14.10 Server Edition

A3Sec Advanced Deployment System
A3Sec Advanced Deployment SystemA3Sec Advanced Deployment System
A3Sec Advanced Deployment System
a3sec
 
Linux sever building
Linux sever buildingLinux sever building
Linux sever building
Edmond Yu
 

Semelhante a Installation of LAMP Server with Ubuntu 14.10 Server Edition (20)

Linux advanced concepts - Part 2
Linux advanced concepts - Part 2Linux advanced concepts - Part 2
Linux advanced concepts - Part 2
 
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam RuzickaOSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
 
Secure your IT infrastructure with GNU/Linux
Secure your IT infrastructure  with GNU/LinuxSecure your IT infrastructure  with GNU/Linux
Secure your IT infrastructure with GNU/Linux
 
Setting up LAMP for Linux newbies
Setting up LAMP for Linux newbiesSetting up LAMP for Linux newbies
Setting up LAMP for Linux newbies
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Linux Desktop Automation
Linux Desktop AutomationLinux Desktop Automation
Linux Desktop Automation
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los AngelesDocker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los Angeles
 
Automating Complex Setups with Puppet
Automating Complex Setups with PuppetAutomating Complex Setups with Puppet
Automating Complex Setups with Puppet
 
Automation day red hat ansible
   Automation day red hat ansible    Automation day red hat ansible
Automation day red hat ansible
 
Sistemas operacionais 8
Sistemas operacionais 8Sistemas operacionais 8
Sistemas operacionais 8
 
Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOps
 
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
Extending OpenShift Origin: Build Your Own Cartridge with Bill DeCoste of Red...
 
Configuration Management and Salt
Configuration Management and SaltConfiguration Management and Salt
Configuration Management and Salt
 
Virtualizing Development
Virtualizing DevelopmentVirtualizing Development
Virtualizing Development
 
DevOps Braga #6
DevOps Braga #6DevOps Braga #6
DevOps Braga #6
 
A3Sec Advanced Deployment System
A3Sec Advanced Deployment SystemA3Sec Advanced Deployment System
A3Sec Advanced Deployment System
 
Centos
CentosCentos
Centos
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
 
Linux sever building
Linux sever buildingLinux sever building
Linux sever building
 
Using filesystem capabilities with rsync
Using filesystem capabilities with rsyncUsing filesystem capabilities with rsync
Using filesystem capabilities with rsync
 

Mais de Sammy Fung

Mozilla - Openness of the Web
Mozilla - Openness of the WebMozilla - Openness of the Web
Mozilla - Openness of the Web
Sammy Fung
 
Access Open Data with Open Source Software Tools
Access Open Data with Open Source Software ToolsAccess Open Data with Open Source Software Tools
Access Open Data with Open Source Software Tools
Sammy Fung
 
Introduction of Mozilla Hong Kong (COSCUP 2014)
Introduction of Mozilla Hong Kong (COSCUP 2014)Introduction of Mozilla Hong Kong (COSCUP 2014)
Introduction of Mozilla Hong Kong (COSCUP 2014)
Sammy Fung
 
Introduction of Open Source Job Board with Drupal CMS
Introduction of Open Source Job Board with Drupal CMSIntroduction of Open Source Job Board with Drupal CMS
Introduction of Open Source Job Board with Drupal CMS
Sammy Fung
 
Python, web scraping and content management: Scrapy and Django
Python, web scraping and content management: Scrapy and DjangoPython, web scraping and content management: Scrapy and Django
Python, web scraping and content management: Scrapy and Django
Sammy Fung
 
Local Weather Information and GNOME Shell Extension
Local Weather Information and GNOME Shell ExtensionLocal Weather Information and GNOME Shell Extension
Local Weather Information and GNOME Shell Extension
Sammy Fung
 

Mais de Sammy Fung (20)

Python 爬網⾴工具 - Scrapy 介紹
Python 爬網⾴工具 - Scrapy 介紹Python 爬網⾴工具 - Scrapy 介紹
Python 爬網⾴工具 - Scrapy 介紹
 
DevRel - Transform article writing from printing to online
DevRel - Transform article writing from printing to onlineDevRel - Transform article writing from printing to online
DevRel - Transform article writing from printing to online
 
Introduction to Open Source by opensource.hk (2019 Edition)
Introduction to Open Source by opensource.hk (2019 Edition)Introduction to Open Source by opensource.hk (2019 Edition)
Introduction to Open Source by opensource.hk (2019 Edition)
 
My Open Source Journey - Developer and Community
My Open Source Journey - Developer and CommunityMy Open Source Journey - Developer and Community
My Open Source Journey - Developer and Community
 
Introduction to development with Django web framework
Introduction to development with Django web frameworkIntroduction to development with Django web framework
Introduction to development with Django web framework
 
香港中文開源軟件翻譯
香港中文開源軟件翻譯香港中文開源軟件翻譯
香港中文開源軟件翻譯
 
Open Data and Web API
Open Data and Web APIOpen Data and Web API
Open Data and Web API
 
Global Open Source Development 2011-2014 Review and 2015 Forecast
Global Open Source Development 2011-2014 Review and 2015 ForecastGlobal Open Source Development 2011-2014 Review and 2015 Forecast
Global Open Source Development 2011-2014 Review and 2015 Forecast
 
Mozilla - Openness of the Web
Mozilla - Openness of the WebMozilla - Openness of the Web
Mozilla - Openness of the Web
 
Open Source Technology and Community
Open Source Technology and CommunityOpen Source Technology and Community
Open Source Technology and Community
 
Access Open Data with Open Source Software Tools
Access Open Data with Open Source Software ToolsAccess Open Data with Open Source Software Tools
Access Open Data with Open Source Software Tools
 
Software Freedom and Open Source Community
Software Freedom and Open Source CommunitySoftware Freedom and Open Source Community
Software Freedom and Open Source Community
 
Building your own job site with Drupal
Building your own job site with DrupalBuilding your own job site with Drupal
Building your own job site with Drupal
 
Use open source software to develop ideas at work
Use open source software to develop ideas at workUse open source software to develop ideas at work
Use open source software to develop ideas at work
 
Software Freedom and Community
Software Freedom and CommunitySoftware Freedom and Community
Software Freedom and Community
 
Open Source Job Board
Open Source Job BoardOpen Source Job Board
Open Source Job Board
 
Introduction of Mozilla Hong Kong (COSCUP 2014)
Introduction of Mozilla Hong Kong (COSCUP 2014)Introduction of Mozilla Hong Kong (COSCUP 2014)
Introduction of Mozilla Hong Kong (COSCUP 2014)
 
Introduction of Open Source Job Board with Drupal CMS
Introduction of Open Source Job Board with Drupal CMSIntroduction of Open Source Job Board with Drupal CMS
Introduction of Open Source Job Board with Drupal CMS
 
Python, web scraping and content management: Scrapy and Django
Python, web scraping and content management: Scrapy and DjangoPython, web scraping and content management: Scrapy and Django
Python, web scraping and content management: Scrapy and Django
 
Local Weather Information and GNOME Shell Extension
Local Weather Information and GNOME Shell ExtensionLocal Weather Information and GNOME Shell Extension
Local Weather Information and GNOME Shell Extension
 

Último

%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Último (20)

%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 

Installation of LAMP Server with Ubuntu 14.10 Server Edition

  • 1. Installation of LAMP Server with Ubuntu 14.10 Server Edition Sammy Fung sammy@sammy.hk
  • 2. Sammy Fung ● Python Developer ● President at Open Source Hong Kong ● Volunteers at Open Source Communities
  • 3. Linux Certifications ● Linux Professional Institute – Level 1: Perform Maintenance tasks. – Level 2: Administrate Small-medium mixed network. – Level 3: New enterprise-level. ● Linux Foundation (New) – LFCS: System Admins – LFCE: Engineers
  • 6. LAMP Stack ● L = Linux ● A = Apache (Web Server) ● M = MySQL (Database Server) ● P = PHP (Programming Language)
  • 7. LAMP Stack Alternatives ● L = Linux ● A = Apache ● M = MySQL / MariaDB ● P = PHP / Python / Perl
  • 8. Other Alternatives ● Web Server – Nginx replacing Apache ● Database – PostgreSQL replacing MySQL / MariaDB ● Programming Languages – Ruby, Node.JS
  • 9. Step-by-Step Install Demosration ● Linux: Ubuntu 14.10 Server Edition – Base system with SSH server. ● MySQL database system ● Apache web server + PHP – Apache PHP module. – PHP libraries – Drupal: PHP Content Management System.
  • 10. Linux ● Linux = Linux Kernel ● Linux distributions (distros) – Linux Kernel + System Tools + Application Progams – Red Hat and RPM-based ● Red Hat Enterprise Linux ● Fedora, CentOS ● SuSE, OpenSuSE – Debian and DEB-based ● Debian ● Ubuntu
  • 11. Ubuntu 14.10 Server Edition ● Single CD-size image to target Linux installation for server purposes. ● Non-LTS version: 9-month support cycle. – Upgrade to next version after support cycle (July 2015). – Next version 15.04 Vivid Vervet (non-LTS) will be released in April 2015. – LTS versioon 14.04 (Trusty Tahr) supports till April 2019. ● Linux Kernel 3.16 ● OpenStack 2014.2 (Juno) release in main repo. ● Docker 1.2
  • 12. Installation Targets ● Physical machines ● Virtual machines – KVM, Virtualbox, VMware – Linode – Amazon Web Service (AWS) – Google Cloud Service – Rackspace – Microsoft Azure
  • 13. OK! Let's start to install. Ubuntu 14.10 Server Edition as base system
  • 14. Linux Operating System ● UNIX-style Operation System ● Command Line Interface (CLI) ● Disk Storages and Filesystems ● Process and memory management ● Networking ● OS managament
  • 15. UNIX-Style Operating System ● Users and Groups – Super User (Admin): root ● su, sudo, id – useradd, usermod, userdel. – groupadd, groupmod, groupdel. – /etc/passwd, /etc/shadow ● Everything is file. – Filesystem Structure ● /dev, /etc, /home, /var
  • 16. Command Line Interfaces ● Shell: BASH ● BASH Script: .bashrc ● Redirection: >, >>, <, |, `cmd` ● uname ● SSH – Secure Remote Shell over SSL Secret Communication
  • 17. Disk Storage and Filesystems ● Partitioning: fdisk ● Filesystem: ext4 – mkfs, mount, fsck, mkswap ● File Operation – ls, pwd, cd, mkdir, rmdir, rm, chmod, chown, find, du, df – Tar, rsync
  • 18. Process and Memory Management ● Runlevels 0-6 – /etc/init.d/ ● Process Management – ps, kill ● Memory Management – free
  • 19. Networking ● Networking interface – Ifconfig – /etc/network/interface – /etc/resolv.conf ● Routing: route, traceroute ● Packet Filtering (Firewall): iptables ● Monitoring: netstat ● Troubleshooting: ping, host, traceroute
  • 20. OS Managament ● Software Package: .deb – dpkg: core package management tool – apt-get: easier software package tool ● apt-get install python – aptitude: menu-based package tool
  • 21. MySQL ● RDBMS: Relationship-based Database System ● CLI Client: mysql -u username -p ● Config File /etc/my.cnf ● SQL – CREATE DATABASE / TABLE / USER, GRANT – FLUSH PRIVILEGES – USE databasename – SHOW DATABASES / TABLES – INSERT, UPDATE, DELETE
  • 22. MySQL ● apt-get install mysql-server ● mysql -u root -p – CREATE DATABASE mydrupal; – CREATE USER mydrupal@localhost identified by 'opensource.hk'; – GRANT ALL ON mydrupal.* to mydrupal@localhost; – FLUSH PRIVILEGES;
  • 23. Apache ● HTTP server – HTTP = web protocol ● Installation and Configuration – Setting up name-based virtual web hosts – Configure Apache log files – Restrict access to a web page with Apache – Modules: SSL, Userdir, rewrite ● PHP – MySQL, SMTP ● Postfix SMTP server
  • 24. Name-based Virtual Host <VirtualHost 10.0.2.15:80> ServerName firsttest.sammy.hk.lan ServerAdmin webmaster@sammy.hk DocumentRoot /home/sammy/www <Directory "/home/sammy/www"> AllowOverride All Options Indexes FollowSymLinks order allow,deny allow from all Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-error.log CustomLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-access.log combined </VirtualHost>
  • 25. Name-based SSL Virtual Host <VirtualHost *:443> ServerName firsttest.sammy.hk.lan ServerAdmin webmaster@sammy.hk DocumentRoot /home/sammy/www <Directory "/home/sammy/www"> AllowOverride All Options Indexes FollowSymLinks order allow,deny allow from all Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-error.log CustomLog ${APACHE_LOG_DIR}/firsttest.sammy.hk.lan-access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/certs/ssl-cert-snakeoil.key </VirtualHost>
  • 26. Apache + PHP5 Installation ● apt-get install apache2 ● apt-get install php5 ● apt-get install php5-mysql ● apt-get install php5-gd ● cd /etc/apache2/sites-available ● vim firsttest.sammy.hk.lan.conf ● cd /etc/apache2/sites-enabled ● ln -s ../sites-available/firsttest.sammy.hk.lan.conf ● /etc/init.d/apache restart
  • 27. PHP / Python ● Drupal: PHP Content Management System ● Wordpress: PHP Blog System ● Django: Python Web Framework
  • 28. Drupal basic installation ● Download and uncompress Drupal tarball to DocumentRoot – cp sites/default/default/settings.php sites/default/settings.php – mkdir sites/default/files – chmod a+w sites/default/settings.php sites/default/files ● At web browser, – http://firsttest.sammy.hk.lan/ – Add above hostname to host files on your client machine, eg. /etc/hosts – Use port 8080 at VirtualBox port forwarding to port 80 ● Go thru step-by-step installation. ● DONE!
  • 29.
  • 30. LAMP
  • 31. LAMP Stack ● L = Linux ● A = Apache (Web Server) ● M = MySQL (Database Server) ● P = PHP (Programming Language)
  • 32. THANK YOU! Sammy Fung <sammy@sammy.hk> http://slidesha.re/1tsBbLA This slide is licensed under Creative Commons BY-NC-SA 3.0