Atualizar server1.sh
This commit is contained in:
31
server1.sh
31
server1.sh
@@ -15,4 +15,35 @@ mkdir -p /etc/bind/domains/fatecseg/
|
||||
|
||||
wget https://git.tmferreira.tec.br/tiago.ferreira/GRC/raw/branch/main/Server1/db.fatecseg.edu.br -O /etc/bind/domains/fatecseg/db.fatecseg.edu.br --no-check-certificate --no-cache
|
||||
|
||||
apt install apache2 -y
|
||||
|
||||
apt install mariadb-server -y
|
||||
|
||||
apt install php php-mysql libapache2-mod-php php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc -y
|
||||
|
||||
wget https://github.com/tmferreira-ti/ASOR/raw/refs/heads/main/Confs/srv2/Apache/fatecseg.conf -O /etc/apache2/sites-available/site.conf --no-check-certificate --no-cache
|
||||
|
||||
mkdir /dados/paginas/fatecseg -p
|
||||
|
||||
a2ensite site.conf
|
||||
|
||||
a2dissite 000-default.conf
|
||||
|
||||
mysql -u root -p -e "CREATE DATABASE wordpress;"
|
||||
mysql -u root -p -e "GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'password';"
|
||||
mysql -u root -p -e "FLUSH PRIVILEGES;"
|
||||
|
||||
|
||||
cd /dados/paginas/fatecseg/
|
||||
|
||||
rm -f index.html
|
||||
|
||||
wget wordpress.org/latest.tar.gz
|
||||
|
||||
tar --strip-components=1 -xzvf latest.tar.gz
|
||||
|
||||
rm -f latest.tar.gz
|
||||
|
||||
chown www-data: -R /dados/paginas/fatecseg/
|
||||
|
||||
reboot
|
||||
Reference in New Issue
Block a user