removed apache & php install

This commit is contained in:
Matthew Saunders Brown 2021-04-13 13:36:57 -07:00
parent 699136907f
commit 3585a8c0ad

View File

@ -56,22 +56,6 @@ mysql -e "CREATE USER 'vmail'@'localhost' IDENTIFIED BY '$VMAILPASS';"
mysql -e "GRANT ALL PRIVILEGES ON vmail.* TO 'vmail'@'localhost';" mysql -e "GRANT ALL PRIVILEGES ON vmail.* TO 'vmail'@'localhost';"
mysqladmin flush-privileges mysqladmin flush-privileges
# install apache
if [ ! -d "/etc/apache2/" ]; then
apt -y install apache2
fi
cp etc/apache2/conf-available/vmail_macro.conf /etc/apache2/conf-available/vmail_macro.conf
chmod 644 /etc/apache2/conf-available/vmail_macro.conf
a2enmod macro
a2enconf vmail_macro
# install php
apt -y install php-fpm php-cli php-gd php-imagick php-imap php-intl php-mysql php-pspell php-zip
a2enconf php7.4-fpm
sed -i "s|post_max_size = 8M|post_max_size = 256M|g" /etc/php/7.4/fpm/php.ini
sed -i "s|upload_max_filesize = 2M|upload_max_filesize = 256M|g" /etc/php/7.4/fpm/php.ini
sed -i "s|pm = dynamic|pm = ondemand|g" /etc/php/7.4/fpm/pool.d/www.conf
# install mail server software # install mail server software
apt -y install exim4-daemon-heavy spf-tools-perl spamassassin libclass-dbi-mysql-perl dovecot-core dovecot-imapd dovecot-mysql dovecot-pop3d dovecot-lmtpd apt -y install exim4-daemon-heavy spf-tools-perl spamassassin libclass-dbi-mysql-perl dovecot-core dovecot-imapd dovecot-mysql dovecot-pop3d dovecot-lmtpd
@ -137,19 +121,17 @@ chown dovecot:mail /usr/libexec/vmail-quota-warning.sh
systemctl enable spamassassin systemctl enable spamassassin
systemctl restart spamassassin systemctl restart spamassassin
systemctl restart exim4 systemctl restart exim4
systemctl restart php7.4-fpm
systemctl restart apache2
systemctl restart dovecot systemctl restart dovecot
chmod 755 bin/* chmod 755 bin/*
cp bin/* /usr/local/bin/ cp bin/* /usr/local/bin/
# download and install roundcubemail # download and install roundcubemail
cd /usr/local/src/ # cd /usr/local/src/
wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz # wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz
tar zxf roundcubemail-1.4.11-complete.tar.gz # tar zxf roundcubemail-1.4.11-complete.tar.gz
cd roundcubemail-1.4.11 # cd roundcubemail-1.4.11
pwd # pwd
# apache_document_root=`apachectl -t -D DUMP_RUN_CFG|grep DocumentRoot|cut -d \" -f 2` # apache_document_root=`apachectl -t -D DUMP_RUN_CFG|grep DocumentRoot|cut -d \" -f 2`
# config # config
# change product_name as desired # change product_name as desired