Setting up uknowva on your own Premises using PHP 5.6

To successfully install uKnowva HRMS application on your private cloud, follow the below-mentioned configuration specifications.

To run uKnowva HRMS you would require to install Apache, PHP and MySQL.

 

Applications and ToolsDescriptionCommand
  To Install Gcc And Development Tools On A Centos / Rhel 7 Server #yum group install "Development Tools"
PHP To Install Php 5.6, You Have To Install And Enable Epel And Remi Repository To Your Centos /RHEL 7 System

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

#yum install yum-utils

# yum-config-manager --enable remi-php56

#yum install php php-mysqlnd php-xmlrpc php-tidy php-sqlite php-soap php-snmp php-pdo php-mhash php-mcrypt php-mbstring php-libxml php-ldap php-intl php-imap php-gmp php-gd php-bcmath php-mssql

Applications and ToolsDescriptionCommand
APACHE Install Apache 2.4 #yum install httpd mod_ssl
Start Apache Service #systemctl start httpd
To Enable The Service To Start Up At Boot #systemctl enable httpd
Refer Link For More Information https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-centos-7
Applications and ToolsDescriptionCommand
MySQL Install Mysql Server #systemctl start mysqld
Start Mysql Service #systemctl enable mysqld
To Enable The Service To Start Up At Boot #systemctl enable httpd
Go To Mysql Command Line And Create Mysql Database, User And Restore The Database Using Following
To Create Database create database database_name;
To Create User CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
To Grant Privileges GRANT ALL PRIVILEGES ON database_name . * TO 'newuser'@'localhost' identified by 'password';
FLUSH PRIVILEGES;
To Give Database Access From Specific Ip GRANT ALL PRIVILEGES ON database_name . * TO 'newuser'@'ip_address' identified by 'password';
FLUSH PRIVILEGES;
To Restore The Database In Newly Created Database mysql -u root -p database_name < uknowva_database.sql
Applications and ToolsDescriptionCommand
UKNOWVA Configuration Configure Uknowva Package With Apache
Extract the data file (zip file) in apache document root folder keep the docs, config, logs & temp folder outside public_html folder. #unzip uknowva_file.zip
Now Provide This Details In Configuration.Php Path Will Be In Config Folder Which Is Outside Public_Html  
Data In Configuration.Php Will Be In Encoded Format. You Need To Copy The Content From Configuration.Php And Decode Online Using Below Mentioned Url https://www.base64decode.org/
Copy All The Content Inside Below Line <?Php Eval(Base64_Decode('..........')); Once You Decode The Copied Content You Need To Edit Some Parameter public $host = 'mysql_server'; (if mysql on local server then simply mention localhost)
public $user = 'database_user';
public $password = 'database_password';
public $db = 'database_name';
public $log_path = '/path_to_logs_folder/logs';
public $tmp_path = '/path_to_temp_folder/temp';
To Redirect Site On Https : Once You Have Set Up Ssl On The Server You Need To Set Above Parameter To 2. Default Is 0 Which Will Force To Redirect Site To Https. public $force_ssl = '2';
Once You Edit All The Changes In Configuration.Php You Need To Encode These Content Again And Paste It On Configuration.Php You Can Encode The Content Using Below Url https://www.base64encode.org/ Then Paste Base64 Encode Content Inside Below Line Mentioned By "....." In Below Exammple <?Php Eval(Base64_Decode('.....')); Once Done Save And Exit From The File.  
Now Access The Site Using Domain Or Url http://Server_Name
Or
http://Ip_Address
 
Once You Have Logged In, click on the link to Configure the system
1. Document and Other Settings - Setting up of docs path where the site documents are to be uploaded onto*
2. Email Settings - SMTP Configuration to be done *
http://Server_Name/instance-settings
Or
http://Ip_Address/instance-settings
To Enable Cron Services For System. By Default Cron Will Run Every 15 Mins #crontab -u root -e
Add below entry in Cron Tab
*/15 * * * * curl "https://domain_name/index.php?option=com_custom&cmd=handlecron"> /dev/null
Was this Article helpful?