Script Details
A TuxLite package will typically include 5 scripts.
1. Setup.sh
The main function of Setup.sh is to install the LAMP/LNMP stack. All functions are NON destructive, therefore it is safe if you accidentally run the functions more than once. Setup.sh also includes several other functions:-
- Basic server configuration such as setting up hostname, sysctl hardening, changing SSHD port and disabling root login.
- Optimizes LAMP/LNMP config for low memory usage.
- Secures /tmp
2. Domain.sh
Once your LAMP/LNMP stack is installed, adding a domain or subdomain is extremely easy with this script. You can also remove an unwanted domain. Domain.sh does the following for you :-
- Configures virtualhost entries.
- Creates a public_html directory for the domain.
- Configures Awstats and daily log rotation for domains.
- Enable/disable public viewing of Phpmyadmin and Awstats.
3. Backup.sh
Configures cronjobs to automate backing up of your domains. You can set the interval to be daily, weekly or monthly. This script does the following :-
- Create a backup directory for a specified user.
- Setup cronjob to mysqldump a specified MySQL database.
- Setup cronjob to create a zipped tarball of your domain's root directory.
4. Varnish.sh
This script installs and configures Varnish HTTP accelerator. Very effective for caching static files or even dynamic pages. When Varnish is enabled, virtualhosts will be configured to listen on port 8080 and Varnish will listen on port 80.
Varnish is only recommended for advanced users who know how to configure the Varnish configuration language.
5. Wordpress.sh
This is a two step interactive wordpress installer. Simply select which domain to install wordpress on, enter desired database and path details and it does everything else for you. This includes setting up the database, downloading the latest version of wordpress and configuring the wp-config.php for wordpress.