forked from verekia/initializr-website
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
#A set of commands to install the LAMP stack on fedora 23 | |||
#Batteries not included. This does not configure or even verify installations. Use as a guide, not a script. | |||
#Run these commands with sudo or as root. | |||
#WISHLIST: non-interactive version. | |||
#Tested on fedora 23 4.2.3-300.x86_64 | |||
#Source: http://www.unixmen.com/how-to-install-lamp-stack-in-fedora-23/ | |||
|
|||
#Install Apache | |||
dnf install httpd -y | |||
systemctl enable httpd | |||
systemctl start httpd | |||
firewall-cmd --permanent --add-service=http | |||
firewall-cmd --permanent --add-service=https | |||
firewall-cmd --reload | |||
|
|||
#Install MariaDB | |||
dnf install mariadb mariadb-server -y | |||
systemctl enable mariadb | |||
systemctl start mariadb | |||
mysql_secure_installation | |||
|
|||
#Install PHP and modules | |||
dnf install php -y | |||
systemctl restart httpd | |||
dnf install php-mysql -y | |||
systemctl restart httpd |