Merge branch 'main' of https://gitea.nswteam.net/kai.t/magento2-docker
This commit is contained in:
commit
5cd9de8561
|
|
@ -31,11 +31,6 @@ RUN apk add --no-cache \
|
||||||
# config httpd.conf
|
# config httpd.conf
|
||||||
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /etc/apache2/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
|
# Install PHP and extenions
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
php81-common \
|
php81-common \
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,11 @@ if [ ! -d "$PWD/vendor" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "$PWD/.env"
|
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
|
chown -R apache:apache /var/www/html
|
||||||
chmod -R 775 /var/www/html
|
chmod -R 775 /var/www/html
|
||||||
httpd -D FOREGROUND
|
httpd -D FOREGROUND
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
*.log
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -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'
|
||||||
Loading…
Reference in New Issue