php configuration for gnusocial/postactiv
This commit is contained in:
parent
3180e85973
commit
dfa5992a94
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue