is to automate the ....
- initializing current directory
was to script the installation and configuration of a LAMP webserver (inc: phpMyAdmin, git, Laravel, and curl) as part of my Disaster Recovery Plan. This script has been tested as working on Ubuntu 14.04, 16.04, 20.04.
<username>
for the useris to automate the creation of a new a VHOST (virtual host) for an Apache server based on the assumptions below. This script has been tested as working on Ubuntu 14.04, 16.04, 20.04.
<projectname>
/etc/apache2/sites-available/<projectname>.conf
/web/webroot/<projectname>
folder and sets folder permissions/etc/apache2/sites-available/<projectname>.conf
to a2ensite
service apache2 restart
enabling the website and making it active<projectname>
in /etc/hosts
for local DNS resolution of http://<projectname>/
is to create a backup of all LAMP server configuration files, shell scripts, web files, and MySQL databases as part of my Disaster Recovery Plan.
/etc/apache2/apache2.conf
to /web/backups/etc-apache2/apache2.conf
/etc/apache2/sites-available/
to /web/backups/etc-apache2/sites-available/
/etc/apache2/sites-enabled/
to /web/backups/etc-apache2/sites-enabled/
/etc/php/7.0/apache2/php.ini
to /web/backups/etc-php-7.0-apache2/php.ini
/web/webroot/
to /web/backups/webroot