File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ apk update
3+ apk add apache2 apache2-utils php81-apache2 php81-mysqli php81-bcmath php81-simplexml php81-zip php81-pear php81-xml php81-curl php81-mbstring php81-pdo_mysql php81-pdo
4+ rc-update add apache2
5+
6+ chown -R frog:frog /var/www/html
7+
8+ sed -i ' s@localhost/htdocs@html@' /etc/apache2/httpd.conf
9+ sed -i ' s@AllowOverride.*@AllowOverride all@' /etc/apache2/httpd.conf
10+ sed -i " s@StartServers.*@StartServers\t1@" /etc/apache2/conf.d/mpm.conf
11+ sed -i " s@MaxSpareServers.*@MaxSpareServers\t3@" /etc/apache2/conf.d/mpm.conf
12+ sed -i " s@MinSpareServers.*@MinSpareServers\t1@" /etc/apache2/conf.d/mpm.conf
13+ sed -i " s@MaxRequestWorkers.*@MaxRequestWorkers\t10@" /etc/apache2/conf.d/mpm.conf
14+ sed -i " s@MaxConnectionsPerChild.*@MaxConnectionsPerChild\t50@" /etc/apache2/conf.d/mpm.conf
15+
16+ service apache2 start
17+ echo -e " \n\nPliki strony wrzuc do /var/www/html\n\n"
18+ cat /root/mysql.txt
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ apk add docker
3+ rc-update add docker
4+ service docker start
5+ sleep 3
6+ docker run hello-world
You can’t perform that action at this time.
0 commit comments