[MacPorts] howto/PHP modified

MacPorts Wiki noreply at macports.org
Wed Jan 10 21:53:38 UTC 2024


Page "howto/PHP" was changed by ryandesign
Diff URL: <https://trac.macports.org/wiki/howto/PHP?action=diff&version=35>
Revision 35
Comment: Add php83
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PHP
=========================================================================
--- howto/PHP (version: 34)
+++ howto/PHP (version: 35)
@@ -12,63 +12,64 @@
 
 MacPorts includes several versions of PHP. You can install any or all of these versions simultaneously, though it is expected that you will only need to install one of them.
 
-* '''php82''': PHP v8.2.x. This is the latest stable version. Security support until 8 Dec 2025.
+* '''php83''': PHP v8.3.x. This is the latest stable version. Security support until 23 Nov 2026.
+* '''php82''': PHP v8.2.x. This is an older stable version. Security support until 8 Dec 2025.
 * '''php81''': PHP v8.1.x. This is an older stable version. Security support until 25 Nov 2024.
-* '''php80''': PHP v8.0.x. This is an older stable version. Security support until 26 Nov 2023.
+* '''php80''': PHP v8.0.x. This version reached [https://www.php.net/eol.php end of life] on 26 Nov 2023
 * '''php74''': PHP v7.4.x. This version reached [https://www.php.net/eol.php end of life] on 28 Nov 2022.
 * '''php73''': PHP v7.3.x. This version reached [https://www.php.net/eol.php end of life] on 6 Dec 2021.
-* '''php72''': PHP v7.2.x. This version reached [https://www.php.net/eol.php end of life] on 30 Nov 2020 and is therefore not recommended.
-* '''php71''': PHP v7.1.x. This version reached [https://www.php.net/eol.php end of life] on 1 Dec 2019 and is therefore not recommended.
-* '''php70''': PHP v7.0.x. This version reached [https://www.php.net/eol.php end of life] on 10 Jan 2019 and is therefore not recommended.
-* '''php56''': PHP v5.6.x. This version reached [https://www.php.net/eol.php end of life] on 31 Dec 2018 and is therefore not recommended.
-* '''php55''': PHP v5.5.x. This version reached [https://www.php.net/eol.php end of life] in 2016 and is therefore not recommended.
-* '''php54''': PHP v5.4.x. This version reached [https://www.php.net/eol.php end of life] in 2015 and is therefore not recommended.
-* '''php53''': PHP v5.3.x. This version reached [https://www.php.net/eol.php end of life] in 2014 and is therefore not recommended.
-* '''php52''': PHP v5.2.x. This version reached [https://www.php.net/eol.php end of life] in 2011 and is therefore not recommended.
-
-
-This page shows how to install and use the php82 family of ports, but you can use another version if you prefer; all of these ports use a similar directory layout.
+* '''php72''': PHP v7.2.x. This version reached [https://www.php.net/eol.php end of life] on 30 Nov 2020.
+* '''php71''': PHP v7.1.x. This version reached [https://www.php.net/eol.php end of life] on 1 Dec 2019.
+* '''php70''': PHP v7.0.x. This version reached [https://www.php.net/eol.php end of life] on 10 Jan 2019.
+* '''php56''': PHP v5.6.x. This version reached [https://www.php.net/eol.php end of life] on 31 Dec 2018.
+* '''php55''': PHP v5.5.x. This version reached [https://www.php.net/eol.php end of life] on 21 Jul 2016.
+* '''php54''': PHP v5.4.x. This version reached [https://www.php.net/eol.php end of life] in 3 Sep 2015.
+* '''php53''': PHP v5.3.x. This version reached [https://www.php.net/eol.php end of life] in 14 Aug 2014.
+* '''php52''': PHP v5.2.x. This version reached [https://www.php.net/eol.php end of life] in 6 Jan 2011.
+
+
+This page shows how to install and use the php83 family of ports, but you can use another version if you prefer; all of these ports use a similar directory layout.
 
 = Step 1: Install PHP SAPIs = #install
 
 PHP comes in several Server APIs (SAPIs). You can install any or all of these that you need:
 
 ||=SAPI                    =||=Port                =||=Install command                         =||
-|| Command line             || php82                || `sudo port install php82`                ||
-|| Apache 2 module          || php82-apache2handler || `sudo port install php82-apache2handler` ||
-|| FastCGI                  || php82-cgi            || `sudo port install php82-cgi`            ||
-|| FastCGI Process Manager  || php82-fpm            || `sudo port install php82-fpm`            ||
+|| Command line             || php83                || `sudo port install php83`                ||
+|| Apache 2 module          || php83-apache2handler || `sudo port install php83-apache2handler` ||
+|| FastCGI                  || php83-cgi            || `sudo port install php83-cgi`            ||
+|| FastCGI Process Manager  || php83-fpm            || `sudo port install php83-fpm`            ||
 
 
 = Step 2: Install PHP Modules = #modules
 
-The SAPI ports contain the core PHP features, but there are many optional features available in separate ports, some of which you may want to install as well. Use `port search php82` to see all the ports that are available.
+The SAPI ports contain the core PHP features, but there are many optional features available in separate ports, some of which you may want to install as well. Use `port search php83` to see all the ports that are available.
 
 Installing a PHP module automatically makes it available to all PHP SAPIs of the same PHP version.
 
 For example, if you with to interact with a database server, here are some of the choices that exist:
 
 ||=Database server         =||=Port                =||=Install command                         =||
-|| MySQL, MariaDB, Percona  || php82-mysql          || `sudo port install php82-mysql`          ||
-|| ODBC                     || php82-odbc           || `sudo port install php82-odbc`           ||
-|| Oracle                   || php82-oracle         || `sudo port install php82-oracle`         ||
-|| PostgreSQL               || php82-postgresql     || `sudo port install php82-postgresql`     ||
-|| SQLite                   || php82-sqlite         || `sudo port install php82-sqlite`         ||
+|| MySQL, MariaDB, Percona  || php83-mysql          || `sudo port install php83-mysql`          ||
+|| ODBC                     || php83-odbc           || `sudo port install php83-odbc`           ||
+|| Oracle                   || php83-oracle         || `sudo port install php83-oracle`         ||
+|| PostgreSQL               || php83-postgresql     || `sudo port install php83-postgresql`     ||
+|| SQLite                   || php83-sqlite         || `sudo port install php83-sqlite`         ||
 
 
 = Step 3: PHP Configuration file setup = #configuration
 
 Set up your PHP configuration files. For development purposes use:
 {{{
-$ cd /opt/local/etc/php82
+$ cd /opt/local/etc/php83
 $ sudo cp php.ini-development php.ini
 }}}
 or for a production server:
 {{{
-$ cd /opt/local/etc/php82
+$ cd /opt/local/etc/php83
 $ sudo cp php.ini-production php.ini
 }}}
-then make changes to that newly created php.ini file - ''/opt/local/etc/php82/php.ini''
+then make changes to that newly created php.ini file - ''/opt/local/etc/php83/php.ini''
 
 = Step 4: Install phpMyAdmin  = #phpmyadmin
 
@@ -85,7 +86,7 @@
 
 = Trouble shoot =
 If by some reason the server still doesn't interpret PHP files (i.e. your web client tries to download them) it means the PHP configurations, as described at [[howto/MAMP#job1]], are not taking effect.
-Typically,  the file ''"Include etc/apache2/extra/mod_php82.conf"'' - is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
+Typically,  the file ''"Include etc/apache2/extra/mod_php83.conf"'' - is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
 
 ==  Verify your config file again! ==
 Verify any changes you have made to the config file: /opt/local/etc/apache2/httpd.conf - The most common problem is that the files in the "extra" directory are not "readable"
@@ -95,7 +96,7 @@
 $ /opt/local/sbin/apachectl -t
 }}}
 This will return either "Syntax OK" or a specific line by line error listing.
- The typical error message:  ''"Could not open configuration file /opt/local/etc/apache2/extra/httpd-mod_php82.conf: Permission denied"''
+ The typical error message:  ''"Could not open configuration file /opt/local/etc/apache2/extra/httpd-mod_php83.conf: Permission denied"''
 After correcting any config errors and saving the updated config file, simply run:
 {{{
 $ sudo port unload apache2
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/PHP>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'howto/PHP' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list