Menu

Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts

6 Mar 2020

Install Nginx plus on RHEL 7.4+ / CentOS 7.4+ / Oracle Linux 7.4+

What is NGINX Plus?

  • NGINX Plus is a software load balancer, web server, and content cache built on top of open source NGINX. 
  • NGINX Plus has exclusive enterprise‑grade features beyond what's available in the open-source offering, including session persistence, configuration via API, and active health checks. 
  • Use NGINX Plus instead of your hardware load balancer and get the freedom to innovate without being constrained by infrastructure.


Step 1: Open the Nginx Plus URL link: https://cs.nginx.com/repo_setup


Step 2: Choose your OS and distribution (RHEL 7.4+ in my case).




Choose Enterprise version OR you need to choose free trial request for 30 days URL    

 https://www.nginx.com/free-trial-request


step 4: Register and you will receive a trail mail for 30 days, from there need to download nginx-repo.key & nginx-repo.crt files. 





  • Reference mail to download "nginx-repo.crt" & "nginx-repo.key" file





**********************************************************
Since this first installation, you will face "No such file or directory this"

Step 1) If you already have old NGINX packages in your system, back up your configs and logs: 

Command
sudo cp -a /etc/Nginx /etc/nginx-plus-backup

sudo cp -a /var/log/nginx /var/log/nginx-plus-backup





Step 2) Create the /etc/ssl/nginx/ directory:

Command
sudo mkdir -p /etc/ssl/nginx





Step 3) Log in to NGINX Customer Portal and download the following two files.

nginx-repo.key
nginx-repo.crt




Step 4) Copy the above two files to the RHEL/CentOS/Oracle Linux server into "/etc/ssl/nginx/" directory. Use your SCP client or other secure file transfer tools.





Step 5) Install prerequisite packages.

Command:
sudo yum install ca-certificates

this step will install CA-certificates to your local OS server from REDHAT.







Step 6) Add NGINX Plus repository by downloading the file nginx-plus-7.4.repo to "/etc/yum.repos.d"

Download the "nginx-plus-7.4.repo" and copy this file to "/etc/yum.repos.d" location.






Step 7) Install the NGINX Plus package.

Command:
sudo yum install nginx-plus






Step 8) Check the nginx binary version.

Command:
nginx -v

OR

Command:
nginx -V






Step 9) start the Nginx.
Command:
nginx



Step 10) To verify that NGINX is returning requests.

Command:
curl localhost





****************************************************************


  • "Nginx" directories and its descriptions.    
Directories
Descriptions.
/etc/nginx/
Config dir.
/etc/nginx/nginx.conf
Master/Global config file.
/usr/share/nginx/html
Document root directory
/etc/nginx/conf.d
Extra configuration files.
/var/log/nginx
log location folder (access.log & error.log).
/usr/sbin/nginx
Main nginx file location.



  • "Nginx" useful commands and its descriptions.

Commands
Descriptions.
nginx -s  [signal]
Signal (Where signal may be one of the following).
nginx -s  stop
Fast Shutdown.
nginx -s quit
Graceful shutdown (to stop Nginx processes with waiting for
the worker processes to finish serving current requests).
nginx -s reload
Reloading the configuration file (Changes made in the configuration file will not be applied until the command to reload configuration is sent to Nginx or it is restarted).
nginx  -s reopen
Reopening the log files.
nginx   -t
To test the configuration file (nginx.conf).
nginx   -T
To test configuration, dump it and exit.
nginx  -V
Show the version and configure options then exit.
nginx  -v
Show version and exit.
nginx  -h
This is print help.
nginx  -c  filename
Specify which configuration file NGINX should use instead of the default.
nginx  -T | less
To test configuration, dump it &  page wise view.


Nginx-Docs link:
https://drive.google.com/drive/folders/1jg43W_m0D72tKU5yK4nVEqUuLEYy3pP9


Reference links :
https://cs.nginx.com/repo_setup
https://www.nginx.com/products/nginx/#features
https://www.nginx.com/free-trial-request
https://www.nginx.com/blog/performance-tuning-tips-tricks/

