https://github.com/enginescript/enginescript
EngineScript is a super fast WordPress server built on Ubuntu and optimized for Cloudflare and Digital Ocean
https://github.com/enginescript/enginescript
cloudflare digital-ocean digitalocean linux-server linux-server-auto-install mariadb nginx nginx-auto-cofiguration nginx-configuration php83 sensei sensei-lms server-automation ubuntu wordfence wordpress wordpress-autoinstall wordpress-performance wordpress-security wordpress-site
Last synced: 5 months ago
JSON representation
EngineScript is a super fast WordPress server built on Ubuntu and optimized for Cloudflare and Digital Ocean
- Host: GitHub
- URL: https://github.com/enginescript/enginescript
- Owner: EngineScript
- License: gpl-3.0
- Created: 2019-06-13T01:31:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-03T06:05:03.000Z (5 months ago)
- Last Synced: 2025-07-03T06:34:52.743Z (5 months ago)
- Topics: cloudflare, digital-ocean, digitalocean, linux-server, linux-server-auto-install, mariadb, nginx, nginx-auto-cofiguration, nginx-configuration, php83, sensei, sensei-lms, server-automation, ubuntu, wordfence, wordpress, wordpress-autoinstall, wordpress-performance, wordpress-security, wordpress-site
- Language: Shell
- Homepage:
- Size: 1.98 MB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# EngineScript
[](https://app.codacy.com/gh/EngineScript/EngineScript/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://ubuntu.com/)
[](https://nginx.org/)
[](https://www.php.net/)
[](https://mariadb.org/)
[](https://redis.io/)
[](https://m.do.co/c/e57cc8492285)
[](https://cloudflare.com/)
[](https://wordpress.org/)
[](https://wp-cli.org/)
[](https://github.com/acmesh-official/acme.sh)
[](https://www.phpmyadmin.net/)
[](https://aws.amazon.com/cli/)
## A High-Performance WordPress Server Built on Ubuntu and Cloudflare
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**
## Minimum Requirements
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](https://m.do.co/c/e57cc8492285) droplet recommended)*
- **Ubuntu 24.04 (64-Bit)** *(Ubuntu 22.04 is also supported but is not recommended)*
- **2GB RAM**
- **Cloudflare** *(Free or Paid)*
----------
## Install EngineScript
### Step 1 - Initial Install
Run the following command:
```shell
bash <(curl -s https://raw.githubusercontent.com/EngineScript/EngineScript/master/setup.sh)
```
### Step 2 - Edit Options File
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:
```shell
es.config
```
### Step 3 - Main Install Process
Once you've filled out the configuration file with your personal settings, continue with the main installation process.
Run the following command:
```shell
es.install
```
----------
## Domain Creation
### EngineScript Menu
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.
### Cloudflare
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](https://github.com/EngineScript/EngineScript/wiki/Cloudflare-Settings).
### Manual Cloudflare Settings
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:
1. Speed Tab: **Cloudflare Fonts**: **On**
2. Caching Tab: **Crawler Hints**: **On**
3. Network Tab: **HTTP Strict Transport Security (HSTS)**: **On**
#### Brotli and Gzip from Origin
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](https://blog.cloudflare.com/this-is-brotli-from-origin/).
### WordPress Plugins
#### Nginx Helper
1. In WordPress, go to Settings >> Nginx Helper
2. Check Enable Purge.
3. Select "nginx Fastcgi cache" for Caching Method
4. Select "Using a GET request to PURGE/url (Default option)" for Purging Method.
5. Check all of the boxes under Purging Conditions.
6. Save Changes.
#### Other Plugins
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.
----------
## Sponsors:
EngineScript development is supported by:
Want to support EngineScript? [Sponsor this project](https://github.com/sponsors/EngineScript).
----------
## EngineScript Information Reference
### EngineScript Locations
|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 |
### EngineScript Commands
|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.update`** |Update EngineScript |
|**`es.variables`** |Opens the variable file in Nano. This file resets when EngineScript is updated |
### Software EngineScript Utilizes:
|Software|Version|Source|
|-|-|-|
| **Certificate Management** |
|ACME.sh|Latest|https://get.acme.sh |
||
||
|**Web Server**|
|NGINX MAINLINE|1.27.5|https://nginx.org/en/download.html |
|NGINX CACHE PURGE|2.5.3|https://github.com/nginx-modules/ngx_cache_purge |
|NGINX HEADERS MORE|0.38|https://github.com/openresty/headers-more-nginx-module |
|NGINX PATCH: Dynamic TLS Records|Latest |https://github.com/kn007/patch|
|OPENSSL|3.4.1|https://www.openssl.org/source/ |
|PCRE2|10.45|https://github.com/PCRE2Project/pcre2/releases |
|ZLIB-Cloudflare|Latest|https://github.com/cloudflare/zlib |
||
||
|**Script Processing**|
|PHP|8.3|https://launchpad.net/~ondrej/+archive/ubuntu/php |
||
||
|**MySQL Database**|
|MARIADB|11.4.5|https://mariadb.org/download/ |
||
||
|**Database Management**|
|ADMINER|||
|PHPMYADMIN|5.2.2|https://www.phpmyadmin.net/downloads/ |
||
||
|**Object Cache**|
|REDIS|Latest|https://redis.io/ |
||
||
|**Content Management System (CMS)**|
|WORDPRESS | Latest |https://wordpress.org |
|WP-CLI | Latest |https://github.com/wp-cli/wp-cli |
|WP-CLI: doctor-command | Latest |https://github.com/wp-cli/doctor-command |
|WP-CLI: WP Launch Check | Latest |https://github.com/pantheon-systems/wp_launch_check |
|PLUGIN: App for Cloudflare| Latest |https://wordpress.org/plugins/app-for-cf/ |
|PLUGIN: EngineScript: Simple Site Exporter| 1.5.8 | [https://github.com/EngineScript/Simple-WP-Site-Exporter](https://github.com/EngineScript/Simple-WP-Site-Exporter) |
|PLUGIN: EngineScript: Simple WP Optimizer| 1.5.4 | [https://github.com/EngineScript/Simple-WP-Optimizer](https://github.com/EngineScript/Simple-WP-Optimizer) |
|PLUGIN: MariaDB Health Checks *(recommended)* | Latest |https://wordpress.org/plugins/mariadb-health-checks/ |
|PLUGIN: Nginx Helper *(required)* | Latest |https://wordpress.org/plugins/nginx-helper/ |
|PLUGIN: PHP Compatibility Checker| Latest |https://wordpress.org/plugins/php-compatibility-checker/ |
|PLUGIN: Redis Object Cache *(recommended)*| Latest |https://wordpress.org/plugins/redis-cache/ |
|PLUGIN: The SEO Framework *(recommended)*| Latest |https://wordpress.org/plugins/autodescription/ |
|PLUGIN: Theme Check| Latest |https://wordpress.org/plugins/theme-check/ |
|PLUGIN: WP Crontrol| Latest |https://wordpress.org/plugins/wp-crontrol/ |
|PLUGIN: WP Mail SMTP| Latest |https://wordpress.org/plugins/wp-mail-smtp/ |
|PLUGIN: WP OPcache *(recommended)*| Latest | https://wordpress.org/plugins/flush-opcache/ |
||
||
|**Security**|
|MALDETECT|Latest|https://www.rfxn.com/projects/linux-malware-detect/ |
|PHP-MALWARE-FINDER|Latest|https://github.com/nbs-system/php-malware-finder |
|UNCOMPLICATED FIREWALL (UFW) || Bundled with Ubuntu |
|WORDFENCE CLI||https://github.com/wordfence/wordfence-cli/releases |
|WPSCAN|Latest|https://wpscan.com/ |
||
||
|**Development Tools**|
|PNGOUT|20200115|http://www.jonof.id.au/kenutils.html |
|ZIMAGEOPTIMIZER|Latest|https://github.com/zevilz/zImageOptimizer |
||
||
|**Backup Software**|
|LOCAL BACKUPS|| Bash Scripts |
|AMAZON AWS CLI|Latest|https://aws.amazon.com/cli/ |
||
||
|**Misc Supplemental Software**|
|LIBURING|2.9|https://github.com/axboe/liburing |
|MYSQLTUNER|Latest|https://github.com/major/MySQLTuner-perl |
|ZLIB|1.3.1|https://github.com/madler/zlib |
|Admin Control Panel Template|-|https://github.com/bhjoco/onepage-medium |
----------