This commit is contained in:
Kai Ton 2024-05-06 07:34:22 +00:00
commit 5cd9de8561
5 changed files with 9 additions and 8 deletions

View File

@ -31,11 +31,6 @@ RUN apk add --no-cache \
# config httpd.conf
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /etc/apache2/httpd.conf
USER apache
RUN touch /var/log/apache2/access.log
RUN touch /var/log/apache2/error.log
USER root
# Install PHP and extenions
RUN apk add --no-cache \
php81-common \

View File

@ -9,9 +9,11 @@ if [ ! -d "$PWD/vendor" ]; then
fi
source "$PWD/.env"
# Do something after get environment
# Do something get environment
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
httpd -D FOREGROUND

1
var/log/.gitignore vendored
View File

@ -1,2 +1 @@
*.log
!.gitignore

1
var/log/apache2_access.log Executable file
View File

@ -0,0 +1 @@

4
var/log/apache2_error.log Executable file
View File

@ -0,0 +1,4 @@
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.16.3. Set the 'ServerName' directive globally to suppress this message
[Mon Dec 04 02:58:06.683632 2023] [mpm_prefork:notice] [pid 18] AH00163: Apache/2.4.58 (Unix) PHP/8.1.26 OpenSSL/3.1.4 configured -- resuming normal operations
[Mon Dec 04 02:58:06.683682 2023] [core:notice] [pid 18] AH00094: Command line: 'httpd -D FOREGROUND'