SlideShare a Scribd company logo
PHP, LAMP* Stack &
WordPress
*LAMP = Linux, Apache, MySQL, PHP
Aug 28, 2018
Agenda
• Introduction to PHP & LAMP stack
• How PHP & LAMP took the world (at least, shared hosting) by storm
 Why PHP is widely used despite being among the “most disliked” languages!
• PHP applications & frameworks; Laravel
• WordPress (and why it powers 31% of the Internet / websites)
• Demo: installing LAMP, some simple PHP code, installing WordPress
PHP
• PHP: Hypertext Preprocessor
 Open source loves recursive acronyms! Other examples: GNU, cURL, RPM, WINE
 Used to be: Personal Home Page Tools (1994-1997)
• Developed by Rasmus Lerdorf in 1994
• PHP Versions
 Initally not meant to be a separate language: worked with CGI (Common Gateway
Interface) scripts / binaries to generate dynamic web pages
 PHP 3 & 4 (1997): re-write of initial PHP. Powered by new Zend Engine.
 PHP 5 (2004): support for OOP & classes, PDO (Data Objects), Windows support!
 Namespaces (backported from PHP 6 which was never released)
 PHP 7 (2014): mainly performance enhancements, reportedly up to 2x
 Multiple legacy features removed (PHP 4 constructor style, <? ?> delimiters)
Perl / Python
• P in LAMP stack could also refer to
Perl or Python
• Won’t be discussing those today
• Very different from PHP!
• Examples of directory iteration in
Perl (top) & Python (bottom)
• Today
 Perl used to be go-to script for DevOps
and sysadmins; now less popular
 Python has become Swiss army knife:
used in production systems, DevOps
scripts, automation, production systems
& even web frameworks
PHP Basics
• Early PHP (3 and 4) was similar to C
– actually used C function names
• PHP 5+ introduced OOP and
namespaces
• Embedded in HTML documents using
<?php and ?>. File saved as .php,
parsed server-side (web server with
PHP module) and sent as HTML.
 Similar to ASP.Net, JSP, etc
• Drop / copy your PHP files into a web
server, and they just run. No
compilation, build, etc.
 Deployment = test locally, commit to git,
SSH into server, “git pull”
Google Trends: PHP, Python, Perl
Most Disliked Languages
2017 Stackoverflow Survey
https://stackoverflow.blog/2017/10/31/disliked-programming-languages/
LAMP Stack
• LAMP = Linux, Apache, MySQL,
PHP (or Perl or Python)
 Linux = OS
 Apache = Web Server
 MySQL = Database
 PHP = Language
• WAMP = Windows, Apache,
MySQL, PHP
 MAMP = Mac OS, Apache, …
• MEAN = MongoDB, Express.js,
AngularJS, Node.js
• WISA (!) = Windows, IIS, SQL
Server, ASP.Net
Source: https://www.freelancinggig.com/blog/2017/08/04/lamp-stack-vs-wisa-stack-best-startup/
Shared Hosting & PHP’s Popularity
• Made popular by GoDaddy
• Bunch of contenders:
DreamHost, HostGator,
1and1, Bluehost, SiteGround
• Web presence at low prices;
multiple domains on 1 server
 $5-$10 a year for a domain
 $3-$10 a month for hosting =
$36 - $60 a year
• Small businesses flocked
towards them to set up a
.com web presence
• Guess what software they
were running on? LAMPSource: http://www.aiteducation.org/2016/07/shared-web-hosting-linux-or-windows/
PHP Applications: CMS, Commerce
Source: https://www.rishabhsoft.com/php-application-development
PHP Frameworks
• A few years ago, there were
several contenders –
CakePHP, Yii, Symfony,
CodeIgniter
• Today: Laravel leads the
pack
• All frameworks share
similar patterns
 MVC framework
 ORM (Object Relational
Mapping)
 Scaffolding (generate basic
application from models)Source: https://www.quora.com/Which-is-the-best-framework-for-PHP
WordPress: Most Popular CMS
• Most popular CMS (Content
Management System)
 Replaced Joomla & Drupal (also PHP)
