Downgrade your Snow Leopard from PHP 5.3 to PHP 5.2.10 to be able to run CMSMS
Posted: Wed Sep 09, 2009 9:43 am
Can't use CMSMS on your Mac with Snow Leopard with it's funky PHP 5.3.0?
Can't wait for CMSMS 1.7 (which I hope will work on PHP 5.3.1?), then you may want to revert to PHP 5.2.10 on your Snowy Leopard?
If so, follow the instructions below, you can probably ignore the MySQL ones, if you have it already installed. One note for MySQL is if you are 32 bit then use a 32 bit version, if 64 then use that version. Failure to do so could cause lots of problems. If you don't know the answer, stop reading now!
OK seriously, I would not try this if unless you really know how to compile things properly. You are probably gonna have to trouble shoot these instructions, your install won't be the same as mine, you will have to edit make files etc. It can cause big problems if you mess up. So a complete system backup before installing might be a good idea.
You have been warned... you will get no support from me... having said that, with the exception of my few notes, it all seems to have worked just fine. I got the instructions from...
http://pixelchimp.net/blog/pixel-chimp/reverting-php-53-5210-snow-leopard
Only other things to note are that I had trouble downloading (with curl) both the Freetype and libmcrypt and downloaded then directly. Also the curl for GD doesn't work as it is now at version 'jpeg-7' so adjust the code accordingly...
And I also had to upgrade the PEAR package on my machine,
I got this from (http://diymacserver.com/installing-php/compiling-php-in-64-bits-mode-on-snow-leopard/), towards the bottom of the page, you should do this before compiling PHP!
I have it working, no real errors, although the log show that CMSMS is throwing up lots of deprecated type errors... like:
"PHP Deprecated: Assigning the return value of new by reference is deprecated.." or the even more lovely " Cannot modify header information - headers already sent by ...". I've left out the classes involved, just in case it might cause a security problem..
Time for an early lunch I think....
Can't wait for CMSMS 1.7 (which I hope will work on PHP 5.3.1?), then you may want to revert to PHP 5.2.10 on your Snowy Leopard?
If so, follow the instructions below, you can probably ignore the MySQL ones, if you have it already installed. One note for MySQL is if you are 32 bit then use a 32 bit version, if 64 then use that version. Failure to do so could cause lots of problems. If you don't know the answer, stop reading now!
OK seriously, I would not try this if unless you really know how to compile things properly. You are probably gonna have to trouble shoot these instructions, your install won't be the same as mine, you will have to edit make files etc. It can cause big problems if you mess up. So a complete system backup before installing might be a good idea.
You have been warned... you will get no support from me... having said that, with the exception of my few notes, it all seems to have worked just fine. I got the instructions from...
http://pixelchimp.net/blog/pixel-chimp/reverting-php-53-5210-snow-leopard
Only other things to note are that I had trouble downloading (with curl) both the Freetype and libmcrypt and downloaded then directly. Also the curl for GD doesn't work as it is now at version 'jpeg-7' so adjust the code accordingly...
And I also had to upgrade the PEAR package on my machine,
I got this from (http://diymacserver.com/installing-php/compiling-php-in-64-bits-mode-on-snow-leopard/), towards the bottom of the page, you should do this before compiling PHP!
I have it working, no real errors, although the log show that CMSMS is throwing up lots of deprecated type errors... like:
"PHP Deprecated: Assigning the return value of new by reference is deprecated.." or the even more lovely " Cannot modify header information - headers already sent by ...". I've left out the classes involved, just in case it might cause a security problem..
Time for an early lunch I think....