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