Loaded Configuration File: /Applications/MAMP/bin/php/php7.3.27/conf/php.ini $ php -ini | grep "Loaded Configuration File" Applications/MAMP/bin/php/php7.3.27/bin/php This is the output of the commands you've asked. Which is quite interesting if you look at this img Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so: mach-o, but wrong architecture), /Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so.so (dlopen(/Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so.so, 9): image not found)) in Unknown on line 0 Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so: mach-o, but wrong architecture ![]() ![]() PHP Warning: PHP Startup: Unable to load dynamic library 'gmp.so' (tried: /Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so (dlopen(/Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/gmp.so, 9): no suitable image found. Restarted MAMP and nothing new on phpinfo() Īs per Hakre request i've run the following command into cli and this is the result: $ php -n -d extension=gmp.so -i I added extension=gmp.so to php.ini via MAMP interface, file, edit template -> php -> php7.3.27. Shtool:install:Warning: source and destination are the same - skipped Installing header files: /Applications/MAMP/bin/php/php7.3.27/include/php/ Output of make install is: Installing shared extensions: /Applications/MAMP/bin/php/php7.3.27/lib/php/extensions/no-debug-non-zts-20180731/ configure -with-php-config=/Applications/MAMP/bin/php/php7.3.27/bin/php-config, make and make install. Applications/MAMP/bin/php/php7.3.27/include/php/ext, launched /Applications/MAMP/bin/php/php7.3.27/bin/phpize. I updated MAMP PRO and it installed PHP version 7.3.27 so i went all over it again, download php from source, copied ext/gmp into MacOs version: 11.4 Big Sur on iMac 24' M1.What am I missing? Obviously, I restarted MAMP PRO like a dozen times, even my mac itself. I'm kinda confused atm and can't think about anything else. Neither my cli or my phpinfo() shows GMP enabled. I even tried to specify the full path, but still no luck. So i went to my cli php.ini file and my web php.ini file and manually added extension=gmp.so (the file exist in this path /Applications/MAMP/bin/php/php7.3.24/include/php/ext/gmp/modules/gmp.so). No errors, all seems fine but if i look at this point to my cli php -m (or php -i) there's no gmp extension loaded. configure -with-php-config=/Applications/MAMP/bin/php/php7.3.24/bin/php-config Copied Gmp directory to /Applications/MAMP/bin/php/php7.3.24/include/php/ext.Downloaded PHP (i'm using version 7.3.24) from source.Downloaded gmp with brew using brew install autoconf gmp.You can change your Windows Firewall permissions later if necessary.I've looked around several other questions like this one, guide like this or this but I still had no luck. You can “Allow access” to private networks and public networks depending on your implementation needs. This is standard firewall behavior for Windows applications running as servers. You may receive a warning from Windows Defender while installing MAMP PRO. If you choose not to install Apple Bonjour, you will not be able to access your hosts from the MAMP Viewer. Changing User Account Control (UAC), Windows Defender, and Work Privileges settings is not a recommended way to maintain system security.īy default, MAMP/MAMP PRO is installed in your C:\MAMP and C:\MAMP PRO folders.īy default, Apple Bonjour is installed when you install MAMP PRO. ![]() These cannot be granted by the Windows security concept if MAMP and MAMP PRO have been installed in the Program Files, Windows, User or other system folder. We strongly advise against installing MAMP and MAMP PRO in a system folder, because the MAMP servers (Apache, MySQL, Nginx) require write permissions for the “log”, “configuration”, “htdocs” and “databases” folders. For simplicity, we recommend installing in the default directory (C:\MAMP). MAMP and MAMP PRO can be installed on any standard Windows drive such as C:, D:, E:, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |