Skip to content

pothi/local-box

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Local Development Box

Script to quickly install and remove WordPress, PHP and static sites on a local LEMP server.

Supported Platforms

  • Ubuntu LTS last two versions!

Generic Goals

  • To bootstrap a new WordPress site quickly.
  • To remove a new WordPress site.
  • To create or remove a new PHP site automatically.

Performance Checklist

  • Redis for object cache (with memcached as an option)
  • WP Super Cache as full page cache (with Batcache as an alternative)
  • PHP 8.x
  • Nginx with Apache

Security Considerations

  • A user needs the following entry in sudoers file... 'user ALL=(ALL) NOPASSWD: /usr/bin/mysql, /usr/sbin/nginx, /usr/bin/systemctl, /usr/bin/ln, /usr/bin/cp, /usr/bin/rm, /usr/bin/sed' (replace user with the actual username)
  • A common certificate needs to be present for all local sites already. Recommended to use a real certificate.
  • Credentials-less login for PhpMyAdmin for local network.

Implementation Details

  • Agentless.
  • Idempotent.
  • Integrated wp-cli.
  • Support for version control (git, hg).
  • Composer pre-installed.
  • Auto-update of almost everything (wp-cli, composer, certbot certs, etc).
  • Your own SSL CA.
  • PHP-Xdebug pre-installed.

Roadmap

  • Web interface (planned, but no ETA).

Install procedure

  • Rename .envrc-sample file as .envrc and insert as much information as possible
  • Set correct sudo permission ('user ALL=(ALL) NOPASSWD: /usr/bin/mysql, /usr/sbin/nginx, /usr/bin/systemctl, /usr/bin/ln, /usr/bin/cp, /usr/bin/rm, /usr/bin/sed'). Replace user with the actual username.
  • Download local-box and try to execute it.

About

Local LEMP Box to develop and test WP/PHP Sites faster. Based on the latest Ubuntu LTS!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages