Installs a LAMP Stack (Linux: Apache, MySQL, and PHP ) with a virtual host matching your VPS's name.
The script can also optionally create a MySQL database and login.
Deploy this script (requires existing VPS)
The settings below are requested when deploying the script:
MySQL root Password: | |
---|---|
Create Database: |
Optional Optionally create this database |
Create MySQL User: |
Optional Optionally create this user |
MySQL User's Password: |
Optional User's password |
This script references the following:
#!/bin/bash # <UDF name="db_password" Label="MySQL root Password" /> # <UDF name="db_name" Label="Create Database" default="" example="Optionally create this database" /> # <UDF name="db_user" Label="Create MySQL User" default="" example="Optionally create this user" /> # <UDF name="db_user_password" Label="MySQL User's Password" default="" example="User's password" /> source <ssinclude StackScriptID="1"> system_update postfix_install_loopback_only mysql_install "$DB_PASSWORD" && mysql_tune 40 mysql_create_database "$DB_PASSWORD" "$DB_NAME" mysql_create_user "$DB_PASSWORD" "$DB_USER" "$DB_USER_PASSWORD" mysql_grant_user "$DB_PASSWORD" "$DB_USER" "$DB_NAME" php_install_with_apache && php_tune apache_install && apache_tune 40 && apache_virtualhost_from_rdns goodstuff restartServices