diff --git a/include/php.sh b/include/php.sh
index 8cf66837..a92e9061 100644
--- a/include/php.sh
+++ b/include/php.sh
@@ -58,6 +58,7 @@ install_php(){
         --with-imap-ssl \
         --with-libxml-dir \
         --with-openssl \
+        --with-openssl-dir=${openssl_location}
         --with-snmp \
         ${with_libdir} \
         ${with_mysql} \