PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, March 16, 2022

[FIXED] Specify PHP version in MAMP

 March 16, 2022     apache, mamp, php     No comments   

Issue

Using Mamp 3.3, the conf/apache/httpd.conf file has the following line to specify PHP:

LoadModule php5_module /Applications/MAMP/bin/php/php5.6.10/modules/libphp5.so

When I update the line to a different version of PHP e.g.

LoadModule php5_module /Applications/MAMP/bin/php/php5.4.29/modules/libphp5.so

As soon as I restart MAMP it automatically resets it back to 5.6.10. Is there a way to force a PHP version?


Solution

Found a solution for this in MAMP forums. Just rename PHP versions not required. For example after renaming the following, they are not shown in the preferences:

/Applications/MAMP/bin/php/X_php5.6.10
/Applications/MAMP/bin/php/X_php5.4.42


Answered By - xylar
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing