Skip to content
Snippets Groups Projects
Verified Commit 8c36fa90 authored by David Beniamine's avatar David Beniamine
Browse files

php 7.3 config

parent 90a52a0b
Branches
No related tags found
No related merge requests found
...@@ -136,13 +136,13 @@ sed -i.bak -e 's/\(upload_max_filesize\).*/\1 16G/' \ ...@@ -136,13 +136,13 @@ sed -i.bak -e 's/\(upload_max_filesize\).*/\1 16G/' \
for dir in apache2 cli fpm for dir in apache2 cli fpm
do do
if [ -e /etc/php/7.0/$dir/php.ini ] if [ -e /etc/php/7.3/$dir/php.ini ]
then then
# set max input time from 1 minute to 1 hour # set max input time from 1 minute to 1 hour
# php timeout for large file # php timeout for large file
sed -i.bak -e 's/\(max_input_time =\).*/\1 3600/' \ sed -i.bak -e 's/\(max_input_time =\).*/\1 3600/' \
-e 's/\(max_execution_time =\).*/\1 3600/' \ -e 's/\(max_execution_time =\).*/\1 3600/' \
/etc/php/7.0/$dir/php.ini /etc/php/7.3/$dir/php.ini
fi fi
done done
...@@ -343,9 +343,9 @@ cd ${SCRIPT_DIRECTORY} ...@@ -343,9 +343,9 @@ cd ${SCRIPT_DIRECTORY}
echo "Copying nextcloud php.ini recommandations (opcache)" echo "Copying nextcloud php.ini recommandations (opcache)"
if [ "${WEB_SERVER}" == "apache2" ] if [ "${WEB_SERVER}" == "apache2" ]
then then
cat ${SCRIPT_DIRECTORY}/etc/php/7.0/apache2/php.ini >> /etc/php/7.0/apache2/php.ini cat ${SCRIPT_DIRECTORY}/etc/php/7.3/apache2/php.ini >> /etc/php/7.3/apache2/php.ini
else else
cat ${SCRIPT_DIRECTORY}/etc/php/7.0/apache2/php.ini >> /etc/php/7.0/fpm/php.ini cat ${SCRIPT_DIRECTORY}/etc/php/7.3/apache2/php.ini >> /etc/php/7.3/fpm/php.ini
fi fi
systemctl restart apache2 systemctl restart apache2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment