123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/bin/bash
- # Author: admin@serverok.in
- # Web: https://serverok.in
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y install apache2
- apt -y install libapache2-mod-ruid2
- systemctl enable apache2
- a2enmod rewrite
- a2enmod ssl
- a2enmod headers
- sed -i 's/#Mutex file:..APACHE_LOCK_DIR. default/Mutex posixsem/g' /etc/apache2/apache2.conf
- apt-get install software-properties-common
- add-apt-repository ppa:ondrej/php
- apt -y upgrade
- apt install -y php7.4
- apt install -y php7.4-bcmath php7.4-bz2 php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-dba php7.4-dev php7.4-enchant php7.4-gd php7.4-gmp php7.4-imap php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-pgsql php7.4-pspell php7.4-readline php7.4-soap php7.4-sqlite3 php7.4-sybase php7.4-tidy php7.4-xml php7.4-xmlrpc php7.4-zip php7.4-xsl php7.4-gmp php7.4-imagick
- apt install -y libapache2-mod-php7.4
- a2enmod php7.4
- service apache2 restart
- apt-get -y install mariadb-client mariadb-server
- systemctl enable mariadb
- apt install automysqlbackup -y
- echo "postfix postfix/mailname string `hostname`" | debconf-set-selections
- echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
- apt-get install -y postfix
- systemctl enable apache2
- systemctl restart apache2
- apt install -y monit
- ln -s /etc/monit/conf-available/apache2 /etc/monit/conf-enabled/
- ln -s /etc/monit/conf-available/mysql /etc/monit/conf-enabled/
- systemctl enable monit
- systemctl start monit
|