diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 90edc7ec..1d65b347 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -611,6 +611,8 @@ function remove_gnusocial { if grep -q 'gnusocial-firewall' /etc/crontab; then sed -i '/gnusocial-firewall/d' /etc/crontab fi + sed -i 's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g' /etc/php/7.0/cli/php.ini + sed -i 's|mysqli.reconnect.*|mysqli.reconnect = Off|g' /etc/php/7.0/cli/php.ini function_check remove_ddns_domain remove_ddns_domain "$GNUSOCIAL_DOMAIN_NAME" @@ -888,6 +890,15 @@ function install_gnusocial_main { # This improves performance sed -i "s|//\$config\\['db'\\]\\['schemacheck'\\].*|\$config\\['db'\\]\\['schemacheck'\\] = 'script';|g" "$gnusocial_config_file" + # remove the install script + if [ -f "/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php" ]; then + rm "/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php" + fi + + # php configuration + sed -i 's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g' /etc/php/7.0/cli/php.ini + sed -i 's|mysqli.reconnect.*|mysqli.reconnect = On|g' /etc/php/7.0/cli/php.ini + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 0c3668ea..e8605774 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -624,6 +624,8 @@ function remove_postactiv { remove_backup_database_local postactiv sed -i '/postactiv-firewall/d' /etc/crontab + sed -i 's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g' /etc/php/7.0/cli/php.ini + sed -i 's|mysqli.reconnect.*|mysqli.reconnect = Off|g' /etc/php/7.0/cli/php.ini function_check remove_ddns_domain remove_ddns_domain "$POSTACTIV_DOMAIN_NAME" @@ -653,6 +655,9 @@ function install_postactiv_main { apt-get -yq install php-gettext php-curl php-gd php-mysql git curl apt-get -yq install memcached php-memcached php-intl exiftool libfcgi0ldbl + apt-get -yq install php7.0-bcmath php7.0-curl php7.0-exif php7.0-gd + apt-get -yq install php7.0-intl php7.0-mbstring php7.0-mysqlnd + apt-get -yq install php7.0-opcache php7.0-readline php7.0-xmlwriter if [ ! -d "/var/www/$POSTACTIV_DOMAIN_NAME" ]; then mkdir "/var/www/$POSTACTIV_DOMAIN_NAME" @@ -905,6 +910,10 @@ function install_postactiv_main { rm "/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php" fi + # php configuration + sed -i 's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g' /etc/php/7.0/cli/php.ini + sed -i 's|mysqli.reconnect.*|mysqli.reconnect = On|g' /etc/php/7.0/cli/php.ini + systemctl restart mariadb systemctl restart php7.0-fpm systemctl restart nginx