diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud
index cc788e3bb0bb59c7355f21b5097593e6eb7dbb38..356f3a2d2cae9beea0f288175a2e25a4e1aab2d4 100755
--- a/src/freedombone-app-nextcloud
+++ b/src/freedombone-app-nextcloud
@@ -390,8 +390,8 @@ function install_nextcloud_main {
     repair_databases_script
 
     apt-get -yq install php-gettext php-curl php-gd php-mysql git curl
-    apt-get -yq install php-memcached php-intl memcached php-memcached
-    apt-get -yq install libfcgi0ldbl php-zip
+    apt-get -yq install php-intl memcached php-memcached libfcgi0ldbl
+    apt-get -yq install php-zip
 
     # Ensure PATH is available to php
     if [ ! -f /etc/php/7.0/fpm/pool.d/www.conf ]; then