A collection of scripts for setting up various items / running tasks on serverpilot provisioned servers
THIS SCRIPT IS TO BE RUN ENTIRELY AT YOUR OWN RISK
WE ARE NOT RESPONSIBLE FOR LOSS OF DATA OR ANY OTHER BAD THINGS THAT MAY HAPPEN AS A RESULT OF RUNNING THIS SCRIPT
Installation & Usage
- ssh into your serverpilot server e.g.
- Login as root
su(important: do not skip)
- Run script from GitHub
bash <(curl -s https://raw.githubusercontent.com/webdna/serverpilot-scripts/master/serverpilot-scripts.sh)
- The script will prompt asking you if you would like to run each part as listed below.
- LEMP Stack (Nginx Only, No Apache)
- Disable MySQL (5.7) Strict Mode
- Image Optimisation Libraries
- Password Protect
- Nginx Expires Config
LEMP Stack (Nginx Only, No Apache)
If your app doesn't utilize .htaccess files, it is possible to have Nginx interact directly with PHP-FPM and bypass Apache entirely.
MySQL provides a command line utility, mysqldump, for exporting databases as raw SQL. Instead of running mysqldump manually, you can install a script that will automatically run mysqldump every day on all of your databases. One of the most popular of these scripts is automysqlbackup.
The ImageMagick extension supports PHP 5.4, 5.5, 5.6, 7.0, and 7.1.
Disable MySQL (5.7) Strict Mode
If your app was written for older versions of MySQL and is not compatible with strict SQL mode in MySQL 5.7, you can disable strict SQL mode. For example, apps such as WHMCS 6 and Craft 2 do not support strict SQL mode.
Image Optimisation Libraries
Installation of the following image optimisation libraries:
Ability to add Auth Basic to apps with in serverpilot. This is setup within the nginx app config so will work with both people using nginx + apache and nginx only
Nginx Expires Config
- nginx bad bots
- Image optimisation libraries
- MariaDB Installation
- Password protect apps
- Nginx expires config