• Initially started as blog system
• Now also popular e-commerce
platform (with WooCommerce)
 Replacing Magneto (also PHP)
• Open-source, built on PHP. Primarily
runs on LAMP stack
• Initially released in 2003 by Matt
Mullenweg when he was a student
 Now maintained by WordPress
Foundation (non-profit) and Automattic
(for-profit private company)
Source: https://thenextweb.com/dd/2018/03/05/30-of-the-web-now-runs-on-wordpress/
WordPress Screenshot

More Related Content

What's hot (20)

PPTX
ReactPHP + Symfony
David Bergunder
 
PDF
Beyond Apache: Faster Web Servers
webhostingguy
 
PDF
Php training in bhubaneswar
litbbsr
 
PPTX
Day 9 - PostgreSQL Application Architecture
Barry Jones
 
KEY
Ship It ! with Ruby/ Rails Ecosystem
Yi-Ting Cheng
 
PDF
Where do I put this data? #lessql
Ezra Zygmuntowicz
 
PPTX
Tuenti Release Workflow
Tuenti
 
PPTX
Technology Stack Discussion
Zaiyang Li
 
PDF
Enterprise messaging
ColdFusionConference
 
PDF
Save Time by Managing WordPress from the Command Line
Shawn Hooper
 
ODP
Real-world Experiences in Scala
Amir Karimi
 
PDF
Python to go
Weng Wei
 
KEY
Nodeconf npm 2011
Florent Jaby ヅ
 
PPTX
NoSQL Database in .NET Apps
Shiju Varghese
 
PDF
23 LAMP Stack #burningkeyboards
Denis Ristic
 
PPTX
Web development post io2016
Filip Bruun Bech-Larsen
 
PPTX
Functional Programming in PHP
Aurimas Niekis
 
PPTX
Everyday Tools for the Semantic Web Developer
Rob Vesse
 
PDF
Asp.Net 3 5 Part 1
asim78
 
PDF
CBDW2014 - Down the RabbitMQ hole with ColdFusion
Ortus Solutions, Corp
 
ReactPHP + Symfony
David Bergunder
 
Beyond Apache: Faster Web Servers
webhostingguy
 
Php training in bhubaneswar
litbbsr
 
Day 9 - PostgreSQL Application Architecture
Barry Jones
 
Ship It ! with Ruby/ Rails Ecosystem
Yi-Ting Cheng
 
Where do I put this data? #lessql
Ezra Zygmuntowicz
 
Tuenti Release Workflow
Tuenti
 
Technology Stack Discussion
Zaiyang Li
 
Enterprise messaging
ColdFusionConference
 
Save Time by Managing WordPress from the Command Line
Shawn Hooper
 
Real-world Experiences in Scala
Amir Karimi
 
Python to go
Weng Wei
 
Nodeconf npm 2011
Florent Jaby ヅ
 
NoSQL Database in .NET Apps
Shiju Varghese
 
23 LAMP Stack #burningkeyboards
Denis Ristic
 
Web development post io2016
Filip Bruun Bech-Larsen
 
Functional Programming in PHP
Aurimas Niekis
 
Everyday Tools for the Semantic Web Developer
Rob Vesse
 
Asp.Net 3 5 Part 1
asim78
 
CBDW2014 - Down the RabbitMQ hole with ColdFusion
Ortus Solutions, Corp
 

Similar to PHP, LAMP Stack & WordPress (20)

PPTX
Lamp technology ppt for lamp teachnology
NMadhu5
 
PPT
Lamp
anurag1p
 
PPTX
Web Development Stack in computer science.pptx
vishalyadavbwn1008
 
PPTX
Introduction to PHP.pptx
MarianJRuben
 
PPS
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 
PPTX
Php introduction and configuration
Vijay Kumar Verma
 
PPTX
Webtechnologies
-jyothish kumar sirigidi
 