Thanks :-)


22 Aug 2017

How to Install Apache HTTP Server 2.4.27 Latest Version on LINUX machine



Step 1: make one directory APACHEWEB [in my case].

Command >> mkdir APACHEWEB



Step 2: Locate to APACHEWEB directory use below command to downlaod Apache HTTP Server 2.4.27.

Command >> wget http://redrockdigimark.com/apachemirror//httpd/httpd-2.4.27.tar.gz

Screenshot 2-1 :
 

OR

Download from this link  https://httpd.apache.org/download.cgi#apache24

Screenshot 2-2:





Step 3 : Change the permission to this directory

Command >> chmod -R 755 /APACHEWEB

Screenshot 3:




Step 4: Following requirements you need to be complete.

Refrence link : https://httpd.apache.org/docs/2.4/install.html

Screenshot 4:




Step 5: Extract this httpd-2.4.27.tar.gz

Command >> tar -xvzf httpd-2.4.27.tar.gz

Screenshot 5:




Step 6: locate to /APACHEWEB/httpd-2.4.27/srclib  , since no pre-libraries are there ,so we have to downlaod libraries.

Screenshot 6:



Step 7: Let's complete this requirements execute below commands on lcation /APACHEWEB/httpd-2.4.27/srclib directory :

      7-1 : Download  Apache Portable Runtime (APR) and Apache Portable Runtime (APR-Util) Utility 1.6.0 :

  Command for APR >> wget http://redrockdigimark.com/apachemirror//apr/apr-1.6.2.tar.gz

  OR

  Download Link : http://apr.apache.org/download.cgi

  Screenshot 7-1:




  7-2: Download Apache Portable Runtime (APR-Util) Utility 1.6.0 :

  Command >> wget http://redrockdigimark.com/apachemirror//apr/apr-util-1.6.0.tar.gz

  OR

  Download Link :  http://apr.apache.org/download.cgi

  Screenshot 7-2:




Step 8 : Extract this APR and APR Util.


8-1: Extract  apr-1.6.2.tar.gz

Command >>  tar -xvzf apr-1.6.2.tar.gz

Screenshot 8-1:




8-2: Extract apr-util-1.6.0.tar.gz

Command >>  tar -xvzf apr-util-1.6.0.tar.gz

Screenshot 8-2:




Step 9: Rename  apr-util-1.6.0 and apr-1.6.2 version info.

Command >> mv apr-util-1.6.0   apr-util

Command >>  mv  apr-1.6.2    apr

IMP NOTE : After rename please move "apr-util"  & "apr" to "/APACHEWEB/httpd-2.4.27/srclib"


Screenshot 9:




Step 10 : Also make sure this rpm are intsalled on LINUX machine before installation.

Command >>  yum install pcre-devel

 Screenshot 10-1:



Command >>  yum install openssl-devel

 Screenshot 10-2:



Command >>  yum install expat-devel

 Screenshot 10-3:



Command >>  yum install gcc 

 Screenshot 10-4:




Step 11 : Once again change the permission.

Command >>  chmod -R 755 /APACHEWEB



Step 12: locate  to /APACHEWEB/httpd-2.4.27 and use below commands.

Command >>  ./configure --with-included-apr   --prefix=/APACHEWEB/HTTPDWEB2.4 --enable-ssl --enable-so

Where,


--with-included-apr=Apache Portable Runtime (APR) and Apache Portable Runtime libraries on location srclib
–prefix=Provide location where you need to install apache ,  /APACHEWEB/HTTPDWEB2.4 in my case
–enable-ssl this will compile apache with SSL enabled so can secure apache web server with SSL cert.
–enable-so

others sonfiguration options :-
   
"./configure" \
"--enable-so" \
"--enable-proxy" \
"--enable-proxy-http" \
"--enable-proxy-balancer" \
"--enable-rewrite" \
"--enable-proxy-ajp" \
"--prefix=" 



 Screenshot :




Step 13 : on same location /APACHEWEB/httpd-2.4.27 use  below commands.

Command >> make 

Screenshot 13:




