How To Download Php 7 On Mac

The -DBIND8COMPAT=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.

macOS Update: While these instructions still work, there are new posts for recent versions of macOS, the latest being Install Apache, PHP, and MySQL on macOS Mojave.

PHP Update: Mac OS X El Capitan comes pre-installed with PHP version 5.5 which has reached its end of life. After you complete this post, you should upgrade PHP on Mac OS X.

Note: This post is for new installations. If you have installed Apache, PHP, and MySQL for Mac OS X Yosemite, read my post on Updating Apache, PHP, and MySQL for Mac OS X El Capitan.

Download php 7.4

Mac Os Install Php

Mac OS X runs atop UNIX. So most UNIX software installs easily on Mac OS X. Furthermore, Apache and PHP come packaged with Mac OS X. To create a local web server, all you need to do is configure Apache and install MySQL.

I am aware of the web server software available for Mac OS X, notably MAMP. These get you started quickly. But they forego the learning experience and, as most developers report, can become difficult to manage.

Running Commands

First, open the Terminal app and switch to the root user so you can run the commands in this post without any permission issues:

Enable Apache on Mac OS X

Verify It works! by accessing http://localhost

Enable PHP for Apache

First, make a backup of the default Apache configuration. This is good practice and serves as a comparison against future versions of Mac OS X.

Now edit the Apache configuration. Feel free to use TextEdit if you are not familiar with vi.

Uncomment the following line (remove #):

Restart Apache:

You can verify PHP is enabled by creating a phpinfo() page in your DocumentRoot.

The default DocumentRoot for Mac OS X El Capitan is /Library/WebServer/Documents. You can verify this from your Apache configuration.

Now create the phpinfo() page in your DocumentRoot:

Verify PHP by accessing http://localhost/phpinfo.php

Install MySQL on Mac OS X El Capitan

Download and install the latest MySQL generally available release DMG for Mac OS X.

The README suggests creating aliases for mysql and mysqladmin. However there are other commands that are helpful such as mysqldump. Instead, you can update your path to include /usr/local/mysql/bin.

Note: You will need to open a new Terminal window or run the command above for your path to update.

Finally, you should run mysql_secure_installation. While this isn't necessary, it's good practice to secure your database.

Connect PHP and MySQL

You need to ensure PHP and MySQL can communicate with one another. There are several options to do so. I do the following:

Additional Configuration (optional)

The default configuration for Apache 2.4 on Mac OS X seemed pretty lean. For example, common modules like mod_rewrite were disabled. You may consider enabling this now to avoid forgetting they are disabled in the future.

I edited my Apache Configuration:

I uncommented the following lines (remove #):

If you develop multiple projects and would like each to have a unique url, you can configure Apache VirtualHosts for Mac OS X.

If you would like to install PHPMyAdmin, return to my original post on installing Apache, PHP, and MySQL on Mac OS X.

Find this interesting? Let's continue the conversation on Twitter.

Download

Many operating systems already include a phpMyAdmin package and will automatically keep it updated, however these versions are sometimes slightly outdated and therefore may be missing the latest features. Additionally, the configuration process varies widely by package and may not adhere to the official phpMyAdmin documentation. That being said, it is usually the quickest and easiest way of keeping an updated installation. Please contact your OS vendor for more information. Some additional information is also available in our documentation. If you just want to try phpMyAdmin in a virtual machine, you might want to check the available software appliances which provide phpMyAdmin.

If you do not find a suitable package or wish to install your own phpMyAdmin, you can download one of the following kits. Please note that each version has requirements for the minimum PHP and MySQL versions.

Since July 2015 all phpMyAdmin releases are cryptographically signed by thereleasing developer. You should verify that the signature matches the archiveyou have downloaded. Verification instructions are placed in ourdocumentation in the Verifying phpMyAdmin releases chapter.

phpMyAdmin 4.9.6

Released 2020-10-10, see release notes for details.

Older version compatible with PHP 5.5 to 7.4 and MySQL 5.5 and newer. Currently supported for security fixes only.

FileSizeVerification
phpMyAdmin-4.9.6-all-languages.zip9.4 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-all-languages.tar.gz8.4 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-all-languages.tar.xz4.7 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-english.tar.gz3.7 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-english.tar.xz2.8 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-english.zip5.0 MB [PGP] [SHA256]
phpMyAdmin-4.9.6-source.tar.xz10.5 MB [PGP] [SHA256]

phpMyAdmin 5.0.3

Released 2020-10-10, see release notes for details.

Current version compatible with PHP 7.1 and newer and MySQL 5.5 and newer.

FileSizeVerification
phpMyAdmin-5.0.3-all-languages.zip12.1 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-all-languages.tar.gz10.8 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-all-languages.tar.xz6.5 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-english.tar.gz6.2 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-english.tar.xz4.5 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-english.zip7.7 MB [PGP] [SHA256]
phpMyAdmin-5.0.3-source.tar.xz13.2 MB [PGP] [SHA256]

Development Versions

phpMyAdmin Git repository is located athttps://github.com/phpmyadmin/phpmyadmin.git and youcan browse them online using GitHub.Note that phpMyAdmin uses Composer to manage library dependencies, when using gitdevelopment versions you must manually run Composer.Please see the documentation for details.

More information about using Git is available on development page.

phpMyAdmin 5.1+snapshot

Daily snapshot, generated 2020-09-03, from Git commit 2ac29e7cd2b36a217453a563f66f6bffd89d84cc.

Future version compatible with PHP 7.1 and newer and MySQL 5.5 and newer.

FileSizeVerification
phpMyAdmin-5.1+snapshot-all-languages.zip14.6 MB [SHA256]
phpMyAdmin-5.1+snapshot-all-languages.tar.gz13.1 MB [SHA256]
phpMyAdmin-5.1+snapshot-all-languages.tar.xz7.7 MB [SHA256]
phpMyAdmin-5.1+snapshot-english.tar.gz8.7 MB [SHA256]
phpMyAdmin-5.1+snapshot-english.tar.xz5.8 MB [SHA256]
phpMyAdmin-5.1+snapshot-english.zip10.3 MB [SHA256]
phpMyAdmin-5.1+snapshot-source.tar.gz38.0 MB [SHA256]
phpMyAdmin-5.1+snapshot-source.tar.xz14.8 MB [SHA256]
phpMyAdmin-5.1+snapshot-source.zip40.9 MB [SHA256]

phpMyAdmin 5.0+snapshot

Daily snapshot, generated 2020-09-03, from Git commit 9b528216204ea34d1e282b80461a92e62b215819.

Current version compatible with PHP 7.1 and newer and MySQL 5.5 and newer.

FileSizeVerification
phpMyAdmin-5.0+snapshot-all-languages.zip13.6 MB [SHA256]
phpMyAdmin-5.0+snapshot-all-languages.tar.gz12.3 MB [SHA256]
phpMyAdmin-5.0+snapshot-all-languages.tar.xz7.6 MB [SHA256]
phpMyAdmin-5.0+snapshot-english.tar.gz7.6 MB [SHA256]
phpMyAdmin-5.0+snapshot-english.tar.xz5.7 MB [SHA256]
phpMyAdmin-5.0+snapshot-english.zip9.2 MB [SHA256]
phpMyAdmin-5.0+snapshot-source.tar.gz35.0 MB [SHA256]
phpMyAdmin-5.0+snapshot-source.tar.xz14.2 MB [SHA256]
phpMyAdmin-5.0+snapshot-source.zip37.5 MB [SHA256]

phpMyAdmin 4.9+snapshot

Daily snapshot, generated 2020-09-03, from Git commit fac75760c86828f318a835d175bd92a99888ac28.

Older version compatible with PHP 5.5 to 7.4 and MySQL 5.5 and newer. Currently supported for security fixes only.

FileSizeVerification
phpMyAdmin-4.9+snapshot-all-languages.zip10.7 MB [SHA256]
phpMyAdmin-4.9+snapshot-all-languages.tar.gz9.7 MB [SHA256]
phpMyAdmin-4.9+snapshot-all-languages.tar.xz5.8 MB [SHA256]
phpMyAdmin-4.9+snapshot-english.tar.gz5.0 MB [SHA256]
phpMyAdmin-4.9+snapshot-english.tar.xz3.9 MB [SHA256]
phpMyAdmin-4.9+snapshot-english.zip6.2 MB [SHA256]
phpMyAdmin-4.9+snapshot-source.tar.gz30.2 MB [SHA256]
phpMyAdmin-4.9+snapshot-source.tar.xz11.4 MB [SHA256]
phpMyAdmin-4.9+snapshot-source.zip32.2 MB [SHA256]

Latest Stable Version

You can also directly download latest version on following URLs:

FileSizeVerification
phpMyAdmin-latest-all-languages.zip12.1 MB [PGP] [SHA256]
phpMyAdmin-latest-all-languages.tar.gz10.8 MB [PGP] [SHA256]
phpMyAdmin-latest-all-languages.tar.xz6.5 MB [PGP] [SHA256]
phpMyAdmin-latest-english.tar.gz6.2 MB [PGP] [SHA256]
phpMyAdmin-latest-english.tar.xz4.5 MB [PGP] [SHA256]
phpMyAdmin-latest-english.zip7.7 MB [PGP] [SHA256]
phpMyAdmin-latest-source.tar.xz13.2 MB [PGP] [SHA256]

We also publish a variety of formats intended for parsing by scripts to download the latest version. Read more about those on our syndication page.

Older Releases

You can find older releases on separate files page. You can also get them from our Git repository (check developer information for instructions). Older releases are unsupported.

Installing phpMyAdmin

The full process of installing phpMyAdmin is described in our manual. You can also find information there about how to install phpMyAdmin on your Linux distribution.

Official Docker image

The phpMyAdmin team maintains an official Docker image for phpMyAdmin. It is fully documented in our manual and you can install it using:

Installing using Composer

Due to technical limitations, we're currently unable to publish phpMyAdmin directly in Packagist repository, but it is possible to install phpMyAdmin from our own Composer repository. Please check our manual for more information.

Update Php On Mac

Appliances

How To Download Php 7 On Macbook Pro

Software appliances are becoming a popular way of distributing software. They are distributed as an image, which can be directly used by system (be it ISO image for bootable CD or virtual disks for some type of virtualization).

How To Download Php 7 On Mac

There are quite many appliances which provide phpMyAdmin as a management tool for MySQL. It usually comes as part of LAMP stack but there might be other offerings as well. Please check your favorite appliance provider, ISV or app store for it. Some of the appliances are listed on Wikipedia.

Supported versions

Download Php For Mac

Generally only last stable branch is supported, but there are LTS branches to support older PHP versions. Current stable branch is supported for bug fixes, LTS branches for security fixes only.

How To Download Php 7 On Mac Os

VersionEnd of regular
support
End of extended
security support (LTS)
Note
5.0TBD
4.9December 31, 2019TBDLTS to support PHP 5.5-7.0
4.8June 4, 2019
4.7April 7, 2018
4.6April 1, 2017
4.5April 1, 2016
4.4October 1, 2016
4.3October 1, 2015
4.2July 1, 2015
4.1January 1, 2015
4.0December 31, 2013April 1, 2017LTS to support PHP 5.2-5.4.

Comments are closed.