Welcome to the Wiki for my Linux script to install Apache, MySQL, and PHP.
I designed this script for Fedora.
To install, download it to the home drive or the directory where you want it saved.
To run, you will need to give the script execution runtime permissions using the command below
chmod +x install-LAMP-phpMyAdmin-PHP82.sh
To run the install for LAMP, use the following command
.\install-LAMP-phpMyAdmin-PHP82.sh
It will run in a loop and install
Then it will loop and ask if you want to create a virtual host. It will prompt you for the FQDN. The script will create the following
- The directory in /var/www/
- Activate the host with Apache
To uninstall, download it to the home drive or the directory where you want it saved.
This script will also need execution runtime permissions. To give it the permissions, use:
`chmod +x uninstall-LAMP-phpMyAdmin-PHP82.sh
To run the uninstall of LAMP, use the following command:
.\uninstall-LAMP-phpMyAdmin-PHP82.sh
It will uninstall
To set up a Virtual Host, run the script below
To add a virtual host, use the following command:
.\add_vhost.sh
It will prompt you for the following and set up
- Virtual hostname (Use FQDN)
- Activate Virtual Host with Apache
The script will loop and ask if you would like to set up another virtual host.
To use the Manage Virtual Host, run the script below
Download the script and navigate to the folder you downloaded it to in terminal
To run, you will need to give the script execution runtime permissions using the command below
chmod +x manage_vhosts.sh
To run the Managem Virtual Host, use the following command:
.\manage_vhosts.sh
This script will let you add or delete virtual hosts. It comes in handy when managing your test environment.