Step 14 :  on same location /APACHEWEB/httpd-2.4.27 use  below commands.

Command >> make install

Screenshot 14 :





Step 15 : locate to /APACHEWEB/HTTPDWEB2.4  where  new installation of   httpd server  has done. [--prefix=/APACHEWEB/HTTPDWEB2.4 ]

Screenshot 15:




Step 16: locate to bin directory of installed httpd server 2.4  and start the server .

Command >> ./apachectl  -k start

Screenshot 16:




Step 17: Now, check through browser.

Screenshot 17 :




Step 18 : For  Reference doc use below link

                https://httpd.apache.org/docs/2.4/    
                https://httpd.apache.org/docs/2.4/install.html
                http://httpd.apache.org/docs/trunk/programs/configure.html





Thanks..! :-)








16 May 2017

Multiple IHS in front of WebSphere® Application Server. (On Single Install).


Step 1:  Login to IBM WAS console.

Screenshot 1:




Step 2: Click on servers > server types > Web server

Already on  one webserver on Port 443 & 80 is working.


Screenshot 2 :





Step 3: To Create a New webserver   [ NEW_webserver  ]  in mycase .

Click on New..

Screenshot 3 :


Step 4: Provide a server name  > Next .

Screenshot 4:




Step 5: Default IHS selected  > Next .


Screenshot 5:




Step 6: Provide NEW port no [ 5080 for http ] in mycase  >> Next

Screenshot 6:






Step 7: Review Summary >> Finish .

Screenshot 7:






Step 8: Click on Review.

Screenshot 8:





Step 9: Select Synchronize changes with Nodes >> Save >> OK .

Screenshot 9:





Step 10 : Now we have created the NEW_webserver , with status stopped.

Screenshot 10 :





Step 11 : Copy the working http.conf with [ NEWhttp.conf ]  in my case.

Screenshot 11:





Step 12 : Open the Newhttp.conf  and make changes.


1 >> PID File Location

2 >> Error logs location.
 3 >> Access logs location.
4 >> Servername
5 >> Listen Address From (:80 ) and ( :443 )  to  (5080) and (50443)  in mycase.
6 >> Virtual host port and ipaddress.
7 >> New Webserver Plugin file location.




Screenshot 12-1 :


Screenshot 12-1 :






Step 13 : Use Diff command to check the Diffrence between them.

Screenshot 13:





Step 14: Make a new folder of NEWlogs on IHS home .

Screenshot 14:




Step 15 : go to Webserver > NEW_webserver >> Configuration file name > Apply > Review > Synchronize changes with Nodes > Save.





Change the paramerts from console also.

Screenshot 15:




Step 16 : Changes in log file from console >>  Apply > Review > Synchronize changes with Nodes > Save.

Screenshot 16-1:



Screenshot 16-2:







Step 17 : Review Virtual Hosts from Console >>

Screenshot 17:





Step 18 : Add Virtual Hosts  from Console .

Environment > Virtual Hosts > default_host > Host Aliases

Screenshot 18-1 :



Screenshot 18-2 : Add a new Virtual Hosts Port : (5080) and  (50443)





Step 19: Add 5080 and 50443  >> >>  Apply > Review > Synchronize changes with Nodes > Save.


Screenshot 19 -1:





Screenshot 19-2:






Step 20: Review host entries.

Screenshot 20:






Step 21: Select  Enterprise Applications > calendar_war > Virtual hosts > select default_host > OK.


Screenshot 21:





Step 22 : Now Start the NEW_webserver from shell.

Screenshot 22:







Step 23: Generate and Propagate plugins from console.

Screenshot 23:







Step 24 : Manage the deployed application from console.

Screenshot 24:





 Clear the logs and  Restart the Application.




Step 25 : Check the IHS at port 5080 

Screenshot 25:






Step 26 : Check the calendar.war Application at port 5080 

Screenshot 26:




Step 27 : Check the IHS at port 50443 

Screenshot 27:





Step 28 : Check the calendar.war Application at port 50443 


Screenshot 28-1:




Screenshot 28-2:









Thanks :-)  Middleware Team  :-) !