Category: Linux

PHP scripts not running after upgrading from php 5.6 to php 7

Issue:  After upgrading from php5.6 to php 7.2  website is down .     Upgrading from php 5 to php 7 on centos  may require small changes in httpd (apache2) configuration files . Error could be related to loading php7 module  and error may display something like  Starting httpd: httpd: Syntax error on line 221 […]

Knowing why server was shutdown

Sometimes we may want to investigate why a linux system was shutdown unexpectedly .  As you know already , the only place we get this information from is /var/log directory . last -x  command will display some information about shutdown/reboot like below . runlevel (to lvl 3)   2.6.32-754.17.1. Sat Sep  7 16:24 – 18:41  […]

Disable Elasticsearch listening on ipv6

By default elastic search is listening on ipv6 and not ipv4 when installed . We can make it listen on on ipv4 by adding this line _non_loopback:ipv4_ to /etc/elasticsearch/elasticsearch.yml configuration file . Or we can disable ipv6 at Operating system level by adding below lines to /etc/sysctl.conf file net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 […]

Configuring Local RPM repository on RHEL and Cent OS

———————————————————– Sometimes we may need to install a bunch of rpm files at once . If we configure local yum repository , we can install all rpm files at once with yum command. If a vendor is frequently updating the packages in the remote repository and you just want to stick with old packages , […]

Back To Top