PHPackages                             leoloso/awseb-le-wp-install - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. leoloso/awseb-le-wp-install

ActiveProject

leoloso/awseb-le-wp-install
===========================

Quickly launch WordPress in a AWS Elastic Beanstalk single instance with Let's Encrypt

v0.1(6y ago)45MITPHPPHP ~7.1

Since Aug 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/leoloso/awseb-le-wp-install)[ Packagist](https://packagist.org/packages/leoloso/awseb-le-wp-install)[ Docs](https://github.com/leoloso/awseb-le-wp-install)[ RSS](/packages/leoloso-awseb-le-wp-install/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Install WordPress on an AWS Elastic Beanstalk single instance with Let's Encrypt
================================================================================

[](#install-wordpress-on-an-aws-elastic-beanstalk-single-instance-with-lets-encrypt)

Bootstrapper to launch WordPress in an AWS Elastic Beanstalk single instance with Let's Encrypt, configurable through environment variables

Description
-----------

[](#description)

This project is ready to be deployed to Elastic Beanstalk under a single instance, featuring:

- WordPress pre-installed, admin area accessible under `/wp/wp-admin/`
- HTTPS through [Let's Encrypt](https://letsencrypt.org/)
- Cronjob to automatically renew the Let's Encrypt certificate
- All information is set through environment variables

Usage
-----

[](#usage)

Via [Composer](https://getcomposer.org):

```
composer create-project leoloso/awseb-le-wp-install
```

After bootstrapping this project, add your own code, and deploy!

Environment variables
---------------------

[](#environment-variables)

Define the following environment variables in the Elastic Beanstalk application's configuration (under entry "Software"), or using CLI command `eb setenv`:

1. WordPress configuration (`wp-config.php`):

```
DB_NAME={YOUR_SITE_DB_NAME} #eg: database
DB_USER={YOUR_SITE_DB_USER} #eg: admin
DB_PASSWORD={YOUR_SITE_DB_PASSWORD} #eg: sADF!kl9diq@#Sjfk
DB_HOST={YOUR_SITE_DB_HOST} #eg: 127.0.0.1
SITE_URL_WITHOUT_HTTP={YOUR_SITE_URL_WITHOUT_HTTP} #eg: yourdomain.com
SITE_URL_WITH_HTTP={YOUR_SITE_URL_WITH_HTTP} #eg: https://yourdomain.com
SITE_NAME="{YOUR_SITE_NAME}" #eg: "My awesome website"
ADMIN_USER={ADMIN_USER} #eg: admin
ADMIN_PASSWORD={ADMIN_PASSWORD} #eg: JKo$@sfjASD00w
ADMIN_EMAIL={ADMIN_EMAIL} #eg: pedro@example.com
```

To set the SALT keys there are two alternatives:

I. Set random values through environment variable `SHUFFLE_SALT_KEYS`:

```
SHUFFLE_SALT_KEYS=true
```

II. Set the corresponding values directly:

```
# Obtain random values from https://api.wordpress.org/secret-key/1.1/salt
AUTH_KEY={YOUR_AUTH_KEY}
SECURE_AUTH_KEY={YOUR_SECURE_AUTH_KEY}
LOGGED_IN_KEY={YOUR_LOGGED_IN_KEY}
NONCE_KEY={YOUR_NONCE_KEY}
AUTH_SALT={YOUR_AUTH_SALT}
SECURE_AUTH_SALT={YOUR_SECURE_AUTH_SALT}
LOGGED_IN_SALT={YOUR_LOGGED_IN_SALT}
NONCE_SALT={YOUR_NONCE_SALT}
```

2. Let's Encrypt configuration:

```
LETSENCRYPT_DOMAIN={YOUR_LETSENCRYPT_DOMAIN} # Domain to register: yourdomain.com
LETSENCRYPT_EMAIL={YOUR_EMAIL} # eg: pedro@example.com
LETSENCRYPT_OPTIONS={YOUR_LETSENCRYPT_OPTIONS} # Can be used to pass "--dry-run" to avoid re-registering the certificate when launching a new server instance
```

Credits
-------

[](#credits)

The Let's Encrypt configuration was mostly taken from [Radek Zajkowski](https://twitter.com/konaorange)'s article [Elastic Beanstalk and Let’s Encrypt](https://medium.com/@konaorange/elastic-beanstalk-and-lets-encrypt-74458f072f0c).

Installing WordPress through Composer and WP-CLI is based [another project of mine](https://github.com/leoloso/wp-install).

- [Leonardo Losoviz](https://github.com/leoloso)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2476d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1981996?v=4)[Leonardo Losoviz](/maintainers/leoloso)[@leoloso](https://github.com/leoloso)

---

Top Contributors

[![leoloso](https://avatars.githubusercontent.com/u/1981996?v=4)](https://github.com/leoloso "leoloso (8 commits)")

---

Tags

amazonawsbeanstalkbootstrapebelasticbeanstalkletsencryptwordpresswpwordpressamazonawsencryptelasticbootstrapbeanstalkletsencrypteb

### Embed Badge

![Health badge](/badges/leoloso-awseb-le-wp-install/health.svg)

```
[![Health](https://phpackages.com/badges/leoloso-awseb-le-wp-install/health.svg)](https://phpackages.com/packages/leoloso-awseb-le-wp-install)
```

###  Alternatives

[async-aws/s3

S3 client, part of the AWS SDK provided by AsyncAws.

5714.0M32](/packages/async-aws-s3)[vinelab/cdn

Content Delivery Network (CDN) Package for Laravel

217240.8k1](/packages/vinelab-cdn)[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40378.6k1](/packages/mcfedr-awspushbundle)[platinumpixs/aws-symfony2-bundle

A simple Symfony 2 bundle for including the AWS SDK for PHP.

1274.3k1](/packages/platinumpixs-aws-symfony2-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
