Set sane php.ini defaults

According to the diagnostic minimum settings
pull/8/head
Andras Iklody 2018-01-20 00:31:41 +01:00 committed by GitHub
parent c348b8b966
commit d2cc59ce45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -354,7 +354,11 @@ sudo pip3 install -I . > /dev/null 2>&1
# With initd:
sudo sed -i -e '$i \sudo -u www-data -H misp-modules -l 0.0.0.0 -s &\n' /etc/rc.local
# Set sane PHP defaults
sudo sed -i 's/memory_limit = .*/memory_limit = '512M'/' /etc/php/7.0/apache2/php.ini
sudo sed -i 's/max_execution_time = .*/max_execution_time = '300'/' /etc/php/7.0/apache2/php.ini
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = '50M'/' /etc/php/7.0/apache2/php.ini
sudo sed -i 's/post_max_size = .*/post_max_size = '50M'/' /etc/php/7.0/apache2/php.ini
echo "--- Restarting Apache... ---"
sudo systemctl restart apache2 > /dev/null 2>&1