Install and database setup improvements
This commit is contained in:
@@ -31,12 +31,12 @@ the privileges for accessing and modifying it.
|
||||
|
||||
Create database-user for application with minimum necessary rights.
|
||||
|
||||
CREATE USER 'ymsgui'@'localhost' IDENTIFIED BY '********';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON yms.* TO 'ymsgui'@'localhost';
|
||||
CREATE USER 'ymsweb'@'localhost' IDENTIFIED BY '********';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON yms.* TO 'ymsweb'@'localhost';
|
||||
|
||||
3. Run database import
|
||||
|
||||
Import the mariadb.sql file into your database, which will create the tables
|
||||
Import the mariadb.sql file into your database, which will create the tables.
|
||||
|
||||
mariadb yms < mariadb.sql
|
||||
|
||||
@@ -54,21 +54,23 @@ Optional import some sample data
|
||||
mariadb yms < mariadb_sample.sql
|
||||
|
||||
4. Initialize document storage
|
||||
Customize path and accessrights to your needs
|
||||
|
||||
Customize path and access rights to your needs
|
||||
|
||||
mkdir /var/local/yms
|
||||
mkdir /var/local/yms/thumb
|
||||
chown -R www-data /var/local/yms
|
||||
chmod -R 750 /var/local/yms
|
||||
|
||||
5. Upload webgui files
|
||||
5. Install webgui
|
||||
|
||||
5.1 Upload webgui files
|
||||
|
||||
Upload all files and directories (except the install directory) to your
|
||||
webserver.
|
||||
Disallow access to include files (.inc). There is an example _htaccess
|
||||
file.
|
||||
|
||||
6. Create and edit webgui config file
|
||||
5.2. Create and edit webgui config file
|
||||
|
||||
Rename sample configfile config.php-sample:
|
||||
|
||||
@@ -76,24 +78,26 @@ Rename sample configfile config.php-sample:
|
||||
|
||||
Open config.inc in a text editor and fill in your database details.
|
||||
|
||||
7. Check file access rights for security
|
||||
5.3. Check file access rights for security
|
||||
|
||||
Configfile should be readable by webserver but not writeable.
|
||||
|
||||
chmod 640 config.inc
|
||||
chgrp www-data config.inc
|
||||
|
||||
8. Setup local GUI
|
||||
6. Setup local GUI
|
||||
|
||||
Create a local database user with same name as your computer user and allow
|
||||
database acces with current unix credentials:
|
||||
mysql> CREATE USER 'ymsgui'@'localhost' IDENTIFIED BY 'geheim';
|
||||
mysql> ALTER USER ymsgui@localhost IDENTIFIED VIA unix_socket;
|
||||
mysql> CREATE USER 'ymsgui'@'localhost' IDENTIFIED VIA unix_socket;
|
||||
|
||||
Start ymdgui.py, default configuration file is automatically created
|
||||
Start ymsgui.py, default configuration file is automatically created
|
||||
|
||||
9. Start using YMS
|
||||
7. Start using YMS
|
||||
|
||||
Use webgui:
|
||||
Start your browser and login to YMS with the default username/password:
|
||||
captain/captain
|
||||
|
||||
Use local client:
|
||||
Start ymsgui.py
|
||||
|
||||
Reference in New Issue
Block a user