This Useful Script creates a Wordpress server based on a Docker Image. You don't know docker to use this solution.
It is easy to add your own plugins and themes.
npm install -g @usdocker/usdocker # Install it first
npm install -g @usdocker/mysql @usdocker/wordpress
usdocker -r # Update USDocker database
usdocker mysql up
usdocker wordpress up
usdocker wordpress down
usdocker wordpress status
You can setup the variables by using:
usdocker wordpress --set variable=value
Default values
- image: "wordpress:4.8-php7.1",
- folder: "$HOME/.usdocker/data/wordpress",
- port: 8080,
- db: "mysql-container",
- dbUser: "root",
- dbPassword: "password",
- dbName: "wordpress",
- dbTablePrefix: "",
- enableDebug: "false"
Use your own setup for wordpress changing this file.
file_uploads = On
memory_limit = 256M
upload_max_filesize = 256M
post_max_size = 300M
max_execution_time = 600