SlideShare a Scribd company logo
1 of 17
Download to read offline
Making own AMP stack
with Homebrew on a
Mac
Raimonds Kalniņš
Wunderkraut Latvia
AMP?
- Historically a bundle of Apache, Mysql
and PHP
- Today refers to various combos of web
server components
- LAMP: Linux + AMP
- There are number of options to set up
AMP on a Mac
- But there is also lack of
- choice / customisation
- performance
What is the problem?
Options to set up AMP
- Built-in Apache and PHP
- AMP software bundles (MAMP, XAMPP)
- Virtualisation software
- Package manager (Homebrew)
Built-in Apache and PHP
- Good
- It’s there already on the system
- Only DB server needs to be added
- Bad
- Hardly customisable
- Can’t do without sudoing
- Can’t start fresh if things go wrong
Built-in Apache and PHP
You don’t want to sing this song at the end of the day
if built-in binaries/config files become corrupted.
AMP software bundles
- Good
- Easy to set up
- Easy to reinstall / remove
- Bad
- Partly customisable
- Lots of (usually) unwanted stuff
Virtualisation software
- Good
- Fully customisable
- Easy to reinstall / remove
- Bad
- Performance overhead
Package manager
- Good
- Fully customisable
- Easy to reinstall / remove
- Full speed
- Bad
- Outdated packages
- Package manager prone to major
internal changes
Homebrew lingo
Formula A package definition file
Tap A repository of Formulae
More information can be found on Homebrew project website.
Homebrew requirements
- OS X 10.6 (10.7 is recommended)
- Intel CPU is recommended
- Command line tools for Xcode*
* Install with xcode-select --install
The Plan - HAMP
- Install Homebrew
- Install Apache 2.4
- Install MariaDB 10
- Install PHP 5.6
- Install Drush 7
HAMP requirements
Before setting up HAMP, these taps need
to be added:
- brew tap homebrew/apache
- brew tap homebrew/homebrew-php
Installing the software
Run
- brew install http24
- brew install mariadb
- brew install php56
- brew install drush
Configure the software
Make changes to httpd.conf:
- ServerName localhost:8080
- AllowOverride All
- LoadModule php5_module [..]/libphp5.so
- LoadModule rewrite_module [..]/
mod_rewrite.so
- DirectoryIndex index.php
- AddType application/x-httpd-php .php
Secure MariaDB:
- mysql_secure_installation
Demo
Making own AMP stack with Homebrew on a Mac

More Related Content

What's hot

Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009Helgi Þormar Þorbjörnsson
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPressWalter Ebert
 
Installation of wampserver
Installation of wampserverInstallation of wampserver
Installation of wampserverSmita Agarwal
 
Debugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngineDebugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEnginertCamp
 
Diva23
Diva23Diva23
Diva23diva23
 
Tutorial sederhana netbeans & xampp
Tutorial sederhana netbeans & xamppTutorial sederhana netbeans & xampp
Tutorial sederhana netbeans & xamppLailani Fitria
 
Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008Helgi Þormar Þorbjörnsson
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyopenQRM Enterprise GmbH
 
Joomlasitein60 Part1
Joomlasitein60 Part1Joomlasitein60 Part1
Joomlasitein60 Part1Linda Coonen
 
High Performance Web Sites
High Performance Web SitesHigh Performance Web Sites
High Performance Web SitesRavi Raj
 
Drupal VM for Drupal 8 Dev - MidCamp 2017
Drupal VM for Drupal 8 Dev - MidCamp 2017Drupal VM for Drupal 8 Dev - MidCamp 2017
Drupal VM for Drupal 8 Dev - MidCamp 2017Jeff Geerling
 
香港六合彩
香港六合彩香港六合彩
香港六合彩csukxnr
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 
HAProxy tech talk
HAProxy tech talkHAProxy tech talk
HAProxy tech talkicebourg
 
Omnisharp up and running
Omnisharp up and runningOmnisharp up and running
Omnisharp up and runningDaniel KOBINA
 
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-NapocaWP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-Napoca4nd4p0p
 
Creating Local WordPress Installs
Creating Local WordPress InstallsCreating Local WordPress Installs
Creating Local WordPress Installsmcgaritydotme
 

What's hot (20)

Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009
 
Testumgebungen für WordPress
Testumgebungen für WordPressTestumgebungen für WordPress
Testumgebungen für WordPress
 
Installation of wampserver
Installation of wampserverInstallation of wampserver
Installation of wampserver
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Debugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngineDebugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngine
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
Diva23
Diva23Diva23
Diva23
 
Tutorial sederhana netbeans & xampp
Tutorial sederhana netbeans & xamppTutorial sederhana netbeans & xampp
Tutorial sederhana netbeans & xampp
 
Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian Wheezy
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
Joomlasitein60 Part1
Joomlasitein60 Part1Joomlasitein60 Part1
Joomlasitein60 Part1
 
High Performance Web Sites
High Performance Web SitesHigh Performance Web Sites
High Performance Web Sites
 
Drupal VM for Drupal 8 Dev - MidCamp 2017
Drupal VM for Drupal 8 Dev - MidCamp 2017Drupal VM for Drupal 8 Dev - MidCamp 2017
Drupal VM for Drupal 8 Dev - MidCamp 2017
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
HAProxy tech talk
HAProxy tech talkHAProxy tech talk
HAProxy tech talk
 
Omnisharp up and running
Omnisharp up and runningOmnisharp up and running
Omnisharp up and running
 
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-NapocaWP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
 
Creating Local WordPress Installs
Creating Local WordPress InstallsCreating Local WordPress Installs
Creating Local WordPress Installs
 

Viewers also liked

OBE Social Media brent copy
OBE Social Media brent copyOBE Social Media brent copy
OBE Social Media brent copyBrent Seeley
 
Gem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TORGem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TORGemma Reyes
 
Scanned Documents
Scanned DocumentsScanned Documents
Scanned DocumentsGemma Reyes
 
Gerakan Disintegrasi
Gerakan DisintegrasiGerakan Disintegrasi
Gerakan Disintegrasiwisnuajin
 
ANDI AZIZ (Kasus yang dilupakan)
ANDI AZIZ (Kasus yang dilupakan)ANDI AZIZ (Kasus yang dilupakan)
ANDI AZIZ (Kasus yang dilupakan)wisnuajin
 
教育心理学会 木村話題提供 20150828_uproad
教育心理学会 木村話題提供 20150828_uproad教育心理学会 木村話題提供 20150828_uproad
教育心理学会 木村話題提供 20150828_uproadHiromochi Kimura
 
Curso custos e formação de preços
Curso custos e formação de preçosCurso custos e formação de preços
Curso custos e formação de preçosRUBENS LUIS PEREIRA
 
Dampakpostfnegtfpolekorba 1601251620401-160129002504
Dampakpostfnegtfpolekorba 1601251620401-160129002504Dampakpostfnegtfpolekorba 1601251620401-160129002504
Dampakpostfnegtfpolekorba 1601251620401-160129002504wisnuajin
 

Viewers also liked (13)

OBE Social Media brent copy
OBE Social Media brent copyOBE Social Media brent copy
OBE Social Media brent copy
 
Gem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TORGem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TOR
 
Evidencias
EvidenciasEvidencias
Evidencias
 
Scanned Documents
Scanned DocumentsScanned Documents
Scanned Documents
 
Gerakan Disintegrasi
Gerakan DisintegrasiGerakan Disintegrasi
Gerakan Disintegrasi
 
金融業: 私人銀行與財富管理的溝通課題
金融業: 私人銀行與財富管理的溝通課題金融業: 私人銀行與財富管理的溝通課題
金融業: 私人銀行與財富管理的溝通課題
 
營建管理: 應用溝通協作技術如期完成營建工程
營建管理: 應用溝通協作技術如期完成營建工程營建管理: 應用溝通協作技術如期完成營建工程
營建管理: 應用溝通協作技術如期完成營建工程
 
航空業: 改善溝通協作啟動產業革命
航空業: 改善溝通協作啟動產業革命航空業: 改善溝通協作啟動產業革命
航空業: 改善溝通協作啟動產業革命
 
保險業: 改善客戶溝通方式的機會與挑戰
保險業: 改善客戶溝通方式的機會與挑戰保險業: 改善客戶溝通方式的機會與挑戰
保險業: 改善客戶溝通方式的機會與挑戰
 
ANDI AZIZ (Kasus yang dilupakan)
ANDI AZIZ (Kasus yang dilupakan)ANDI AZIZ (Kasus yang dilupakan)
ANDI AZIZ (Kasus yang dilupakan)
 
教育心理学会 木村話題提供 20150828_uproad
教育心理学会 木村話題提供 20150828_uproad教育心理学会 木村話題提供 20150828_uproad
教育心理学会 木村話題提供 20150828_uproad
 
Curso custos e formação de preços
Curso custos e formação de preçosCurso custos e formação de preços
Curso custos e formação de preços
 
Dampakpostfnegtfpolekorba 1601251620401-160129002504
Dampakpostfnegtfpolekorba 1601251620401-160129002504Dampakpostfnegtfpolekorba 1601251620401-160129002504
Dampakpostfnegtfpolekorba 1601251620401-160129002504
 

