Skip to content

Instantly share code, notes, and snippets.

@WahidinAji
Created January 8, 2025 07:28
Show Gist options
  • Save WahidinAji/e1daeb95e2d7ec4adf319c8f631a5ef5 to your computer and use it in GitHub Desktop.
Save WahidinAji/e1daeb95e2d7ec4adf319c8f631a5ef5 to your computer and use it in GitHub Desktop.
php .ini location in macbook arm
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
/opt/homebrew/etc/php/8.4/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment