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
  • ИгрыИгры

Комментарии • 45

  • @RodrigoSotoCastro
    @RodrigoSotoCastro 6 дней назад

    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.

  • @AjanTurkey
    @AjanTurkey Год назад +1

    Nice & straight to the point, thanks

  • @Kaan_Solo
    @Kaan_Solo Год назад +2

    First time in my life i logged in only to give you a thumbs up:)

  • @fegarcia1983
    @fegarcia1983 Год назад

    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 😍

  • @user-xk6jy7dh6u
    @user-xk6jy7dh6u Год назад

    thank you!!! it solved my problem i worked for a week!

  • @barzijaf9369
    @barzijaf9369 Год назад +1

    Thank you very much!

  • @colinrdixon
    @colinrdixon Год назад

    saved the day! thank you

  • @cedric88160
    @cedric88160 Год назад

    Perfect thanks bro

  • @svfi
    @svfi Год назад

    Thank you

  • @chuksjr.1440
    @chuksjr.1440 Год назад +2

    Voila!

  • @jossuer7124
    @jossuer7124 Год назад

    thanks my bro

  • @sandaledemarche6849
    @sandaledemarche6849 Год назад

    To find your directory php-config --extension-dir, I you might have to dig a bit in the files

  • @HenrikStrindberg
    @HenrikStrindberg Год назад +4

    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 Год назад

      thanks, but now i have a problem with an access denied for user 'root'@'localhost', did you have this error too?

    • @HenrikStrindberg
      @HenrikStrindberg Год назад

      @@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  Год назад

      I have seen this issue. Try changing localhost to 127.0.0.1

  • @angelsnmen
    @angelsnmen Год назад

    Thanks

  • @jmcbade2960
    @jmcbade2960 Год назад

    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  Год назад

      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 Год назад

      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

  • @TheLucidway
    @TheLucidway Год назад

    Will this process work for an m1? Also, should I uninstall the previous version of php before install 8.1 with brew?

    • @codeadamca
      @codeadamca  Год назад

      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 Год назад

    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  Год назад

      This is a hard one to debug without seeing your files and MAMP setup! Sorry!

  • @fabiobasile561
    @fabiobasile561 Год назад +1

    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  Год назад

      This would be hard to debug without see your setup. However, Docker is a much better solution:
      ruclips.net/video/zWyggxV51oQ/видео.html

  • @SakuraHougetsu28
    @SakuraHougetsu28 11 месяцев назад

    how can i do these steps on windows using the mamp windows version

  • @akifbicek7015
    @akifbicek7015 5 месяцев назад

    how to do this for mampro

  • @Yonas20102
    @Yonas20102 Год назад

    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  Год назад

      I had the same issue, try this:
      gist.github.com/codeadamca/833b882560e27e22d25410954036c96e

  • @AndreaRiezzo
    @AndreaRiezzo Год назад

    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  Год назад

      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

  • @vinceforex_academy
    @vinceforex_academy Год назад

    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  Год назад

      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  Год назад +1

      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 Год назад

      @@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 Год назад

      @@viveksharma7329 I have the same error with php 8.1

  • @jossuer7124
    @jossuer7124 Год назад

    Phpmyadmin does not work

    • @codeadamca
      @codeadamca  Год назад

      Try updating PHPMyAdmin:
      gist.github.com/codeadamca/833b882560e27e22d25410954036c96e

  • @cirke1477
    @cirke1477 Год назад +3

    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  Год назад +1

      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 Год назад

      @@codeadamca where will they get it if they don't download it?