Similar to Making own AMP stack with Homebrew on a Mac

PBX on a non-specialized distro
PBX on a non-specialized distroPBX on a non-specialized distro
PBX on a non-specialized distroStefanoFancello
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)WordCamp Cape Town
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04Sanjary Edu
 
Setting advanced PHP development environment
Setting advanced PHP development environmentSetting advanced PHP development environment
Setting advanced PHP development environmentKapil Sharma
 
Installing php and my sql locally using xampp
Installing php and my sql locally using xamppInstalling php and my sql locally using xampp
Installing php and my sql locally using xampppeyman Ghader Kurehpaz
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 
Instruction: dev environment
Instruction: dev environmentInstruction: dev environment
Instruction: dev environmentSoshi Nemoto
 
Installing Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchInstalling Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchAndrey Vykhodtsev
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Servertutorialsruby
 
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 environmentZero Point Development
 
Drupal development environment
Drupal development environmentDrupal development environment
Drupal development environmentRachit Gupta
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with NginxBud Siddhisena
 

Similar to Making own AMP stack with Homebrew on a Mac (20)

Lumen
LumenLumen
Lumen
 
PBX on a non-specialized distro
PBX on a non-specialized distroPBX on a non-specialized distro
PBX on a non-specialized distro
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)Roy foubister (hosting high traffic sites on a tight budget)
Roy foubister (hosting high traffic sites on a tight budget)
 
Hadoop on osx
Hadoop on osxHadoop on osx
Hadoop on osx
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04
 
Setting advanced PHP development environment
Setting advanced PHP development environmentSetting advanced PHP development environment
Setting advanced PHP development environment
 
Sahu
SahuSahu
Sahu
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Installing php and my sql locally using xampp
Installing php and my sql locally using xamppInstalling php and my sql locally using xampp
Installing php and my sql locally using xampp
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
Instruction: dev environment
Instruction: dev environmentInstruction: dev environment
Instruction: dev environment
 
Installing Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchInstalling Hadoop / Spark from scratch
Installing Hadoop / Spark from scratch
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
 
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
 
Drupal development environment
Drupal development environmentDrupal development environment
Drupal development environment
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 

Making own AMP stack with Homebrew on a Mac

  • 1. Making own AMP stack with Homebrew on a Mac Raimonds Kalniņš Wunderkraut Latvia
  • 2. AMP? - Historically a bundle of Apache, Mysql and PHP - Today refers to various combos of web server components - LAMP: Linux + AMP
  • 3. - There are number of options to set up AMP on a Mac - But there is also lack of - choice / customisation - performance What is the problem?
  • 4. Options to set up AMP - Built-in Apache and PHP - AMP software bundles (MAMP, XAMPP) - Virtualisation software - Package manager (Homebrew)
  • 5. Built-in Apache and PHP - Good - It’s there already on the system - Only DB server needs to be added - Bad - Hardly customisable - Can’t do without sudoing - Can’t start fresh if things go wrong
  • 6. Built-in Apache and PHP You don’t want to sing this song at the end of the day if built-in binaries/config files become corrupted.
  • 7. AMP software bundles - Good - Easy to set up - Easy to reinstall / remove - Bad - Partly customisable - Lots of (usually) unwanted stuff
  • 8. Virtualisation software - Good - Fully customisable - Easy to reinstall / remove - Bad - Performance overhead
  • 9. Package manager - Good - Fully customisable - Easy to reinstall / remove - Full speed - Bad - Outdated packages - Package manager prone to major internal changes
  • 10. Homebrew lingo Formula A package definition file Tap A repository of Formulae More information can be found on Homebrew project website.
  • 11. Homebrew requirements - OS X 10.6 (10.7 is recommended) - Intel CPU is recommended - Command line tools for Xcode* * Install with xcode-select --install
  • 12. The Plan - HAMP - Install Homebrew - Install Apache 2.4 - Install MariaDB 10 - Install PHP 5.6 - Install Drush 7
  • 13. HAMP requirements Before setting up HAMP, these taps need to be added: - brew tap homebrew/apache - brew tap homebrew/homebrew-php
  • 14. Installing the software Run - brew install http24 - brew install mariadb - brew install php56 - brew install drush
  • 15. Configure the software Make changes to httpd.conf: - ServerName localhost:8080 - AllowOverride All - LoadModule php5_module [..]/libphp5.so - LoadModule rewrite_module [..]/ mod_rewrite.so - DirectoryIndex index.php - AddType application/x-httpd-php .php Secure MariaDB: - mysql_secure_installation
  • 16. Demo