Install Joomla
  1. wget https://downloads.joomla.org/cms/joomla3/3-9-26/Joomla_3-9-26-Stable-Full_Package.tar.gz?format=gz -O Joomla_3-9-26-Stable-Full_Package.tar.gz
  2. tar xvzf Joomla_3-9-26-Stable-Full_Package.tar.gz
  3. Create database and user
(
user=$(whoami)
read -p "Database Name: " db
uapi Mysql create_database name="${user}_${db}"
pass=$(head /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c15)
uapi Mysql create_user name="${user}_${db}" password="$pass"
uapi Mysql set_privileges_on_database user="${user}_${db}" database="${user}_${db}" privileges='ALL PRIVILEGES'
uapi Mysql get_privileges_on_database user="${user}_${db}" database="${user}_${db}" | grep 'ALL PRIVILEGES'
echo $pass
echo "${user}_${db}"
)
  1. Navigate to site/url in browser to complete installation