Add section for creating database user

This commit is contained in:
Daniel Winzen
2017-05-19 18:28:57 +02:00
parent 8b93cd6dc7
commit cfc5e1e9b6

View File

@ -66,7 +66,14 @@ For web based mail management grab the latest squirrelmail and install it in /va
cd /var/www/html/ && svn checkout https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail && cd squirrelmail && ./configure cd /var/www/html/ && svn checkout https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail && cd squirrelmail && ./configure
``` ```
Add a user to the SQL database for managing hosted sites and grant all privileges to it. Then edit the database configuration in /var/www/common.php and last but not least setup the database by running Create a mysql user with all permissions for our hosting management:
```
mysql
CREATE USER 'hosting'@'localhost' IDENTIFIED BY 'MY_PASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'hosting'@'localhost' WITH GRANT OPTION;
```
Then edit the database configuration in /var/www/common.php and last but not least setup the database by running
``` ```
php /var/www/setup.php php /var/www/setup.php
``` ```