PHP

Mountain Lion progress

If you are dependent on any of the stuff that is documented here then please wait while I upgrade and test all the instructions for Mountain Lion. I will update this post regularly with my progress. Currently I’m upgrading my main desktop to see if this will affect the running setup. After that I will install a clean Mountain Lion machine for documenting the start from scratch.

First discovery after the upgrade is that all you config files in /etc are gone, so are our startup scripts in /System/Library/LaunchDeamons. This means that the config for Apache, php and MySQL are missing.

Got MySQL running by replacing the startup script. Apache ran again after restoring /etc/httpd from a backup but PHP needed recompiling.

Before upgrading make sure you make a copy of the file InstallESD.dmg from the Mountain Lion installer package. How to find it, read this. This because you need to get an optional installer package if you want to use GD. Mount the disk image and install the file from Packages called X11redirect.pkg

The MAMP stack is now done, tested and documented. Not many changes…

Mail part is now also documented!

PHP released 5.4.4

The PHP development team released 5.4.4 which is fixes a security problem with a weakness in the DES implementation of crypt and a heap overflow issue in the phar extension. I urge you to update if you are using it on a production platform. I’ve successfully tested it on my servers without a noticeable problem.

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

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

PHP released 5.4.3

The PHP development team first released 5.4.2 which had a security fix for CGI string parameters and shortly thereafter the released 5.4.3 which solved some other security problems with buffer overflows. I urge you to update it if you are using older versions on a production platform. I’ve successfully tested it on my servers without a noticeable problem.

  • Fixed bug #61807 Buffer Overflow in apache_request_headers, CVE-2012-2329.
  • Fixed bug #61910 Improve fix for PHP-CGI query string parameter vulnerability, CVE-2012-2311.
  • Fixed bug #61910 Fix PHP-CGI query string parameter vulnerability, CVE-2012-1823.

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

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

PHP released 5.4.1

The PHP development team released 5.4.1, it contains some security updates and I urge you to update it if you were using 5.4.0 on a production platform. I’ve successfully tested it on my servers without a noticeable problem.

  • Fixed bug #54374 (Insufficient validating of upload name leading to corrupted $_FILES indices). (CVE-2012-1172).
  • Add open_basedir checks to readline_write_history and readline_read_history.

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

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

PHP released 5.4.0

The PHP development team released 5.4.0, it is the next major milestone in the development of PHP. I’ve successfully tested it on my servers without a noticeable problem. First use this on a development machine, if you can wait for 5.4.1 before putting it on a production machine there might be some nasty bugs in it which haven’t been found.

Some of the key new features include (copied from the PHP website):
traits, a shortened array syntax, a built-in webserver for testing purposes and more. PHP 5.4.0 significantly improves performance, memory footprint and fixes over 100 bugs.

For users upgrading from PHP 5.3 there is a migration guide available here, detailing the changes between those releases and PHP 5.4.0.

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

« Previous PageNext Page »