I try to find and install an older version, apparently the archived version isn’t old enough. I have a second mac mini, new but identical 2nd machine, fresh MacOS, lastest MacOS on both: Mamp pro installed on both, neither will let me choose anything as root dir except from Users dir.Īlso, I have seen the message dialogue presented by Mamp saying: “Older versions would let you use … folders. Library … even though it has retained it as path to my root dir. If I create a new host on the original machine…it also will no longer let me in. When I first setup MAMP over a year ago on an identical mac mini, it would let me select harddrive/Library/… ![]() How do I check this… I do not know what they should be… and how do I fix it? When I navigate to to my hd and select Library (trying to go from there to Webserver, where I normally would put the site) it’s not accessible by MAMP, only USERS dir is accessible (readable). 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 /. Please check your requiements before you buy MAMP Pro 5. htaccess uses directive only available from Apache v 2.4 onward. In my case that prevents me to work on latest development projects where. When MAMP PRO is started for the first time, any existing MySQL databases are copied from MAMP to MAMP PRO and the contents of the directory /Applications/MAMP. I installed everything according to the instructions, but the Apache in MAMP doesn't want to run. Currently MAMP (PRO) 5 only offers to run Apache version 2.2.x and NOT Apache v 2.4+. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |