AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Xampp install memcache php7 mac7/27/2023 ![]() ![]() ![]() If you have the older PHP formulas from an older Homebrew installation, you may wish to remove these: rm -rf $(brew -cellar)/php Restart Apache Removing Older Homebrew PHP version (optional) LoadModule php_module /usr/local/opt/ /lib/httpd/modules/libphp.so One extra step is needed for PHP 8 and macOS bundled Apache: sudo nano /etc/apache2/nfĪdd the new PHP 8 and comment out the old one. #LoadModule php_module /usr/local/opt/ /lib/httpd/modules/libphp.so LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so #LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so You could download all the versions and just uncomment the one you want if you intend to swap around (change path prefix depending on Chip used – see above: #LoadModule php5_module /usr/local/opt/ /lib/httpd/modules/libphp5.so sudo nano /etc/apache2/nfįind the ‘Loadmodule’ lines and new PHP version path: Intel Chip LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so Apple Chip LoadModule php7_module /opt/homebrew/opt/ /lib/httpd/modules/libphp7.so ( As an alternative to Code Signing and using Apples in-built Apache, you may want instead to use both Apache and PHP from Homebrew and set up the User Sites folder).Īfter code signing PHP follow the below to complete loading the PHP module with Apples Apache. This guide will help you with Code Signing. If you are using macOS in built shipped Apache, you can use the PHP but it needs to be Code Signed, before Monterey this practice was optional but now it is mandatory. ![]() then unlink and link in the new PHP version by issuing a command like below but with your correct version: brew unlink php
0 Comments
Read More
Leave a Reply. |