![]() I also copied the conf folder inside the php8.1 folder, which for some reason was not in. I linked the specified directories, but the required version did not appear in the MAMP interface. My solution was: cd /Applications/MAMP/bin/php ln -s php8.1.23 ln -s modules Hi Aleksandr0114, I had the same problem. I changed line in /Applications/MAMP/conf/apache/nf to LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so and run mamp via command line opt/lib and it will not work from path /Applications/MAMP/bin/php/php8.2.9/ I started apachectl and got errors such as: httpd: Syntax error on line 160 of /Applications/MAMP/conf/apache/nf: Cannot load /Applications/MAMP/bin/php/php8.2.9/modules/libphp.so into server: dlopen(/Applications/MAMP/bin/php/php8.2.9/modules/libphp.so, 0x000A): Library not loaded: opened the libphp.so file and there are ways to library via /. I installed everything according to the instructions, but the Apache in MAMP doesn't want to run. Navigate to /Applications/MAMP/bin/php/php8.1.8 and paste the modules folder.Ĭhoose PHP 8.1.8 from the frop down and you should be good to go! Inside this folder is the PHP module file names libphp.so. Navigate to /usr/local/lib/httpd and copy the modules folder. Rename this folder to php8.1.8 (use your PHP version number). ![]() For me this was /Applications/MAMP/bin/php. ![]() Navigate to the folder that MAMP stores PHP versions. Using Finder, navigate to /usr/local/Cellar/php and you should find a folder named after the installed version of PHP. If you want to check your installed version of PHP, use the terminal and run the following command: php -versionįirst we need to copy the installed PHP files to MAMP. The version of PHP MAMP uses is often different than the version you have installed. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1. My version of MAMP came installed with PHP 7.4.21 and 8.0.8. ![]() If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |