Skip to content
Advertisement

Mac CLI PHP ini file location

I am using OSX Catalina and am trying to increase the memory limit for PHP – no matter where I look I cannot find the right PHP ini file to change this.

JavaScript

When I go to /etc I see:

JavaScript

so it looks like there is no php.ini file to be able to change the memory limit but I assume there has to be so how do I find it?

Advertisement

Answer

You should find it in /private/etc if it exists, otherwise you have to make one of the defaults the file you wish to use:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement