Friday, July 26, 2019

Apache HTTP Server up-gradation on Redhat Linux 7.3







Apache HTTP Server up-gradation on Linux 7.3 CentOS

1. First of all you have to stop httpd service using command-

[root@localhost /]# httpd service stop

2.   Then remove old version of apache

[root@localhost /]# yum remove httpd

3. Now install higher version of apache web server.

[root@localhost /]# yum install httpd


4.   After that restart again httpd service-

[root@localhost /]# httpd service restart

Now you can hit your URL in web browser.




PHP version upgarde in Linux



Complete process for PHP version update- 





1. First of all remove old version.


[root@localhost php]# yum remove php-common

2. Now Install php letest version

[root@localhost php]# yum -y install php55w php55w-opcache

[root@localhost php]# yum -y install php55w-xml php55w-mcrypt php55w-gd php55w-devel php55w-mysql php55w-intl php55w-mbstring

3. Now restart httpd service.

#/usr/sbin/httpd -k restart

To check status of httpd service in RHEL7.0 or above version -

#systemctl status httpd.service

4. Now you can check Version.

[root@localhost sbin]# php -v
PHP 5.5.38 (cli) (built: Jul 21 2016 12:25:20)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies


Openssl installation in Linux




1. First of all, you have to check your current version of openssl:-

#openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013

2. See full information:-

#yum info openssl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: mirror.de.leaseweb.net
 * updates: mirror.softaculous.com
Installed Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.1e
Release     : 51.el7_2.1
Size        : 1.5 M
Repo        : installed
From repo   : updates
Summary     : Utilities from the general purpose cryptography library with TLS
            : implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications
            : between machines. OpenSSL includes a certificate management tool
            : and shared libraries which provide various cryptographic
            : algorithms and protocols.


3. Go to directory path: -

#cd /usr/local/src
# wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz      or (download from browser and copy to serverin above path)

4. Unzip downloaded setup: -

# tar -zxf openssl-1.0.2-latest.tar.gz

5. Goto setup directory: -

# cd openssl-1.0.2a

# ./config

# make
# make test
So long testing start
................
................
................
...........

# make install

Installing ........
..............
...............
.............

6. Now move  to root directory: -

# mv /usr/bin/openssl /root/

7. Create a link: -

# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

8. Now you can check version:-

# openssl version
OpenSSL 1.0.2e 3 Dec 2015
Now version upgraded.



Introduction to Linux Part 1

Introduction to Linux Part 1

Introduction to Linux Linux is an operating system that works just like Windows and Mac OS X. As an operating system, Linux is a very h...