Common bash script for using in production.
OS | Min | Max |
---|---|---|
Ubuntu | 16.04 | 20.04 |
Debian | 8 | 10 |
CentOS | 6 | 8 |
Install Apache2
latest vesion
curl -s https://amusdev.github.io/bash/apache.sh | sudo bash
Install Nginx
latest vesion
curl -s https://amusdev.github.io/bash/nginx.sh | sudo bash
Install PHP
version as 5.6
| 7.0
| 7.1
| 7.2
| 7.3
| 7.4
| 8.0
curl -s https://amusdev.github.io/bash/php.sh | sudo bash -s -- -v {{php_version}}
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
Install Node.js
version as 10.x
| 11.x
| 12.x
| 13.x
| 14.x
| 15.x
| 16.x
Install npm
version as 5.x
| 6.x
| 7.x
curl -s https://amusdev.github.io/bash/nodejs.sh | sudo bash -s -- -v {{node_version}} -n {{npm_version}}
export NODEJS_VERSION=14
export NPM_VERSION=7
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
Install MySQL
version as 5.7
| 8.0
curl -s https://amusdev.github.io/bash/mysql.sh | sudo bash -s -- -v {{MySQL_version}} -p {{MySQL_root_password}}
export MYSQL_VERSION=5.7
export MYSQL_PASSWORD=P@ssw0rd
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
Install Apache2
latest version
Install PHP
version as 5.6
| 7.0
| 7.1
| 7.2
| 7.3
| 7.4
| 8.0
curl -s https://amusdev.github.io/bash/apache_php.sh | sudo bash -s -- -p {{php_version}}
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/apache_php.sh | sudo bash
Install Nginx
latest vesion
Install PHP
version as 5.6
| 7.0
| 7.1
| 7.2
| 7.3
| 7.4
| 8.0
curl -s https://amusdev.github.io/bash/nginx_php.sh | sudo bash -s -- -p {{php_version}}
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/nginx_php.sh | sudo bash
Install Nginx
latest vesion
Install PHP
version as 5.6
| 7.0
| 7.1
| 7.2
| 7.3
| 7.4
| 8.0
Install MySQL
version as 5.7
| 8.0
curl -s https://amusdev.github.io/bash/nginx_php_mysql.sh | sudo bash -s -- -p {{php_version}} -m {{MySQL_version}} -t {{MySQL_root_password}}
export PHP_VERSION=7.3
export MYSQL_VERSION=5.7
export MYSQL_PASSWORD=P@ssw0rd
curl -s https://amusdev.github.io/bash/nginx_php_mysql.sh | sudo bash