for better security, use specific soap.wsdl_cache_dir value
This commit is contained in:
parent
fd3d16fd58
commit
6b2f673b42
@ -223,4 +223,5 @@ 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[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
|
||||
|
||||
|
1
php.conf
1
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"
|
||||
|
6
php.ini
6
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.
|
||||
|
2
php.spec
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user