Downgrade your Snow Leopard from PHP 5.3 to PHP 5.2.10 to be able to run CMSMS

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Downgrade your Snow Leopard from PHP 5.3 to PHP 5.2.10 to be able to run CMSMS

Post by Russ »

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....
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: Downgrade your Snow Leopard from PHP 5.3 to PHP 5.2.10 to be able to run CMSMS

Post by sjg »

You can also cheap out and do the easy thing, and install MAMP.

The free version doesn't have a GUI for virtual hosts, SSL, etc, but you can edit the httpd.conf files just like you could with a native install. It includes apachectl, etc.

I have a couple of dozen domain.machinename entries in my /etc/hosts and matching virtual hosts in the conf file, and it works beautifully.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
trikks

Re: Downgrade your Snow Leopard from PHP 5.3 to PHP 5.2.10 to be able to run CMS

Post by trikks »

I wouldn't recommend messing with the original PHP5 binaries. Instead install PHP5.2.x in a separate /opt or /sw (or alike) folder and link to those binaries instead.

Here is a guide using macports
http://trikks.wordpress.com/2009/10/07/ ... rd-server/
Post Reply

Return to “The Lounge”