fix permission

This commit is contained in:
Kai Ton 2024-05-15 13:31:50 +07:00
parent d46a89c895
commit e42620c625
1 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,10 @@ source "$PWD/.env"
echo '' > ./var/log/apache2_error.log
echo '' > ./var/log/apache2_access.log
chown apache:apache -R ./var/log/apache2_*
chown -R apache:apache /var/www/html
chmod -R 775 /var/www/html
# new file
echo 'export APACHE_RUN_USER=root' > /etc/apache2/envvars
# append
echo 'export APACHE_RUN_GROUP=root' >> /etc/apache2/envvars
httpd -D FOREGROUND