Adding New Versions of PHP to MAMP

  Рет қаралды 15,269

Adam Thomas

Adam Thomas

Күн бұрын

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.co...
PHP: www.php.net/
MAMP: www.mamp.info/
---
Website: codeadam.ca/
Twitter: / codeadamca
Instagram: / codeadamca
GitHub: github.com/cod...

Пікірлер: 44
@Kaan_Solo
@Kaan_Solo 2 жыл бұрын
First time in my life i logged in only to give you a thumbs up:)
@RodrigoSotoCastro
@RodrigoSotoCastro 7 ай бұрын
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.
@fegarcia1983
@fegarcia1983 2 жыл бұрын
I was looking for this solution everywere. This is the first that works!!! Thanks, yore greate!!!!
@lokesh1pawar
@lokesh1pawar 2 жыл бұрын
BANG !!!!! Got exactly what i wanted 😍
@AjanTurkey
@AjanTurkey 2 жыл бұрын
Nice & straight to the point, thanks
@HenrikStrindberg
@HenrikStrindberg 2 жыл бұрын
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/
@alexonwax558
@alexonwax558 2 жыл бұрын
thanks, but now i have a problem with an access denied for user 'root'@'localhost', did you have this error too?
@HenrikStrindberg
@HenrikStrindberg 2 жыл бұрын
@@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.)
@codeadamca
@codeadamca 2 жыл бұрын
I have seen this issue. Try changing localhost to 127.0.0.1
@svfi
@svfi 2 жыл бұрын
Thank you
@周瑄嫀
@周瑄嫀 2 жыл бұрын
thank you!!! it solved my problem i worked for a week!
@chuksjr.1440
@chuksjr.1440 2 жыл бұрын
Voila!
@SakuraHougetsu28
@SakuraHougetsu28 Жыл бұрын
how can i do these steps on windows using the mamp windows version
@fabiobasile561
@fabiobasile561 2 жыл бұрын
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.
@codeadamca
@codeadamca 2 жыл бұрын
This would be hard to debug without see your setup. However, Docker is a much better solution: kzbin.info/www/bejne/sIjcmJqui5pkpbM
@sandaledemarche6849
@sandaledemarche6849 2 жыл бұрын
To find your directory php-config --extension-dir, I you might have to dig a bit in the files
@colinrdixon
@colinrdixon 2 жыл бұрын
saved the day! thank you
@jmcbade2960
@jmcbade2960 2 жыл бұрын
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.
@codeadamca
@codeadamca 2 жыл бұрын
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.
@plusz2
@plusz2 2 жыл бұрын
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
@cedric88160
@cedric88160 2 жыл бұрын
Perfect thanks bro
@jossuer7124
@jossuer7124 2 жыл бұрын
thanks my bro
@Yonas2000
@Yonas2000 2 жыл бұрын
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
@codeadamca
@codeadamca 2 жыл бұрын
I had the same issue, try this: gist.github.com/codeadamca/833b882560e27e22d25410954036c96e
@akifbicek7015
@akifbicek7015 Жыл бұрын
how to do this for mampro
@HologramJay
@HologramJay 2 жыл бұрын
Will this process work for an m1? Also, should I uninstall the previous version of php before install 8.1 with brew?
@codeadamca
@codeadamca 2 жыл бұрын
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).
@linhang3942
@linhang3942 2 жыл бұрын
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!
@codeadamca
@codeadamca 2 жыл бұрын
This is a hard one to debug without seeing your files and MAMP setup! Sorry!
@angelsnmen
@angelsnmen 2 жыл бұрын
Thanks
@realEsDev
@realEsDev 2 жыл бұрын
Thanks a lot man for sharing this... you've got a sub. But it generated a phpmyadmin issue, Any idea to fix it... thanks
@codeadamca
@codeadamca 2 жыл бұрын
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.
@codeadamca
@codeadamca 2 жыл бұрын
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
@viveksharma7329
@viveksharma7329 2 жыл бұрын
@@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
@Squareddit
@Squareddit 2 жыл бұрын
@@viveksharma7329 I have the same error with php 8.1
@AndreaRiezzo
@AndreaRiezzo 2 жыл бұрын
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 :(
@codeadamca
@codeadamca 2 жыл бұрын
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: kzbin.info/www/bejne/sIjcmJqui5pkpbM
@jossuer7124
@jossuer7124 2 жыл бұрын
Phpmyadmin does not work
@codeadamca
@codeadamca 2 жыл бұрын
Try updating PHPMyAdmin: gist.github.com/codeadamca/833b882560e27e22d25410954036c96e
@cirke1477
@cirke1477 2 жыл бұрын
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
@codeadamca
@codeadamca 2 жыл бұрын
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
@vetaldobreff
@vetaldobreff 2 жыл бұрын
@@codeadamca where will they get it if they don't download it?
Setting up a LAMP Stack from Scratch using Docker
28:24
Adam Thomas
Рет қаралды 29 М.
Using Composer to Manage PHP Packages and Dependencies
10:24
Adam Thomas
Рет қаралды 23 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
MAMP Change PHP Version
8:15
Test Step
Рет қаралды 3,9 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 744 М.
Installing GrapheneOS the Easy Way
10:03
Mental Outlaw
Рет қаралды 246 М.
Setting up a New Laravel Application and phpMyAdmin using Docker
9:11
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН