MAMP - PHP Version - 5.4.4 causing a lot of problems

spessex's picture

Hi everyone

Just thought I'd make a quick post for any fellow newbies out there just incase they're experiencing any similar problems.

I've recently got a new mac and downloaded the latest MAMP 2.1.1 do get kick started for all my Drupal development. Generally everything was okay when transferring D7 sites across from the old machine (MAMP 2.0.5) to the new machine running the new MAMP (2.1.1) but then I started hitting a lot of problems when delving into my sites. This is included frequent and various Drupal errors and most recently white screens of death on certain Drupal views that had previously been unproblematic on the old system. Anyway to cut a long story short (and many hours wasted) I've realised that MAMP 2.1.1, using version 5.4.4. is the problem and after going into the PHP preferences and changing it to 5.2.17 everything's working as it should.

I'm sure to the knowledgable people out there that this might be a pretty obvious post but I just thought I should mention it just incase.

Ste

Comments

From previous experience I

philipnorton42's picture

From previous experience I would say that MAMP is the cause of your problems, although it depends on what sort of errors you were getting.

Can you tell that I'm not a fan of MAMP? :)

https://github.com/josegonzal

If you are on D7 then you

cam8001's picture

If you are on D7 then you should switch to PHP 5.3.x. The errors you encountered were maybe related to your memory limit being set too low - try changing it in your php.ini if you're still seeing issues.

Also check on error reporting

ehowland's picture

I would +1 increasing the memory limit - especially for the white screen of death.

Perhaps it goes without saying, but also check on php error reporting.

In the php.ini file look for/set

display_errors = on
error_reporting = E_ALL

Change PHP version in MAMP

Malloc's picture

Hi all, hi @spessex

How to change the php version in MAMP, I tried to change it inot httpd file but every time I restart MAMP it get back to old value.

I am running MAMP 2.0

Thanx in advance.

Known issue

Sam Moore's picture

@Malloc - This is a known issue w/ MAMP - see the forums here:
http://forum.mamp.info/viewtopic.php?f=2&t=77594

Basically you need to hide the unwanted versions in MAMP/bin (one poster suggests renaming those folders).

5.4 is too new, stick to 5.3

dgtlmoon's picture

5.4 is too new, stick to 5.3 unless you have a really good reason!

You can also just start

wodenx's picture

You can also just start apache and mysql from the command line (using the scripts that are included in the .../mamp/bin directory) and bypass the app altogether. Then any changes you make to httpd.conf are sure not to be reset.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: