Sunday, August 26, 2018

Create New Virtual Machine on VMware

Follow the steps for creating new VM on VMware.

Select the Configuration type and Click on Next.

  • Typical
  • Custom

clip_image001

Now give your machine name as per your project.

clip_image002

Check the data store resources.

clip_image003

On next Screen, select the Guest Operating System

  • Windows
  • Linux
  • Other

clip_image004

clip_image005

From following list choose the OS specific version.

clip_image006

clip_image007

clip_image008

Check the Network card and Click Next.

clip_image009

Give Hard Disk size and Click Next.

clip_image010

VM is Ready to Complete.

For configure RAM and other settings click on edit option.

clip_image011

Re-Check the VM configurations and Finish.

clip_image012

Now VM is created.

Friday, August 24, 2018

OrangeHRM Installations using Xampp in Linux


Follow the Xampp installation steps in below link.

https://linuxkbv.blogspot.com/2018/07/xampp-installation-on-centosrheloel7.html

Download OrangeHRM setup from below link.

https://excellmedia.dl.sourceforge.net/project/orangehrm/stable/4.1/orangehrm-4.1.zip

Extract and copy the folder into Xampp htdocs folder.

/opt/lampp/htdocs

Start the Apache and MySQL services in Xampp.

Now hit http://localhost/orangehrm-4.1 in browser and installations will come.


clip_image002

Select the next step.

clip_image004

Accept the License and proceed forward.

Choose default values are change as per your requirements.

clip_image006

Following steps are for manually creation of Database.

CREATE DATABASE orangehrm;

Create a database user called orangehrmuser with new password

CREATE USER 'orangehrm'@'localhost' IDENTIFIED BY 'Password';

Then grant the user full access to the database.

GRANT ALL ON orangehrm.* TO 'orangehrm'@'localhost' IDENTIFIED BY 'Password' WITH GRANT OPTION;

Finally, save your changes and exit.

FLUSH PRIVILEGES;

EXIT;

Select Next and you may face the disabled status.

clip_image008

Enable MySQL Event Scheduler status.

Edit this file and add following line.

/opt/lamp/etc/my.cnf

event_scheduler=ON

clip_image010

Save the file and Re- check then Next.

clip_image012

Enter the Admin User Creation and Next.

clip_image014

Check the configuration details and Proceed to Install.

clip_image016

Installation complete. Now login and configure internal configuration

clip_image018

clip_image020

Documentations Links:

https://www.orangehrm.com/assets/Documents/User-Guides/OrangeHRM-OS-3.3-Administrative-User-Guide.pdf

https://www.orangehrm.com/resources/download/orangehrm-user-guides/

https://www.orangehrm.com/assets/Documents/User-Guides/OrangeHRM-OS-3.3-Supervisor-User-Guide.pdf

https://www.orangehrm.com/assets/Documents/User-Guides/OrangeHRM-OS-3.3-ESS-User-Guide.pdf

Tuesday, July 3, 2018

How to install apache web server on window 7

Install Apache anywhere. But , In this scenario we install in C drive

Download latest version or your required Apache web server setup from site

Apache httpd for Microsoft Windows

Stable Release - Latest Version:

http://httpd.apache.org/download.cgi

Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) or latest verion

https://www.microsoft.com/en-us/download/details.aspx?id=5638

Install this setup

clip_image001

Extract the file

We will install Apache in C:Apache2, so extract the ZIP file to C: drive

Apache can be installed anywhere on your system, but you will need to change the configuration file paths accordingly…

Configure Apache

Apache is configured with the text file in httpd.conf contained in the Apache > Apache24>conf folder. Open it with your favorite text editor or notepad.

There are several lines you should change for your production environment:

Change line

From

Define SRVROOT "/Apache24"

To

Define SRVROOT "C:/Apache24"

listen to all requests on port 80:

Listen :80

ServerName localhost:80

Change DocumentRoot

From

DocumentRoot "${SRVROOT}/htdocs"

<Directory "${SRVROOT}/htdocs">

To

DocumentRoot "C:\Apache24\htdocs"

<Directory "C:\Apache24\htdocs">

Then save your file .

Go to C:\Apache24\bin

install Apache as a Windows service

The easiest way to start Apache is to add it as a Windows service. From a command prompt, enter:

cd Apache2bin

# httpd -k install

clip_image002

