Permission updates

This commit is contained in:
Andrei Condurachi 2020-11-22 12:26:28 +02:00
parent 9a94e371ab
commit fc816b6735
2 changed files with 4 additions and 4 deletions

View File

@ -78,14 +78,14 @@ RUN \
ln -s /usr/lib/apache2 /usr/local/apache/modules && \ ln -s /usr/lib/apache2 /usr/local/apache/modules && \
ln -s /var/log/apache2 /usr/local/apache/logs ln -s /var/log/apache2 /usr/local/apache/logs
# PHP-FPM vhost config
COPY vhost.conf /etc/apache2/conf.d/vhost.conf
# Make sure apache can read&right to docroot # Make sure apache can read&right to docroot
RUN chown -R apache:apache /var/www RUN chown -R apache:apache /var/www
# Make sure apache can read&right to logs # Make sure apache can read&right to logs
RUN chown -R apache:apache /var/log/apache2 RUN chown -R apache:apache /var/log/apache2
# PHP-FPM vhost config
COPY vhost.conf /etc/apache2/conf.d/vhost.conf
### Continue execution as Apache user ### ### Continue execution as Apache user ###
USER apache USER apache

2
run.sh
View File

@ -13,7 +13,7 @@ rc-service syslog restart
# Restart the kernel log deamon # Restart the kernel log deamon
rc-service klogd restart rc-service klogd restart
# Start the cron deamon by default # Start cron by default
rc-update add crond default && rc-service crond start rc-update add crond default && rc-service crond start
# Start Apache by default # Start Apache by default
rc-update add httpd default && rc-service httpd start rc-update add httpd default && rc-service httpd start