ples work

This commit is contained in:
Lee 2023-07-04 17:28:09 +01:00
parent 3ead2f2c8e
commit f94034e70e

@ -13,8 +13,6 @@ fi
# Start php dep # Start php dep
echo "Starting PHP" echo "Starting PHP"
service php8.1-fpm start service php8.1-fpm start
# I don't know how to fix this properly, but it works.
chmod 777 /run/php/php8.1-fpm.sock
echo "Setting max upload size to ${MAX_UPLOAD_SIZE}" echo "Setting max upload size to ${MAX_UPLOAD_SIZE}"
sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/fpm/php.ini sed -i "s/^upload_max_filesize = .*/upload_max_filesize = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/fpm/php.ini
@ -24,6 +22,9 @@ sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/
echo "Restarting PHP to apply changes for max upload size" echo "Restarting PHP to apply changes for max upload size"
service php8.1-fpm restart service php8.1-fpm restart
# I don't know how to fix this properly, but it works.
chmod 777 /run/php/php8.1-fpm.sock
# Start Nginx # Start Nginx
echo "Starting Nginx" echo "Starting Nginx"
nginx -g "daemon off;" nginx -g "daemon off;"