diff --git a/tasks/php53.yml b/tasks/php53.yml
index 97ba5a3be556dfc74d2221596f960e3eeb6c3ca4..4de3c75b92672b87c4a2bf50565592e40c0dd196 100644
--- a/tasks/php53.yml
+++ b/tasks/php53.yml
@@ -37,7 +37,7 @@
   - name: "Compile PHP 5.3"
     shell: "{{ item }} chdir=/tmp/php53/php-5.3.29"
     with_items:
-      - ./configure --enable-mbstring
+      - ./configure --with-libdir=/lib/x86_64-linux-gnu --enable-mbstring --enable-sockets --with-zlib --with-openssl=/usr --enable-zip --with-imap-ssl
       - make
       - make install