webadmin/INSTALLATION.md

40 lines
1.6 KiB
Markdown
Raw Normal View History

2017-07-26 13:18:16 +00:00
## INSTALLATION
2017-07-28 07:35:27 +00:00
- `composer clearcache` (optional)
- Clone the current master with: `git clone https://github.com/sophimail/webadmin.git`
- `cd webadmin`
- Install dependencies: `composer install`
- `chown -R :your-web-server-group-name webadmin`
2017-07-26 13:13:00 +00:00
2017-07-26 13:17:28 +00:00
## Database initialization
2017-07-26 13:13:00 +00:00
2017-07-28 07:27:05 +00:00
Note: Database for SophiMail Webadmin must use UTF-8 character set. Create a new database with DB name \`a0001\`.
2017-07-26 13:13:00 +00:00
2017-07-28 07:43:48 +00:00
- `create database a0001 default character set latin1;`
2017-07-28 07:35:27 +00:00
- `mysql a0001 < SQL/mysql.initial.sql`
2017-07-26 13:13:00 +00:00
## DSN configuration
Modify file: config/app.php
2017-07-26 13:17:28 +00:00
- Default Datasource: DB: a0001 on localhost.
2017-07-26 13:24:09 +00:00
The default administrative database for server locations, administrators and domain attributes.
2017-07-26 13:13:00 +00:00
2017-07-26 13:29:41 +00:00
- DB1 remote Datasource, it is the actual email server database (according to PostfixAdmin db scheme). This can be a remote database on different location.
2017-07-26 13:13:00 +00:00
Additionally, one can add as many datasource as the email servers under administration. For instance add DB2 as another datasource to manage another remote email server.
2017-07-26 13:26:13 +00:00
Thus, within a single web instance an administrator can manage multiple email server engines on different locations, even on-premise. Remember to enable port 3306 on firewall on remote machines only for the web server IP running the webadmin virtual host.
2017-07-26 13:13:00 +00:00
2017-07-28 07:43:48 +00:00
2017-07-26 13:13:00 +00:00
## Create Superadmin user
2017-07-28 07:35:27 +00:00
- `cd webadmin`
- `bin/cake users addSuperuser`
2017-07-26 13:13:00 +00:00
## Final steps
- Configure apache for the new virtual host
- Login as superuser and the password given above (addSuperuser step)
- After login, create datasources under Manage -> Locations and provide the datasource DSN name given in app.php found in 'DSN configuration' section above e.g. Datasource: DB1