SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
Helgi Þormar Þorbjörnsson
 
Diva23
Diva23Diva23
Diva23
diva23
 
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
Helgi Þormar Þorbjörnsson
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
csukxnr
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
mohamedmoharam
 
HAProxy tech talk
HAProxy tech talkHAProxy tech talk
HAProxy tech talk
icebourg
 

Tendances (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
 

En vedette

OBE Social Media brent copy
OBE Social Media brent copyOBE Social Media brent copy
OBE Social Media brent copy
Brent Seeley
 
Gem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TORGem Reyes_Red Ribbon.Diploma TOR
Gem Reyes_Red Ribbon.Diploma TOR
Gemma Reyes
 
Scanned Documents
Scanned DocumentsScanned Documents
Scanned Documents
Gemma Reyes
 

En vedette (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
 

Similaire à Making own AMP stack with Homebrew on a Mac

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
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
franbow
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
tutorialsruby
 
Updating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_ServerUpdating_PHP_on_OS_X_Server
Updating_PHP_on_OS_X_Server
tutorialsruby
 
<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
 
Drupal development environment
Drupal development environmentDrupal development environment
Drupal development environment
Rachit Gupta
 

Similaire à 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
 
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" />
 
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
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

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