PDF
Learn to build with php
fernando valenzuela hernández
 
PPTX
LAMP TECHNOLOGY BY SAIKIRAN PANJALA
Saikiran Panjala
 
PDF
PHP Web Development: Empowering the Digital World
company
 
PDF
How PHP works
Atlogys Technical Consulting
 
PDF
PHP MySQL Training : Module 2
hussulinux
 
PPTX
Rise of PHP and Laravel. Latest Web Frameworks built on PHP.
Mohammad Junaid Khan
 
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PedakotaPavankumar
 
PPTX
LAMP Stack Tutorial by jeetendra mandal
jeetendra mandal
 
PPTX
Introduction To Web Development & The New Digital Workplace
Jen Wei Lee
 
PDF
PHP Web Development.pdf
Sonia Simi
 
PPTX
Applied+Web+Development+[Autosaved].pptx
voot1
 
PDF
Chapter 1
Uma Sam
 
PPT
01 Php Introduction
Geshan Manandhar
 
Lamp technology ppt for lamp teachnology
NMadhu5
 
Lamp
anurag1p
 
Web Development Stack in computer science.pptx
vishalyadavbwn1008
 
Introduction to PHP.pptx
MarianJRuben
 
PHP - History, Introduction, Summary, Extensions and Frameworks
Royston Olivera
 
Php introduction and configuration
Vijay Kumar Verma
 
Webtechnologies
-jyothish kumar sirigidi
 
Learn to build with php
fernando valenzuela hernández
 
LAMP TECHNOLOGY BY SAIKIRAN PANJALA
Saikiran Panjala
 
PHP Web Development: Empowering the Digital World
company
 
PHP MySQL Training : Module 2
hussulinux
 
Rise of PHP and Laravel. Latest Web Frameworks built on PHP.
Mohammad Junaid Khan
 
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PedakotaPavankumar
 
LAMP Stack Tutorial by jeetendra mandal
jeetendra mandal
 
Introduction To Web Development & The New Digital Workplace
Jen Wei Lee
 
PHP Web Development.pdf
Sonia Simi
 
Applied+Web+Development+[Autosaved].pptx
voot1
 
Chapter 1
Uma Sam
 
01 Php Introduction
Geshan Manandhar
 
Ad

More from Suman Srinivasan (10)

PDF
Data science and Artificial Intelligence
Suman Srinivasan
 
PDF
My PhD thesis defense presentation
Suman Srinivasan
 
PDF
My PhD Thesis
Suman Srinivasan
 
PPT
Real-Time Video Analytics Using Hadoop and HBase (HBaseCon 2013)
Suman Srinivasan
 
PPTX
OSGi summary
Suman Srinivasan
 
PPTX
ActiveCDN on NetServ
Suman Srinivasan
 
PPT
Suman's PhD Candidacy Talk
Suman Srinivasan
 
PPT
7DS Version 1
Suman Srinivasan
 
PPT
BonAHA framework - Lab presentation
Suman Srinivasan
 
PPT
BonAHA framework - IEEE CCNC 2009
Suman Srinivasan
 
Data science and Artificial Intelligence
Suman Srinivasan
 
My PhD thesis defense presentation
Suman Srinivasan
 
My PhD Thesis
Suman Srinivasan
 
Real-Time Video Analytics Using Hadoop and HBase (HBaseCon 2013)
Suman Srinivasan
 
OSGi summary
Suman Srinivasan
 
ActiveCDN on NetServ
Suman Srinivasan
 
Suman's PhD Candidacy Talk
Suman Srinivasan
 
7DS Version 1
Suman Srinivasan
 
BonAHA framework - Lab presentation
Suman Srinivasan
 
BonAHA framework - IEEE CCNC 2009
Suman Srinivasan
 
Ad

Recently uploaded (20)

DOCX
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
PPTX
Networking_Essentials_version_3.0_-_Module_5.pptx
ryan622010
 
