Attempt to fix permissions on Unix-like systems.

This commit is contained in:
flash 2022-01-17 03:05:45 +01:00
parent 3bc4de431c
commit c6cc2ecc67
2 changed files with 9 additions and 1 deletions

View file

@ -1,4 +1,4 @@
user www-data;
user vagrant;
worker_processes auto;
pid /var/run/nginx.pid;

View file

@ -61,6 +61,14 @@ sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 150M/g' /etc/php/7.4/fp
echo -e "==> Increase max body size to 150M"
sed -i 's/post_max_size = 8M/post_max_size = 150M/g' /etc/php/7.4/fpm/php.ini
echo -e "==> Change FPM user to vagrant"
sed -i 's/user = www-data/user = vagrant/g' /etc/php/7.4/fpm/pool.d/www.conf
sed -i 's/listen.owner = www-data/listen.owner = vagrant/g' /etc/php/7.4/fpm/pool.d/www.conf
echo -e "==> Change FPM group to vagrant"
sed -i 's/group = www-data/group = vagrant/g' /etc/php/7.4/fpm/pool.d/www.conf
sed -i 's/listen.group = www-data/listen.group = vagrant/g' /etc/php/7.4/fpm/pool.d/www.conf
echo -e "==> Restarting PHP-FPM"
service php7.4-fpm restart