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

PPT
introduction to Lamp Stack
PPTX
20120329 installing wordpress_3_3_1_locally
Β 
PPTX
Drop acid
PPTX
Lamp technology
PPT
Client server
PPTX
Less\sass done right in .NET
PDF
WordPress: Getting Under the Hood
PDF
The Characteristics of a Successful SPA
introduction to Lamp Stack
20120329 installing wordpress_3_3_1_locally
Β 
Drop acid
Lamp technology
Client server
Less\sass done right in .NET
WordPress: Getting Under the Hood
The Characteristics of a Successful SPA

What's hot (20)

PPTX
ReactPHP + Symfony
PDF
Beyond Apache: Faster Web Servers
PDF
Php training in bhubaneswar
PPTX
Day 9 - PostgreSQL Application Architecture
KEY
Ship It ! with Ruby/ Rails Ecosystem
PDF
Where do I put this data? #lessql
PPTX
Tuenti Release Workflow
Β 
PPTX
Technology Stack Discussion
PDF
Enterprise messaging
PDF
Save Time by Managing WordPress from the Command Line
ODP
Real-world Experiences in Scala
PDF
Python to go
KEY
Nodeconf npm 2011
PPTX
NoSQL Database in .NET Apps
PDF
23 LAMP Stack #burningkeyboards
PPTX
Web development post io2016
PPTX
Functional Programming in PHP
PPTX
Everyday Tools for the Semantic Web Developer
PDF
Asp.Net 3 5 Part 1
Β 
PDF
CBDW2014 - Down the RabbitMQ hole with ColdFusion
ReactPHP + Symfony
Beyond Apache: Faster Web Servers
Php training in bhubaneswar
Day 9 - PostgreSQL Application Architecture
Ship It ! with Ruby/ Rails Ecosystem
Where do I put this data? #lessql
Tuenti Release Workflow
Β 
Technology Stack Discussion
Enterprise messaging
Save Time by Managing WordPress from the Command Line
Real-world Experiences in Scala
Python to go
Nodeconf npm 2011
NoSQL Database in .NET Apps
23 LAMP Stack #burningkeyboards
Web development post io2016
Functional Programming in PHP
Everyday Tools for the Semantic Web Developer
Asp.Net 3 5 Part 1
Β 
CBDW2014 - Down the RabbitMQ hole with ColdFusion
Ad

Similar to PHP, LAMP Stack & WordPress (20)

PPTX
Introduction to xampp
PPTX
Introduction to php
PPT
Introduction of PHP And MySql presentation
PPT
Php hypertext pre-processor
PPTX
PPTX
Website design & developemet
PPT
Xampp Ppt
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PPT
Php unit i
PPTX
First steps of programming with php
PPTX
PHP Basics
PPTX
Php ppt
PDF
Unit 1 php_basics
Β 
PPTX
PHP ITCS 323
PPT
Lamp
PPT
Introduction to PHP - SDPHP
PPTX
Introduction to PHP
PPTX
Introduction to PHP.pptx
PPTX
Training ppt
Introduction to xampp
Introduction to php
Introduction of PHP And MySql presentation
Php hypertext pre-processor
Website design & developemet
Xampp Ppt
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
Php unit i
First steps of programming with php
PHP Basics
Php ppt
Unit 1 php_basics
Β 
PHP ITCS 323
Lamp
Introduction to PHP - SDPHP
Introduction to PHP
Introduction to PHP.pptx
Training ppt
Ad

More from Suman Srinivasan (10)

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

Recently uploaded (20)

PPTX
E -tech empowerment technologies PowerPoint
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Internet___Basics___Styled_ presentation
E -tech empowerment technologies PowerPoint
522797556-Unit-2-Temperature-measurement-1-1.pptx
Design_with_Watersergyerge45hrbgre4top (1).ppt
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
The Internet -By the Numbers, Sri Lanka Edition
Β 
Module 1 - Cyber Law and Ethics 101.pptx
WebRTC in SignalWire - troubleshooting media negotiation
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
introduction about ICD -10 & ICD-11 ppt.pptx
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
INTERNET------BASICS-------UPDATED PPT PRESENTATION
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Slides PPTX World Game (s) Eco Economic Epochs.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
An introduction to the IFRS (ISSB) Stndards.pdf
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
Tenda Login Guide: Access Your Router in 5 Easy Steps
Internet___Basics___Styled_ presentation

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/