for better security, use specific soap.wsdl_cache_dir value

This commit is contained in:
Remi Collet 2013-09-18 13:13:44 +02:00
parent fd3d16fd58
commit 6b2f673b42
4 changed files with 10 additions and 2 deletions

View File

@ -222,5 +222,6 @@ php_admin_flag[log_errors] = on
; Set session path to a directory owned by process user ; Set session path to a directory owned by process user
php_value[session.save_handler] = files 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

View File

@ -30,3 +30,4 @@ DirectoryIndex index.php
# #
php_value session.save_handler "files" 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"

View File

@ -1763,7 +1763,11 @@ soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files. ; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir ; 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 ; (time to live) Sets the number of second while cached file will be used
; instead of original one. ; instead of original one.

View File

@ -1248,6 +1248,7 @@ install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d
%endif %endif
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php 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/session
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/wsdlcache
# PHP-FPM stuff # PHP-FPM stuff
# Log # Log
@ -1420,6 +1421,7 @@ exit 0
%{_httpd_moddir}/libphp5-zts.so %{_httpd_moddir}/libphp5-zts.so
%endif %endif
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache
%config(noreplace) %{_httpd_confdir}/php.conf %config(noreplace) %{_httpd_confdir}/php.conf
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
%config(noreplace) %{_httpd_modconfdir}/10-php.conf %config(noreplace) %{_httpd_modconfdir}/10-php.conf