CentOS 7.x Webzash

From Notes_Wiki
Revision as of 10:09, 26 September 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_Web_Based_Tools|Web based tools</yambe:breadcrumb> =CentOS 7.x Webzash= To install and use Webzash use following steps: # Create CentOS 7 lxc con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_Web_Based_Tools|Web based tools</yambe:breadcrumb>

CentOS 7.x Webzash

To install and use Webzash use following steps:

  1. Create CentOS 7 lxc container and root ssh to container. In case of VM or physical machine *disable firewalld and SELinux*
  2. yum -y install php wget mariadb-server httpd php-mysql vim unzip php-bcmath
  3. Edit /etc/php.ini as follows:
    display_errors = On
    display_startup_errors = On
  4. 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/
  5. Edit '/etc/httpd/conf/httpd.conf' and under '<Directory "/var/www/html">' set:
    AllowOverride All
  6. Start and enable various services:
    systemctl start httpd
    systemctl start mariadb
    systemctl enable httpd
    systemctl enable mariadb
  7. 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.
  8. 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
    1. 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
  9. On terminal run
    mysql
    > create database <account-name>;
    > \q
    For example
    > create database rekall;
  10. Click on "Create Account" and enter following:
    Label
    Rekall (Must be simple alphanumeric)
    Company / Personal Name
    Rekall Software Pvt. Ltd.
    Address
    Rekall
    Email
    saurabh@rekallsoftware.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
  11. Click on "Accounts" at top, select "Rekall Software" and click activate.
  12. After this use various menu options at top to use the account.


Refer:


<yambe:breadcrumb>CentOS_7.x_Web_Based_Tools|Web based tools</yambe:breadcrumb>