<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MacOS on Ivan Villareal</title><link>https://ivanvillareal.com/categories/macos/</link><description>Recent content in MacOS on Ivan Villareal</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 31 Jan 2020 12:21:51 -0800</lastBuildDate><atom:link href="https://ivanvillareal.com/categories/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>LAMP in MacOS with macports</title><link>https://ivanvillareal.com/2020-01-21-lamp-in-macos-with-macports/</link><pubDate>Fri, 31 Jan 2020 12:21:51 -0800</pubDate><guid>https://ivanvillareal.com/2020-01-21-lamp-in-macos-with-macports/</guid><description>Using Macports is easy to setup a MAMP environment with all the custom PHP extensions you may need.
This is what I did to have a dev environment, running on MacOS Catalina:
Install apache and php
❯ sudo port install php74 php74-xdebug php74-apache2handler php74-mysql php74-sqlite php74-mcrypt php74-mbstring php74-openssl Activate mod_php
❯ cd /opt/local/lib/apache2/modules ❯ sudo /opt/local/bin/apxs -a -e -n php7 mod_php74.so Activate mod_rewrite
LoadModule rewrite_module lib/apache2/modules/mod_rewrite.so Set a default php.</description></item></channel></rss>