Create vHost with user and MySQL database


/ Published in: Bash
Save to your folder(s)

With this script a new user gets created and gets his own VirtualHost and database. The username is used for building the domain, so the username "test" leads to the domain test.local.

The password for the MySQL account used for creating the database has to be filled in for the script to work. Also the script has to be run by root.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.