Skip to content
Snippets Groups Projects
Commit 48093813 authored by Paolino Paperino's avatar Paolino Paperino
Browse files

2018-02-15: FG;

parent dcadf6d8
No related branches found
No related tags found
No related merge requests found
...@@ -151,20 +151,22 @@ if [ "$HTTPS" == "True" ]; then ...@@ -151,20 +151,22 @@ if [ "$HTTPS" == "True" ]; then
fi fi
#Configure Apache2 MPM. Note that only one in [event, worker, prefork] should be active. #Configure Apache2 MPM. Note that only one in [event, worker, prefork] should be active.
for atype in mpm_prefork mpm_event mpm_worker ; do if [ ! -z "$MPM_TYPE" ]; then
if [ "$atype" == "$MPM_TYPE" ]; then for atype in mpm_prefork mpm_event mpm_worker ; do
a2enmod $MPM_TYPE if [ "$atype" == "$MPM_TYPE" ]; then
set -f a2enmod $atype
mpmCfgArray=(${MPM_CONFIG//,/ }) set -f
for elemArray in "${!mpmCfgArray[@]}"; do mpmCfgArray=(${MPM_CONFIG//,/ })
elemKey=$(echo $elemArray | cut -f1 -d=) for elemArray in "${!mpmCfgArray[@]}"; do
elemVal=$(echo $elemArray | cut -f2 -d=) elemKey=$(echo $elemArray | cut -f1 -d=)
sed -i "s|^\s+$elemKey.*|$elemKey $elemVal|g" /etc/apache2/mods-available/${MPM_TYPE}.conf elemVal=$(echo $elemArray | cut -f2 -d=)
done sed -i "s|^\s+$elemKey.*|$elemKey $elemVal|g" /etc/apache2/mods-available/${MPM_TYPE}.conf
else done
a2dismod $MPM_TYPE else
fi a2dismod $atype
done fi
done
fi
#Set upload_max_filesize in php.ini #Set upload_max_filesize in php.ini
STR_OLD=`cat /etc/php/7.0/apache2/php.ini | grep upload_max_filesize` STR_OLD=`cat /etc/php/7.0/apache2/php.ini | grep upload_max_filesize`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment