You are here

MacPorts

Error message

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in drupal_strip_dangerous_protocols() (line 1458 of /home2/crephoto/public_html/techblog/includes/common.inc).

After all these years (can't really remember when I first discovered it), I'm still using MacPorts. It's actually become more useful on my aging (obsolete?) MacBook Pro 2012, which is frozen in time running MacOS 10.15 Catalina. I'm now using macports to run both apache2 and php 7.4 on this development machine, and I sometimes forget how much I rely on it, even though it's such a PITA when upgrading the OS. In addition to php itself, I need to use macports to install libraries & dependencies as well. Here are those that I'm currently using. Hopefully this list will help when I (eventually) buy a new machine:

  • php74 +libedit
  • php74-apache2handler
  • php74-mysql
  • php74-curl
  • php74-exif: Image metadata
  • php74-intl: I forget what relies on this, but I think it went with mbstring
  • php74-mbstring
  • php74-openssl: Required by the fink link checker

To install any of these, use the following syntax:

$ sudo port install 
Tags: