PHP

PHP released 5.3.8

The PHP development team just released 5.3.8. It’s an important bug fix release that solves two new bugs that were introduced in 5.3.7:

  • Fixed bug #55439 (crypt() returns only the salt for MD5)
  • Reverted a change in timeout handling restoring PHP 5.3.6 behavior, which caused mysqlnd SSL connections to hang (Bug #55283).

My advise is to upgrade as soon as possible. I haven’t found any problem with this version and I installed it on most of my test and production servers.

To see the buglist solved in this release, read them in the ChangeLog.

For instructions on how to upgrade PHP please read: Upgrading PHP.

PHP released 5.3.7

The PHP development team just released 5.3.7. I haven’t found any problem with this version and I installed it on most of my test and production servers. I would advise you to upgrade as this version solves some security issues.

There are a lot of bugs solved in this release, you can read all about them in the ChangeLog.

For instructions on how to upgrade PHP please read: Upgrading PHP.

Problems after upgrading to Lion

After getting the MAMP stuff out of the way for Lion on my freshly installed VMware based virtual Mac it was time to upgrade my iMac (which I use as my main computer). It all went without any complications (also the blogosphere is quite silent on upgrading woes). First thing I noticed was that my local websites weren’t running and after some examination I found that none of my stuff was working. All the configuration and setup had been removed for MAMP and the mail-server.

So I started recompiling after solving problems with upgrading my version of Xcode. The installer asks you to stop iTunes but it forgets there is an iTunes Helper process still running and you have to quit it manually (e.g. using the Activity Monitor) before it finishes installing.

Everything went all right until I ran into compilation problems with PHP. Which was strange as everything went great on the fresh install of Lion. The error I encountered was:

/Users/richard/DIYMacServer/php-5.3.6/main/spprintf.c:186: error: static declaration of ‘strnlen’ follows non-static declaration
/usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here
make: *** [main/spprintf.lo] Error 1

This is even a bug reported at PHP. To me it looked like there was some leftovers from the upgrade and I decided to wipe all the development stuff and install Xcode fresh. To do that you need to type in the following command:

sudo /Developer/Library/uninstall-devtools --mode=all

This will run for a while, when done re-install Xcode 4.1 and reboot. When your Mac is up and running again re-compile everything again and then it will work again. I’ve got my sites back in running mode again. Tomorrow I’ll start on getting my test mail server up and running again.

This proves again that a fresh install of the OS is much better then an upgrade to get rid of all the unwanted stuff.

First documentation set for Lion

Alright here is the first result of adapting the instructions to Mac OS X 10.7 aka Lion. First some remarks, to get the quickest results I decided to first do everything in a virtual machine as I wanted to take the time to upgrade my desktop. It was remarkably easy to install Lion as a virtual OS using VMWare. First I tried with Virtualbox which works with Snow Leopard but that didn’t work for Lion. So I tried with the current beta of VMWare Fusion which I am currently testing and that one went without any problem. Just do a “Show Package Contents” of “Install Mac OS X Lion” and copy the file “InstallESD.dmg”. Create a new virtual machine and point it to this DMG file for installing and it will install like a regular Mac. If anyone has a regular version of VMWare Fusion 3.1.x can you verify that this works?

Next step was getting XCode on the machine for which I had to use the “App Store” but luckily XCode is again free! Everything installed I was ready to go. One of the things I noticed is that I can install everything in 64 bits without needing to explicitly specifying it which we had to do on Snow Leopard. Also note that there is no more 32 bits on Lion! This is why it won’t run on some of the older Intel Macs.

So if you’ve already upgraded your Mac to Lion or just have bought a new one and need to install MAMP, that part is no finished. Next step is me taking the time to upgrade my desktop and then attack the mail-server documentation.

http://diymacserver.com/lion/

Update: Just got this in my RSS reader, VMWare 3.1.3 does not support Lion as a guest. The current Beta does so I guess you have to wait till 3.1.4 or join the beta program!

Also found that PostgresSQL 9.0.4 is installed with OS X Lion! There is documentation in /Library/Webserver/Documents and the psql command is available. Let’s see what we can find out more…

Found this in the official Apple documentation What is new in Mac OS X 10.7

Beginning in Mac OS X v10.7, Mac OS X Server ships with PostgreSQL instead of MySQL as its database server. If you are using other software that requires MySQL, you must install it yourself.

PHP released 5.3.6

The PHP development team just released 5.3.6. I haven’t found any problem with this version and I installed it on most of my test servers.

There are a lot of bugs solved in this release, you can read all about them in the ChangeLog.

For instructions on how to upgrade PHP please read: Upgrading PHP.

« Previous PageNext Page »