Skip to content

Commit fd23f2c

Browse files
committed
Skrypty z froga #208
1 parent c14889e commit fd23f2c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

scripts/install_LAMP.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

scripts/install_docker.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
apk add docker
3+
rc-update add docker
4+
service docker start
5+
sleep 3
6+
docker run hello-world

0 commit comments

Comments
 (0)