And run the ApacheMonitor.exe file

Check Apache is running or not in task manager

clip_image003

Open Apache Monitor

clip_image004

If Apache service is running then green icon ,if not then red icon shows.

Now , test

localhost:80

Great Apache server started.

clip_image005

Step By Step Installation PostgreSQL server on Windows

How to install PostgreSQL in your local system for learning and practicing PostgreSQL.

PostgreSQL was developed for UNIX-like platforms, however, it was designed to be portable. It means that PostgreSQL can also run on other platforms such as Mac OS X, Solaris, and Windows.

Download PostgreSQL Installer for Windows

You need to download the installer from PostgreSQL Official website.

Install PostgreSQL step by step

Click on the installer file, an installation wizard will appear

The following each step and its options for installation. Start Installing PostgreSQL



clip_image001

Specify installation folder, choose your own or keep the default folder.

clip_image002

Enter the port for PostgreSQL. Make sure that no other applications are using this port. Leave it as default if you are unsure.

clip_image003

Choose the default locale used by the database.

clip_image004

You completed providing information for the PostgreSQL installer. Click the Next button.

The installation may take few minutes to complete.

clip_image005

Click the Finish button to complete the PostgreSQL installation.

Verify the Installation

First, click on pgAdmin III to launch it. The pgAdmin III GUI will display.

clip_image006

clip_image007

Second, double click on PostgreSQL 9.5 on the object browser. It will ask you for the admin password. Just enter the password you’ve used in the installation step.

clip_image008

pgAdmin will display all the objects that belong to the server.

clip_image009

Congratulation! you’ve successfully installed PostgreSQL database server.

Monday, July 2, 2018

Google Chrome not opening

First update your Google chrome to latest version is now

clip_image001

After this go to settings



clip_image002

In settings ,go to advance and check on system field

clip_image003

Its done . Now on first click Google chrome will be open.

How To Create an SSL Certificate on Nginx for CentOS

Prerequisites
# yum update
# yum install nginx
Create the SSL Certificate
Create a folder for ssl
sudo mkdir /etc/nginx/ssl


Now that we have a location to place our files, we can create the SSL key and certificate files
# sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
The entirety of the prompts will look something like this:
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:US
Locality Name (eg, city) []:US City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:TECH
Organizational Unit Name (eg, section) []:IN
Common Name (e.g. server FQDN or YOUR name) []:tech.com
Email Address []:admin@ tech.com
Configure Nginx to Use SSL
Your server block may look something like this:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
server_name your_domain.com;
location / {
try_files $uri $uri/ =404;
}
}
Should be look like this.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
root /usr/share/nginx/html;
index index.html index.htm;
server_name your_domain.com;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
When you are finished, save and close the file.
Now, all you have to do is restart Nginx to use your new settings:
sudo service nginx restart
location / {
try_files $uri $uri/ =404;
}
}

Test your Setup
clip_image001
https://server_domain_or_IP
clip_image002

















































Folder sharing/mount between RHEL/OEL/CentOS Linux 7 server

We will install these packages first

# yum install nfs-utils

Create a folder that need to mount.

# mkdir /old/mount

Give permissions to the folder

# chmod -R 777 /old/mount

IMG13

Run following commands for enabling and start up the services.

systemctl enable rpcbind

systemctl enable nfs-server

systemctl enable nfs-lock

systemctl enable nfs-idmap

systemctl start rpcbind

systemctl start nfs-server

systemctl start nfs-lock

systemctl start nfs-idmap

Open the file and save the content as mentioned below :

# nano /etc/exports

Copy this into file

/old/mount 12.168.72.35(rw,sync,no_root_squash,no_all_squash)

# nano /etc/exports

Copy this into file

/old/mount 12.168.72.201 (rw,sync,no_root_squash,no_all_squash)

Restart nfs server service.

# systemctl restart nfs-server

Allow the nfs service and reload using below command.

firewall-cmd --permanent --zone=public --add-service=nfs

firewall-cmd –reload

Command to mount the folder.

12.168.72.35 :

mount -t nfs 12.168.72.35:/old/mount /old/mount

Once done. Check the mounting using this command.

# df –kh

Oracle Database 19c Installation on Oracle Linux 7

Pre-installation settings before installing Oracle Database 19c SELinux If the OS is to be used for an Oracle installation, it is ...