note 129094 added to configuration.file

From: Date: Fri, 08 Dec 2023 19:32:11 +0000
Subject: note 129094 added to configuration.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-221048@lists.php.net to get a copy of this message
For anyone who wants to ignore any directory entirely On a linux Redhat distro (this was on EL9): ; if using php-fpm, put this file in place" /etc/systemd/system/php-fpm.service.d/override.conf [Service] Environment="PHP_INI_SCAN_DIR=" ; do a systemd config reload: systemctl daemon-reload ; if you want to make sure php on the cli fails if it's not passing 'PHP_INI_SCAN_DIR= php' (this should also affect both linux normal+system users?) then drop this file in place: cat /etc/php.d/00-dont-use-phpd.ini auto_prepend_file=MISSING_ENV__PHP_INI_SCAN_DIR__SEE_ETC_PHPD_00_DONT_USE_PHPD_INI ; don't allow php.d directory to load in files ; you must pass 'PHP_INI_SCAN_DIR= ' before your php command on the cli ; reference: ; https://www.php.net/manual/en/configuration.file.php#configuration.file.scan ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 50.0.213.137) ---- Manual Page -- https://php.net/manual/en/configuration.file.php Edit -- https://main.php.net/note/edit/129094 Del: integrated -- https://main.php.net/note/delete/129094/integrated Del: useless -- https://main.php.net/note/delete/129094/useless Del: bad code -- https://main.php.net/note/delete/129094/bad+code Del: spam -- https://main.php.net/note/delete/129094/spam Del: non-english -- https://main.php.net/note/delete/129094/non-english Del: in docs -- https://main.php.net/note/delete/129094/in+docs Del: other reasons-- https://main.php.net/note/delete/129094 Reject -- https://main.php.net/note/reject/129094 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221048) next »