Adding New Versions of PHP to MAMP
HTML-код
- Опубликовано: 18 июл 2022
- In this video we add a new version of PHP to MAMP.
At the tie of this video MAMP comes installed with 7.4.21 and 8.0.8. I needed to install PHP 8.1.8. This is possible by using the files from the version of PHP installed on your computer.
This tutorial uses a Mac, but a similar logic may work for a PC.
Full Tutorial: gist.github.com/codeadamca/09...
PHP: www.php.net/
MAMP: www.mamp.info/
---
Website: codeadam.ca/
Twitter: / codeadamca
Instagram: / codeadamca
GitHub: github.com/codeadamca Игры
Nice video. Also nice to know the free version of MAMP only display the last version from php 7 and 8. I downloaded the Pro version of Mamp using the free trial which by default includes a lot of php versions but the free version only let you choose between two. So all that I had to do was delete o rename the last version of php (as I needed the 8.1 not the 8.2) and it works perfectly. So thank you very much.
Nice & straight to the point, thanks
First time in my life i logged in only to give you a thumbs up:)
I was looking for this solution everywere. This is the first that works!!! Thanks, yore greate!!!!
BANG !!!!! Got exactly what i wanted 😍
thank you!!! it solved my problem i worked for a week!
Thank you very much!
saved the day! thank you
Perfect thanks bro
Thank you
Voila!
thanks my bro
To find your directory php-config --extension-dir, I you might have to dig a bit in the files
Many thanks! Running OSX Ventura 13 on a M1 Mac I found the directories to be /opt/homebrew/cellar/php/
and for the module: /opt/homebrew/Cellar/php/8.1.13/lib/modules/
thanks, but now i have a problem with an access denied for user 'root'@'localhost', did you have this error too?
@@alexonwax558 No I didn't have any error. (I used the Finder to navigate to the folders and copy the the stuff. cmd + shift + . to show invisible files, move to the root of my Mac and so on.)
I have seen this issue. Try changing localhost to 127.0.0.1
Thanks
In MAMP, uder the PHP section there is a little "+" symbol nect to the dropdown for the default PHP version. Click that and add the PHP version yu want to use.
I believe that this is only fo the MAMP PRO version. This video is for adding a new PHP version to the free version of MAMP.
On a side note, I would highly recommend Docker over any version of MAMP.
yes, but in MAMP PRO 6.4.1 you can't select above 8.0.8 - and solution from this video doesn't work yet. I'm figuring out how to make upgrade to 8.2.1
Will this process work for an m1? Also, should I uninstall the previous version of php before install 8.1 with brew?
I don't think the processor will have any effect on this process, as long as you place everything in the right directory. And I believe when you install PHP 8.1 with Brew it will replace the previous version (not 100% sure).
Hi Adam, in my case, php version is 8.1.11
In folder : usr/local/lib/modules/libphp7.so instead of libphp.so
When I start server, it gives error 'Apache couldn't be started. Please check your MAMP installation and configuration.'.
Please guide me in this case how to start server with php 8.1.11.
Thank you!
This is a hard one to debug without seeing your files and MAMP setup! Sorry!
Hello, I'm using the PHP version 8.1.9. I followed all your steps but I always end up to have the same error: "Apache couldn't be started. Please check your MAMP installation and configuration. "!!...Do you know why? Can you help me please?..thanks a lot.
This would be hard to debug without see your setup. However, Docker is a much better solution:
ruclips.net/video/zWyggxV51oQ/видео.html
how can i do these steps on windows using the mamp windows version
how to do this for mampro
After updating php in mamp I have now problem with phpmyadmin no working , I check the file config.inc.php was correct. Please help . Thank you
I had the same issue, try this:
gist.github.com/codeadamca/833b882560e27e22d25410954036c96e
Thank you for the video but you did not specify that it must be MAMP 6
Maybe it's my limitation, the procedure is not applicable to MAMP 5 :(
I'm actually not sure which versions this would work for or not, never occurred to me. Something similar might work!
On a side note, Docker is a much better overall solution than MAMP:
ruclips.net/video/zWyggxV51oQ/видео.html
Thanks a lot man for sharing this... you've got a sub. But it generated a phpmyadmin issue, Any idea to fix it... thanks
Can you tell me what the error is? And can you tell me what version of phpMyAdmin you are using? The version is displayed in the main page of phpMyadmin, the same page as the database list.
I think I may have had the same issue,. To fix it, I upgraded my version of phpMyAdmin. Here are some instructions:
gist.github.com/codeadamca/833b882560e27e22d25410954036c96e
@@codeadamca Did it worked for you with php8.1 on MAMP. I tried but still I am getting this error on frontend
`phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.` when trying to access mysql
@@viveksharma7329 I have the same error with php 8.1
Phpmyadmin does not work
Try updating PHPMyAdmin:
gist.github.com/codeadamca/833b882560e27e22d25410954036c96e
There is nothing in my user local cellar , where did you find the installed 8.1.8 ? Sorry but your video is totally useless if you don’t say where to get the current 8.1.9 version
Your PHP files may be in a different location depending on your system and how you installed PHP. This video assumes you are using a Mac and used Brew to install PHP. Mine were located at /usr/local/Cellar/php. There are step by step instructions available here as well:
gist.github.com/codeadamca/09efb674f54172cbee887f04f700fe7c
@@codeadamca where will they get it if they don't download it?