Bash
Common bash script for using in production.
Support Environments
|OS |Min |Max | |——-|——-|—–| |Ubuntu |16.04 |20.04| |Debian |8 |10 | |CentOS |6 |8 |
Usage
Apache 2
Install Apache2
latest vesion
curl -s https://amusdev.github.io/bash/apache.sh | sudo bash
Nginx
Install Nginx
latest vesion
curl -s https://amusdev.github.io/bash/nginx.sh | sudo bash
PHP
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
Alternative
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
Node.js
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 -n
Alternative
export NODEJS_VERSION=14
export NPM_VERSION=7
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
MySQL
Install MySQL
version as 5.7
| 8.0
curl -s https://amusdev.github.io/bash/mysql.sh | sudo bash -s -- -v -p
Alternative
export MYSQL_VERSION=5.7
export MYSQL_PASSWORD=P@ssw0rd
curl -s https://amusdev.github.io/bash/php.sh | sudo bash
Apache + PHP
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
Alternative
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/apache_php.sh | sudo bash
Nginx + PHP
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
Alternative
export PHP_VERSION=7.3
curl -s https://amusdev.github.io/bash/nginx_php.sh | sudo bash
Nginx + PHP + MySQL
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 -m -t
Alternative
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