PPTX
CHAPTER 1 - PART 3 FOR GRADE 11 STUDENTS
FSBTLEDNathanVince
 
PDF
Enhancing Parental Roles in Protecting Children from Online Sexual Exploitati...
ICT Frame Magazine Pvt. Ltd.
 
PDF
The Internet - By the numbers, presented at npNOG 11
APNIC
 
PDF
The Hidden Benefits of Outsourcing IT Hardware Procurement for Small Businesses
Carley Cramer
 
PDF
Empowering Local Language Email with IDN & EAI – Powered by XgenPlus
XgenPlus Technologies
 
PDF
Top 10 Testing Procedures to Ensure Your Magento to Shopify Migration Success...
CartCoders
 
PDF
BRKSP-2551 - Introduction to Segment Routing.pdf
fcesargonca
 
PPTX
美国电子毕业证帕克大学电子版成绩单UMCP学费发票办理学历认证
Taqyea
 
PDF
google promotion services in Delhi, India
Digital Web Future
 
PDF
Cleaning up your RPKI invalids, presented at PacNOG 35
APNIC
 
PPTX
Metaphysics_Presentation_With_Visuals.pptx
erikjohnsales1
 
PPTX
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
PDF
AI security AI security AI security AI security
elite44
 
PDF
Boardroom AI: The Next 10 Moves | Cerebraix Talent Tech
ssuser73bdb11
 
PDF
BRKAPP-1102 - Proactive Network and Application Monitoring.pdf
fcesargonca
 
PDF
Digital burnout toolkit for youth workers and teachers
asociatiastart123
 
PPTX
Academic Debate: Creation vs Evolution.pptx
JOHNPATRICKMARTINEZ5
 
PDF
FutureCon Seattle 2025 Presentation Slides - You Had One Job
Suzanne Aldrich
 
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
Networking_Essentials_version_3.0_-_Module_5.pptx
ryan622010
 
CHAPTER 1 - PART 3 FOR GRADE 11 STUDENTS
FSBTLEDNathanVince
 
Enhancing Parental Roles in Protecting Children from Online Sexual Exploitati...
ICT Frame Magazine Pvt. Ltd.
 
The Internet - By the numbers, presented at npNOG 11
APNIC
 
The Hidden Benefits of Outsourcing IT Hardware Procurement for Small Businesses
Carley Cramer
 
Empowering Local Language Email with IDN & EAI – Powered by XgenPlus
XgenPlus Technologies
 
Top 10 Testing Procedures to Ensure Your Magento to Shopify Migration Success...
CartCoders
 
BRKSP-2551 - Introduction to Segment Routing.pdf
fcesargonca
 
美国电子毕业证帕克大学电子版成绩单UMCP学费发票办理学历认证
Taqyea
 
google promotion services in Delhi, India
Digital Web Future
 
Cleaning up your RPKI invalids, presented at PacNOG 35
APNIC
 
Metaphysics_Presentation_With_Visuals.pptx
erikjohnsales1
 
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
AI security AI security AI security AI security
elite44
 
Boardroom AI: The Next 10 Moves | Cerebraix Talent Tech
ssuser73bdb11
 
BRKAPP-1102 - Proactive Network and Application Monitoring.pdf
fcesargonca
 
Digital burnout toolkit for youth workers and teachers
asociatiastart123
 
Academic Debate: Creation vs Evolution.pptx
JOHNPATRICKMARTINEZ5
 
FutureCon Seattle 2025 Presentation Slides - You Had One Job
Suzanne Aldrich
 

