CentOS 7.x Webzash
From Notes_Wiki
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x Webzash
To install and use Webzash use following steps:
- Create CentOS 7 lxc container and root ssh to container. In case of VM or physical machine *disable firewalld and SELinux*
- yum -y install php wget mariadb-server httpd php-mysql vim unzip php-bcmath
- Edit /etc/php.ini as follows:
- display_errors = On
- display_startup_errors = On
- Download webzash 2.7 zip file from https://github.com/prashants/webzash/releases using wget in /var/www/html folder. *Other versions such as 2.6, 2.8, etc. are known to not work*. Example:
- cd /root
- wget https://github.com/prashants/webzash/releases/download/v2.7/webzash-v2.7.zip
- cd /var/www/html
- unzip /root/webzash-v2.7.zip
- chmod -R 777 webzash/app/tmp
- chown -R apache:apache webzash/
- Edit '/etc/httpd/conf/httpd.conf' and under '<Directory "/var/www/html">' set:
- AllowOverride All
- Start and enable various services:
-
- systemctl start httpd
- systemctl start mariadb
- systemctl enable httpd
- systemctl enable mariadb
-
- Open http://<fqdn>/webzash and login with admin:admin. Enter new password, name and email ID. If New password is admin, you will be prompted to change it at every login.
- Go to Accounts. Click "here" on creating new accounts. Without creating new account click "Administrator Dashboard". Page with update your settings first would come. Enter following settings:
- Sitename
- IP or FQDN
- Enable logging
- Yes
- Row count
- 50
- Enable account creation
- Enable administrator approval for activating accounts
- Optionally enable email validation for new accounts
- Do not give any smtp authentication settings
- Click submit
- On terminal run
-
- mysql
- > create database <account-name>;
- > \q
- For example
-
- > create database rekall;
-
-
- Click on "Create Account" and enter following:
- Label
- Rekall (Must be simple alphanumeric)
- Company / Personal Name
- Rekall Software Pvt. Ltd.
- Address
- Rekall
- saurabh@example.com
- Current Symbol
- Rs.
- Current Format
- ##,###.##
- Decimal places
- 2
- Date format
- Day-Month-Year
- Financial year start
- 01-Apr-2019
- Financial year end
- 31-Mar-2020
- Connection settings
- MySQL
- Database name
- <account-name> Eg rekall
- Database host
- 127.0.0.1
- Database port
- 3306
- Database login
- root
- Click Submit
- Click on "Accounts" at top, select "Rekall Software" and click activate.
- After this use various menu options at top to use the account.
Refer:
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x Webzash