diff --git a/smeserver-dl.spec b/smeserver-dl.spec
index 7097d5c..5883791 100644
--- a/smeserver-dl.spec
+++ b/smeserver-dl.spec
@@ -1,6 +1,7 @@
 %define name smeserver-dl
-%define version 0.1.4
+%define version 0.2.0
 %define release 1
+%define phpversion 56
 Summary: sme server integration of dl
 Name: %{name}
 Version: %{version}
@@ -22,6 +23,9 @@ Requires: smeserver-webapps-common
 smserver integration of dl
 
 %changelog
+* Thu Jul 13 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.0-1.sme
+- Support smeserver-php-fpm
+
 * Tue May 31 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1.sme
 - Fix cron job output [SME: 9116]
 
@@ -42,12 +46,20 @@ smserver integration of dl
 
 %build
 perl ./createlinks
+find root/ -type f | xargs grep -l __PHP_VERSION__ | xargs sed -i -e "s/__PHP_VERSION__/%{phpversion}/g"
+%{__mkdir_p} root/var/log/php/dl
+%{__mkdir_p} root/var/lib/php/dl/{tmp,opcache,session}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
 rm -f %{name}-%{version}-filelist
 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
+        --dir /var/log/php/dl 'attr(0770,root,www)' \
+        --dir /var/lib/php/dl 'attr(0770,root,www)' \
+        --dir /var/lib/php/dl/tmp 'attr(0770,root,www)' \
+        --dir /var/lib/php/dl/opcache 'attr(0770,root,www)' \
+        --dir /var/lib/php/dl/session 'attr(0770,root,www)' \
         > %{name}-%{version}-filelist
 
 %files -f %{name}-%{version}-filelist