public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: for better security, use specific soap.wsdl_cache_dir value
@ 2026-11-27 7:26 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27 7:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 6b2f673b42862102eb8c815b14afa8d71f445bef
Author : Remi Collet <remi@fedoraproject.org>
Date : 2013-09-18T13:13:44+02:00
Stats : +10/-2 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/6b2f673b42862102eb8c815b14afa8d71f445bef?branch=private-php86
Log:
for better security, use specific soap.wsdl_cache_dir value
---
diff --git a/php-fpm-www.conf b/php-fpm-www.conf
index 9cdbb4f..502feff 100644
--- a/php-fpm-www.conf
+++ b/php-fpm-www.conf
@@ -222,5 +222,6 @@ php_admin_flag[log_errors] = on
; Set session path to a directory owned by process user
php_value[session.save_handler] = files
-php_value[session.save_path] = /var/lib/php/session
+php_value[session.save_path] = /var/lib/php/session
+php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
diff --git a/php.conf b/php.conf
index 64eb5fd..7000043 100644
--- a/php.conf
+++ b/php.conf
@@ -30,3 +30,4 @@ DirectoryIndex index.php
#
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
+php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
diff --git a/php.ini b/php.ini
index f86f837..539f961 100644
--- a/php.ini
+++ b/php.ini
@@ -1763,7 +1763,11 @@ soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
-soap.wsdl_cache_dir="/tmp"
+
+; RPM note : cache directory must be owned by process owner
+; for mod_php, see /etc/httpd/conf.d/php.conf
+; for php-fpm, see /etc/php-fpm.d/*conf
+;soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
diff --git a/php.spec b/php.spec
index 761675b..6e074e7 100644
--- a/php.spec
+++ b/php.spec
@@ -1248,6 +1248,7 @@ install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d
%endif
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
+install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/wsdlcache
# PHP-FPM stuff
# Log
@@ -1420,6 +1421,7 @@ exit 0
%{_httpd_moddir}/libphp5-zts.so
%endif
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
+%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache
%config(noreplace) %{_httpd_confdir}/php.conf
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
%config(noreplace) %{_httpd_modconfdir}/10-php.conf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 7:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 7:26 [rpms/php] private-php86: for better security, use specific soap.wsdl_cache_dir value Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox