Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This program is free software: you can redistribute it and/or modify
- #it under the terms of the GNU General Public License as published by
- #the Free Software Foundation, either version 3 of the License, or
- #(at your option) any later version.
- #This program is distributed in the hope that it will be useful,
- #but WITHOUT ANY WARRANTY; without even the implied warranty of
- #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- #GNU General Public License for more details.
- #You should have received a copy of the GNU General Public License
- #along with this program. If not, see <http://www.gnu.org/licenses/>.
- ###############################################################
- echo "Performing a system update...please wait"
- sleep 1
- dnf update
- ###############################################################
- echo "Installing httpd"
- sleep 1
- dnf install httpd
- systemctl start httpd.service
- sleep 1
- systemctl status httpd.service
- sleep 1
- ###############################################################
- echo "Installing mariadb-server"
- dnf install mariadb-server
- sleep 1
- echo "Starting mariadb"
- systemctl start mariadb
- sleep 1
- systemctl status mariadb
- sleep 1
- echo "Adding mariadb to boot services"
- systemctl enable mariadb
- sleep 1
- mysql_secure_installation
- ##################################################################
- echo "Installing PHP"
- dnf install php php-mysql
- sleep 1
- echo "Restarting apache for system changes to take effect"
- systemctl restart httpd.service
- sleep 1
- systemctl status httpd
- sleep 1
- ###################################################################
- sleep 1
- echo "Allowing http & https traffic to server through firewall"
- sleep 1
- firewall-cmd --set-default-zone=public && firewall-cmd --permanent --zone=public --add-service=http && firewall-cmd --permanent --zone=public --add-service=https && firewall-cmd --reload
- ####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement