The brew command downloads ImageMagick and many of its delegate libraries (e.g. JPEG, PNG, Freetype, etc.) and configures, builds, and installs ImageMagick automagically. Alternatively, you can download the ImageMagick Mac OS X distribution we provide. Oct 16, 2014.
Current Stable PHP 7.4.10 (Changelog)
- php-7.4.10.tar.bz2(sig) [12,447Kb] 03 Sep 2020e90bfc9ed98d24e53b51ffd4eb636cf5cd9d71ed7c6f8e4b6e9981e9882174e7
- php-7.4.10.tar.gz(sig) [16,148Kb] 03 Sep 2020e720f1286f895ca37f1c75a2ca338ad2f2456664d7097298167181b25b212feb
- php-7.4.10.tar.xz(sig) [10,057Kb] 03 Sep 2020c2d90b00b14284588a787b100dee54c2400e7db995b457864d66f00ad64fb010
Old Stable PHP 7.3.22 (Changelog)
- php-7.3.22.tar.bz2(sig) [14,774Kb] 03 Sep 2020c790b8172520b2ff773d6cf80774ea0a678a2f16e8ee6b11d68802094448689e
- php-7.3.22.tar.gz(sig) [19,208Kb] 03 Sep 2020759426cb4054e3f23316c39710faff0bb8063fd0ea50fc2c5efa590429af1a22
- php-7.3.22.tar.xz(sig) [11,850Kb] 03 Sep 20200e66606d3bdab5c2ae3f778136bfe8788e574913a3d8138695e54d98562f1fb5
Old Stable PHP 7.2.33 (Changelog)
- php-7.2.33.tar.bz2(sig) [14,877Kb] 06 Aug 202003dda3a3a0c8befc9b381bc9cf4638d13862783fc7b8aef43fdd4431ab85854d
- php-7.2.33.tar.gz(sig) [19,471Kb] 06 Aug 202097bb6b88ddfa44f36c4fc84a1a718faef476f61b532d26ea29e3e9f6cd79d839
- php-7.2.33.tar.xz(sig) [12,022Kb] 06 Aug 20200f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a
GPG Keys
The releases are tagged and signed in the PHP Git Repository.The following official GnuPG keys of the current PHP Release Manager can be usedto verify the tags:
PHP 7.4
PHP 7.3
PHP 7.2
Supported Versions Check the supported versions page for more information on the support lifetime of each version of PHP.
Table of Contents
This section contains notes and hints specific to installing PHP on macOS. PHP is bundled with Macs, and compiling is similar to the Unix installation guide.
chris at spookee dot de ¶![5.5 5.5](/uploads/1/2/6/6/126682186/172285629.png)
5 years ago
There is a 'One Line Installation' tool to use PHP 5.6/5.5/5.4/5.3 for
OS X 10.6/10.7/10.8/10.9/10.10 with the build-in Apache with lots of extensions included:
http://php-osx.liip.ch
I hope posting this link is allowed, because it helped me a lot to get the latest PHP-Version running...
Included extensions:
bcmath bz2 calendar Core ctype curl date dom dtrace ereg exif fileinfo filter ftp gd gettext hash iconv imap intl json ldap libxml mbstring mcrypt memcache memcached mhash mongo mssql mysql mysqli mysqlnd OAuth odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session shmop SimpleXML soap sockets solr SPL SQLite sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xdebug xhprof xml xmlreader xmlrpc xmlwriter xsl zip zlib Xdebug
available but disabled by default: apc, xslcache, twig, uploadprogress
6 years ago
I found good gist how to install PHP 5.4 and 5.3 side by side on Max OSX via MacPorts. I suppose, it is applicable for PHP 5.5 too.
https://gist.github.com/raphaelstolt/2721719
5 years ago
For those using Homebrew, Justin Hileman maintains a blog post entitled '(Re)installing PHP on Mac OS X', which documents how to build PHP and extensions: http://justinhileman.info/article/reinstalling-php-on-mac-os-x/
![Mac Mac](/uploads/1/2/6/6/126682186/632829475.jpg)
14 years ago
Just a note. The darwinports software is now macports and you can get it at: http://www.macports.org/
If you use macports, be sure to change any refernces you may have in your calling scripts to macports as the file macports now gets installed.
Download Php 5.5 For Mac
13 years ago
My httpd.conf had some of the lines, but not all of them -- mine was missing the LoadModule and AddModule lines for php. I'm not sure why -- I don't delete any of those; I just comment them out if I'm not using them. Plus, the note above put a space in 'LoadModule'; it has no space. I didn't know about the 'apachectl graceful' trick, though -- since 'httpd -k restart' stopped working (probably around 10.2), I had just been doing it manually -- find the process, kill it, and hit httpd again -- thanks for the tip!
So for those who are missing any of the lines, here are the full lines.
In the section with all the other LoadModules:
LoadModule php4_module libexec/httpd/libphp4.so</div>
Directly below that section should be the AddModules; you need:
AddModule mod_php4.c
And then the AddType lines should be right after the language priorities (so after the AddCharset lines and after the LanguagePriority bit):
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Then restart apache/httpd as described above, and hopefully you should be good.
BTW, the actual module should be at:
/usr/libexec/httpd/libphp4.so
So if things fail, you can check to see if that's there.
Thanks to others who posted here; it definitely helped and got me on the right track. I just had to find the module manually to write my own LoadModule line.
Download Php 5.3
andreas at fink dot org ¶16 years ago
Php 5.6 Windows Download
To build on MacOS X 10.3.5 set the environment variable CFLAGS in the following way (depending on your shell)
setenv CFLAGS '-DBIND_8_COMPAT=1 -DEAPI -O3'
export CFLAGS='-DBIND_8_COMPAT=1 -DEAPI -O3'
Then launch configure with the options:
./configure --prefix=/usr --mandir=/usr/share/man ....
The -DBIND_8_COMPAT=1 gets you over a problem in the DNS files because MacOS X has definitions for Bind9 and PHP expects Bind8 definitions. -DEAPI is needed if you build it for Apache 1.3.31. -O3 enables the gcc optimizer.
You can also add one of the following lines to your CFLAGS depending on the CPU you use to further improve speed:
-mcpu=G3 -mtune=G3
-mcpu=G4 -mtune=G4
-mcpu=G5 -mtune=G5
Download Php For Mac
- Installation and Configuration