Opened 11 months ago

Last modified 11 months ago

#68660 new defect

Installing PHP8.2 when PHP8.1 is installed - requires manual adjustments to httpd.conf — at Initial Version

Reported by: jasimon9 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: php

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.