Skip to content

Commit

Permalink
Skrypty z froga #208
Browse files Browse the repository at this point in the history
  • Loading branch information
mati75 committed Oct 23, 2024
1 parent c14889e commit fd23f2c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/install_LAMP.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
apk update
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
rc-update add apache2

chown -R frog:frog /var/www/html

sed -i 's@localhost/htdocs@html@' /etc/apache2/httpd.conf
sed -i 's@AllowOverride.*@AllowOverride all@' /etc/apache2/httpd.conf
sed -i "s@StartServers.*@StartServers\t1@" /etc/apache2/conf.d/mpm.conf
sed -i "s@MaxSpareServers.*@MaxSpareServers\t3@" /etc/apache2/conf.d/mpm.conf
sed -i "s@MinSpareServers.*@MinSpareServers\t1@" /etc/apache2/conf.d/mpm.conf
sed -i "s@MaxRequestWorkers.*@MaxRequestWorkers\t10@" /etc/apache2/conf.d/mpm.conf
sed -i "s@MaxConnectionsPerChild.*@MaxConnectionsPerChild\t50@" /etc/apache2/conf.d/mpm.conf

service apache2 start
echo -e "\n\nPliki strony wrzuc do /var/www/html\n\n"
cat /root/mysql.txt
6 changes: 6 additions & 0 deletions scripts/install_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
apk add docker
rc-update add docker
service docker start
sleep 3
docker run hello-world

0 comments on commit fd23f2c

Please sign in to comment.