mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-08 11:11:34 -05:00
Fix PHP permissions
This commit is contained in:
parent
ace87dc0af
commit
2cff95b011
@ -50,3 +50,9 @@ sudo dnf install -y MariaDB-server
|
|||||||
|
|
||||||
# Run NGINX Setup script
|
# Run NGINX Setup script
|
||||||
unpriv curl -LsS https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/setup.sh | sudo bash
|
unpriv curl -LsS https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/setup.sh | sudo bash
|
||||||
|
|
||||||
|
# Fix PHP permission
|
||||||
|
sudo sed -i 's/user = apache/user = nginx/g' /etc/php-fpm.d/www.conf
|
||||||
|
sudo sed -i 's/group = apache/group = nginx/g' /etc/php-fpm.d/www.conf
|
||||||
|
chgrp nginx /var/lib/php/opcache /var/lib/php/session /var/lib/php/wsdlcache
|
||||||
|
sudo systemctl restart php-fpm
|
Loading…
Reference in New Issue
Block a user