#add phpsettings
This commit is contained in:
parent
c1a4696ff4
commit
67dfa07de8
1 changed files with 13 additions and 2 deletions
|
@ -144,8 +144,8 @@ error_check "Updating MISP to the latest 2.4 release"
|
|||
sudo -u ${APACHE_USER} ${MISP_PATH}/app/Console/cake Admin runUpdates &>> $logfile
|
||||
error_check_soft "Updating MISP's database to the latest 2.4 release's schema"
|
||||
|
||||
print_status "Installing apt packages (supervisor jq)..."
|
||||
declare -a packages=( supervisor jq );
|
||||
print_status "Installing apt packages (supervisor jq python3 python3-pip virtualenv)..."
|
||||
declare -a packages=( supervisor jq python3 python3-pip virtualenv );
|
||||
install_packages ${packages[@]}
|
||||
error_check "Basic dependencies installation"
|
||||
|
||||
|
@ -180,6 +180,17 @@ php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo '
|
|||
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer &>> $logfile
|
||||
error_check "Composer installation"
|
||||
|
||||
print_status "Configuring PHP settings..."
|
||||
|
||||
for key in upload_max_filesize post_max_size max_execution_time max_input_time memory_limit
|
||||
do
|
||||
sudo sed -i "s/^\($key\).*/\1 = $(eval echo \${$key})/" $PHP_INI
|
||||
done
|
||||
sudo sed -i "s/^\(session.sid_length\).*/\1 = 32/" $PHP_INI
|
||||
sudo sed -i "s/^\(session.use_strict_mode\).*/\1 = 1/" $PHP_INI
|
||||
sudo sed -i "s/^\(session.save_handler\).*/\1 = redis/" $PHP_INI
|
||||
sudo sed -i "/session.save_handler/a session.save_path = 'tcp:\/\/localhost:6379'/" $PHP_INI
|
||||
|
||||
sudo service apache2 restart
|
||||
error_check "Apache restart"
|
||||
print_ok "PHP8.3 configured..."
|
||||
|
|
Loading…
Add table
Reference in a new issue