Find php.ini on Apple Silicon installed with Homebrew

By Dillon Smart · · · 0 Comments

Are you having trouble finding your php.ini file which was installed locally with Homebrew? Packages installed with Homebrew can be installed in different locations making it hard to find, especially if you are on new Apple Mac running Apple’s Silicon chips.

Here, I will show you home to locate your locally installed php.ini file installed via Homebrew.

Where are Homebrew packages installed?

After looking around online for some time, you may have stumbled across Stack Overflow posts stating that the packages are installed within the /usr/local/opts directory. However, this isn’t always the case.

On MacOS on Apple Silicon chips, Homebrew packages can be found in the /opt/homebrew directory.

cd /opt/homebrew/Cellar

How to find php.ini location

One of the easiest ways to find your php.ini file is to runphp from the terminal, like so:

php -r "phpinfo();" | grep php.ini

This will output the exact location of yuour current PHP versions php.ini file.

Find your php.ini on MacOS

PHP

0 Comment

Was this helpful? Leave a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a custom WordPress taxonomy for posts and pages

Updated 16th August 2022

Sometimes when building a website using WordPress, the standard taxonomies Categories and Tags just aren’t enough, and you need to create more. Let’s learn how to create our own custom WordPress taxonomy. WordPress has made creating your own taxonomy easy, and you can even add your custom taxonomies to pages too. To accomplish this we

WSL vs Dual Boot speed test

Updated 16th August 2022

In this experiment, I will be using WSL2 running Ubuntu 20.04 and Ubuntu 20.04 dual-booted on the same Dell XPS. Is there a noticeable difference? Follow along for the results of the WSL vs Dual Boot speed test. If you are like me and use different development environments a lot, you may find the results

PHP 8.3 release and features

Updated 11th December 2023

The time of year is fast approaching for PHP developers around the world. We have a new PHP release knocking on the door. PHP 8.3 RC 1 is now available for testing, and with this release we are able to get a glimps at some of the highlight features coming later in the year. PHP