You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

PHP is not recommended - upgrade to php 8

I want to update my version of PHP to 8.0.2 on macOS Big Sur


When I run "php -v" I get this:

WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: Dec 21 2020 21:33:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies


Does this mean Apple are intending to remove PHP from a future version of macOS? Or is it simply flagging that this version of PHP will be replaced?


How to remove php7 ? How do I upgrade to the PHP version 8 ?

Posted on Feb 12, 2021 7:41 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 12, 2021 8:06 PM

PHP, like other scripting languages are/will not be included in the OS. You can install whatever scripting language you want to use. Read this:

https://developer.apple.com/documentation/macos-release-notes/macos-catalina-10_15-release-notes

3 replies

PHP is not recommended - upgrade to php 8

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.