tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make php to multi packages



On Mon, Mar 24, 2025 at 09:55:28AM +0100, Thomas Klausner wrote:
> The php packages have ALTERNATIVES files, so installing
> pkgtools/pkg_alternatives should be enough. Is it?

Indeed that helps.

There is still a trap awaiting the unwarry sysadmin. Previous
PHP settings were taken from /usr/pkg/etc/php.ini and they are
now ignored, /usr/pkg/etc/php/8.3/php.ini is used instead.
This is the default file, it does not includes the custom 
settings that were present before update. 

One may loose security settngs such as session.cookie_secure,
or a site may get completely broken if it relied on short_open_tag,
for instance. This is how I discovered the problem. 

The php.ini has always been a mess. I moved all the custom
settings to Apadhe's httpd.conv php_value and php_flag 
directives. But others will get hit there too.

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index