Prabhu Prabhu - 2 months ago 12
PHP Question

Upgrading php in mamp breaks apache

I have

OSX Mavericks
, with
MAMP, apache2.2.27 and php5.2.17, php5.4.10
. Normally, I switch between these php versions and it works perfectly fine.

Now I downloaded
php5.4.34
from MAMP site and extracted to
/Applications/MAMP/bin/php/php5.4.34
directory. It has similar structures to other php versions. I also changed the name of another php version to
_php5.4.10
. MAMP now presents
php5.4.34
in select options.

Now, it works fine with
php5.2.17
. But my Problem is when I try to change this to
php5.4.34
, apache wont start and generates SIGTERM error.

[notice] caught SIGTERM, shutting down


Following line is added automatically by MAMP to
httpd.conf
, which I presume is fine.

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


I cannot find missing link for this.

Answer

I had the same problem. I tried deleting the previous php versions that you don't need and install fresh version of PHP. The problem was solved. It might be because it is trying to access renamed php installation by old name.

Comments