EngineScript automates the process of building a high-performance LEMP server. We've specifically built EngineScript with WordPress users in mind, so the install process will take you from a bare server all the way to a working WordPress installation with Nginx FastCGI cache enabled in about 30 minutes.
EngineScript Release Stage: Beta
EngineScript is meant to be run as the root user on a fresh VPS. Setup will remove existing Apache, Nginx, PHP, and MySQL installations. Things will break if you run this script on a VPS that has already been configured.
- A Newly Created VPS (Digital Ocean droplet recommended)
- Ubuntu 24.04 (64-Bit)
- 2GB RAM
- Cloudflare (Free or Paid)
Run the following command:
bash <(curl -s https://raw.githubusercontent.com/EngineScript/EngineScript/master/setup.sh)
After the initial setup script has run, you'll need to alter the install options file. Fill this out completely, making sure to change all variables that say PLACEHOLDER
.
Run the following command:
es.config
Once you've filled out the configuration file with your personal settings, continue with the main installation process.
Run the following command:
es.install
After EngineScript is fully installed, type es.menu
in console to bring up the EngineScript menu. Choose 1) Domain Configuration Tools, then select 1) Create New Domain or 2) Import Domain to get started adding your first site to the server. If you're moving an existing site into EngineScript, the Import Domain function is fairly robust and should help simplify the process quite a bit.
Before your site is ready to use, you'll need to make sure it has been added to Cloudflare. The scripts that add or import a domain will automatically add or update the DNS records in Cloudflare to point to your server, issue SSL certificates, and apply numerous performance-related settings in Cloudflare.
For your reference, the settings EngineScript automatically applies can be viewed on our wiki at: Cloudflare Settings Guide.
Although we do our best to automate this process, there are a few settings that we don't or can't currently change via the Cloudflare API. We recommend you enable the following settings manually in Cloudflare:
- Speed Tab: Cloudflare Fonts: On
- Caching Tab: Crawler Hints: On
- Network Tab: HTTP Strict Transport Security (HSTS): On
For Cloudflare to support compression from origin, the following features must be disabled:
- Email Obfuscation
- Rocket Loader
- Server Side Excludes (SSE)
- Mirage
- HTML Minification (JavaScript and CSS can remain enabled)
- Automatic HTTPS Rewrites
For more information, see This is Brotli from Origin.
- In WordPress, go to Settings >> Nginx Helper
- Check Enable Purge.
- Select "nginx Fastcgi cache" for Caching Method
- Select "Using a GET request to PURGE/url (Default option)" for Purging Method.
- Check all of the boxes under Purging Conditions.
- Save Changes.
EngineScript installs a number of additional plugins when a domain is added to the server. These plugins are purely optional, but may add some valuable functionality to your site. We only enable plugins that are required, so please take a moment to review all of the plugins to see if there is anything else you'd like to enable.
We've also developed a basic plugin that disables some bloat from the default WordPress experience such as TinyMCE emojis, Jetpack advertisements, and some legacy CSS from widgets and classic themes. There could be some edge-case scenarios where this breaks something specific you're using, but these tweaks are pretty safe for most users.
EngineScript development is supported by:
Want to support EngineScript? Sponsor this project.
Location | Usage |
---|---|
/etc/mysql | MySQL (MariaDB) config |
/etc/nginx | Nginx config |
/etc/php | PHP config |
/etc/redis | Redis config |
/home/EngineScript | EngineScript user directories |
/usr/local/bin/enginescript | EngineScript source |
/var/lib/mysql | MySQL database |
/var/log | Server logs |
/var/www/admin/enginescript | Tools that may be accessed via server IP address or admin.YOURDOMAIN subdomain |
/var/www/sites/YOURDOMAIN/html | Root directory for your WordPress installation |
Command | Function |
---|---|
es.backup |
Runs the backup script to backup all domains locally and optionally in the cloud |
es.cache |
Clear FastCGI Cache, OpCache, and Redis (server-wide) |
es.config |
Opens the configuration file in Nano |
es.debug |
Displays debug information for EngineScript |
es.help |
Displays EngineScript commands and locations |
es.images |
Losslessly compress all images in the WordPress /uploads directory (server-wide) |
es.info |
Displays server information |
es.install |
Runs the main EngineScript installation script |
es.menu |
EngineScript menu |
es.permissions |
Resets the permissions of all files in the WordPress directory (server-wide) |
es.restart |
Restart Nginx and PHP |
es.sites |
Lists all WordPress sites installed on the server with status information |
es.update |
Update EngineScript |
es.variables |
Opens the variable file in Nano. This file resets when EngineScript is updated |
EngineScript includes a comprehensive web-based admin control panel accessible at https://your-server-ip/admin
or https://admin.yourdomain.com
. The control panel provides:
- Real-time server statistics (CPU, RAM, disk usage)
- Service status monitoring (Nginx, PHP, MariaDB, Redis)
- System activity and security event logging
EngineScript integrates with Uptime Robot to monitor your WordPress websites for uptime and performance:
- Real-time uptime status for all monitored websites
- Response time monitoring and alerts
- Uptime percentage tracking with historical data
- Automatic status reporting in the admin dashboard
Setup Uptime Robot Integration:
- Create a free account at UptimeRobot.com
- Generate an API key in Settings > API Settings (Main API Key)
- Configure the API key on your server:
sudo nano /etc/enginescript/uptimerobot.conf
- Add your API key:
api_key=your_main_api_key_here
- Set proper permissions:
sudo chmod 600 /etc/enginescript/uptimerobot.conf
Once configured, your uptime monitoring data will automatically appear in the admin control panel.
- Tiny File Manager integration for secure web-based file management
- Direct access to WordPress files and directories
- Safe file editing and management interface
- Quick access to common server management tasks
- One-click service restarts and cache clearing
- Server information and diagnostics