[MacPorts] #68660: Installing PHP8.2 when PHP8.1 is installed - requires manual adjustments to httpd.conf

MacPorts noreply at macports.org
Wed Nov 8 18:59:25 UTC 2023


#68660: Installing PHP8.2 when PHP8.1 is installed - requires manual adjustments to
httpd.conf
----------------------+-----------------------------
 Reporter:  jasimon9  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:  MacPorts Future
Component:  ports     |    Version:  2.8.1
 Keywords:            |       Port:
----------------------+-----------------------------
 I have PHP8.1 on a machine. I wanted to upgrade it to PHP8.2. I ran all
 the install routines, including php82, php82-apache2handler, the apxs
 command, and the port select --set php php82.

 After restarting apache, the local website was still running on PHP8.1, as
 shown by phpinfo().

 I looked into httpd.conf and noted that both php_modules were loaded:
 {{{
 LoadModule php_module         lib/apache2/modules/mod_php81.so
 LoadModule php_module         lib/apache2/modules/mod_php82.so
 }}}

 I commented out the first line, restarted apache again, and then PHP8.2
 was running. So I was able to fix the problem for me.

 In addition I noticed that in the httpd.conf file that the
 ../extra/mod_php81.conf file was still referenced, instead of the php82
 version. Harmless because the 81 and 82 files are identical in this
 instance, but nevertheless not the way it should be.

-- 
Ticket URL: <https://trac.macports.org/ticket/68660>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list