PHP, LAMP Stack & WordPress

  • 1. PHP, LAMP* Stack & WordPress *LAMP = Linux, Apache, MySQL, PHP Aug 28, 2018
  • 2. Agenda • Introduction to PHP & LAMP stack • How PHP & LAMP took the world (at least, shared hosting) by storm  Why PHP is widely used despite being among the “most disliked” languages! • PHP applications & frameworks; Laravel • WordPress (and why it powers 31% of the Internet / websites) • Demo: installing LAMP, some simple PHP code, installing WordPress
  • 3. PHP • PHP: Hypertext Preprocessor  Open source loves recursive acronyms! Other examples: GNU, cURL, RPM, WINE  Used to be: Personal Home Page Tools (1994-1997) • Developed by Rasmus Lerdorf in 1994 • PHP Versions  Initally not meant to be a separate language: worked with CGI (Common Gateway Interface) scripts / binaries to generate dynamic web pages  PHP 3 & 4 (1997): re-write of initial PHP. Powered by new Zend Engine.  PHP 5 (2004): support for OOP & classes, PDO (Data Objects), Windows support!  Namespaces (backported from PHP 6 which was never released)  PHP 7 (2014): mainly performance enhancements, reportedly up to 2x  Multiple legacy features removed (PHP 4 constructor style, <? ?> delimiters)
  • 4. Perl / Python • P in LAMP stack could also refer to Perl or Python • Won’t be discussing those today • Very different from PHP! • Examples of directory iteration in Perl (top) & Python (bottom) • Today  Perl used to be go-to script for DevOps and sysadmins; now less popular  Python has become Swiss army knife: used in production systems, DevOps scripts, automation, production systems & even web frameworks
  • 5. PHP Basics • Early PHP (3 and 4) was similar to C – actually used C function names • PHP 5+ introduced OOP and namespaces • Embedded in HTML documents using <?php and ?>. File saved as .php, parsed server-side (web server with PHP module) and sent as HTML.  Similar to ASP.Net, JSP, etc • Drop / copy your PHP files into a web server, and they just run. No compilation, build, etc.  Deployment = test locally, commit to git, SSH into server, “git pull”
  • 6. Google Trends: PHP, Python, Perl
  • 7. Most Disliked Languages 2017 Stackoverflow Survey https://stackoverflow.blog/2017/10/31/disliked-programming-languages/
  • 8. LAMP Stack • LAMP = Linux, Apache, MySQL, PHP (or Perl or Python)  Linux = OS  Apache = Web Server  MySQL = Database  PHP = Language • WAMP = Windows, Apache, MySQL, PHP  MAMP = Mac OS, Apache, … • MEAN = MongoDB, Express.js, AngularJS, Node.js • WISA (!) = Windows, IIS, SQL Server, ASP.Net Source: https://www.freelancinggig.com/blog/2017/08/04/lamp-stack-vs-wisa-stack-best-startup/
  • 9. Shared Hosting & PHP’s Popularity • Made popular by GoDaddy • Bunch of contenders: DreamHost, HostGator, 1and1, Bluehost, SiteGround • Web presence at low prices; multiple domains on 1 server  $5-$10 a year for a domain  $3-$10 a month for hosting = $36 - $60 a year • Small businesses flocked towards them to set up a .com web presence • Guess what software they were running on? LAMPSource: http://www.aiteducation.org/2016/07/shared-web-hosting-linux-or-windows/
  • 10. PHP Applications: CMS, Commerce Source: https://www.rishabhsoft.com/php-application-development
  • 11. PHP Frameworks • A few years ago, there were several contenders – CakePHP, Yii, Symfony, CodeIgniter • Today: Laravel leads the pack • All frameworks share similar patterns  MVC framework  ORM (Object Relational Mapping)  Scaffolding (generate basic application from models)Source: https://www.quora.com/Which-is-the-best-framework-for-PHP
  • 12. WordPress: Most Popular CMS • Most popular CMS (Content Management System)  Replaced Joomla & Drupal (also PHP) • Initially started as blog system • Now also popular e-commerce platform (with WooCommerce)  Replacing Magneto (also PHP) • Open-source, built on PHP. Primarily runs on LAMP stack • Initially released in 2003 by Matt Mullenweg when he was a student  Now maintained by WordPress Foundation (non-profit) and Automattic (for-profit private company) Source: https://thenextweb.com/dd/2018/03/05/30-of-the-web-now-runs-on-wordpress/