Browse Source

updated start.sh

master
parent
commit
70ffe11275
  1. 12
      conf/start.sh

12
conf/start.sh

@ -2,7 +2,9 @@ @@ -2,7 +2,9 @@
/usr/sbin/useradd -d /home/www -s /bin/false -M ${APACHE_RUN_USER}
/usr/sbin/adduser ${APACHE_RUN_USER} crontab
mkdir -p /home/www/log
touch /home/www/log/msmtp.log
apt update && apt upgrade -y
if [[ ! $RUN_USER == lokaal ]]; then
USER_UID=`echo ${APACHE_RUN_USER} | tr -d '{p,f},'`
@ -24,13 +26,13 @@ fi @@ -24,13 +26,13 @@ fi
fi
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEMORY_LIMIT}/g" /etc/php/7.3/apache2/php.ini
sed -i 's@;mail.log = syslog@mail.log = /home/www/log/mail.log@g' /etc/php/7.3/apache2/php.ini
sed -i 's@SMTP = localhost@SMTP = smtp.rug.nl@g' /etc/php/7.3/apache2/php.ini
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEMORY_LIMIT}/g" /etc/php/8.0/apache2/php.ini
sed -i 's@;mail.log = syslog@mail.log = /home/www/log/mail.log@g' /etc/php/8.0/apache2/php.ini
sed -i 's@SMTP = localhost@SMTP = smtp.rug.nl@g' /etc/php/8.0/apache2/php.ini
echo "$APACHE_SERVERNAME" > /etc/mailname
cat> /etc/php/7.3/apache2/conf.d/10-opcache.ini << EOF
cat> /etc/php/8.0/apache2/conf.d/10-opcache.ini << EOF
zend_extension=opcache.so
opcache.enable=1
opcache.validate_timestamps=1

Loading…
Cancel
Save