| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is a quick bash script I wrote to automate creating user hosting accounts on CentOS. It's probably too specific to cater for your needs, I've put it on GitHub so I can manage the code deployed to my servers and there's no harm in sharing it.
You can change paths to reflect your system, but, it's written to work with the following assumptions.
Aside from the assumptions above, this script relies on mkpasswd which is available in yum in the 'expect' package
createUser example.com [php53 || php52]
example.com will be created as a web-root, the account name, and used as part of the filename for all the configuration files created. On my systems both PHP52 and PHP53 are availabe and this script will allow you to specify what type of account is to be created, in simple terms depending on which you select determins which template files are used.
| Back | FazBrowse Home | New Git URL |