Friday, April 28, 2017

Fedora 25: Keep using DHCP after installation

Fedora 25 keeps using DHCP after installation even Static IP has been configured during installation.

1. Stop and disable gnome NetworkManager
# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service
2. Start and enable network service
# systemctl restart network.service
# systemctl enable network.service 
3.make changes in 
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=eth0
UUID=15da7b6d-8cde-3858-883b-2901ba6168b6
ONBOOT=yes

Wednesday, April 26, 2017

Upgrade Mongodb Driver for PHP

pecl config-show
pecl version

Download the binary from
https://pecl.php.net/package-changelog.php?package=mongo&release=1.2.5


wget http://pecl.php.net/get/mongo
pecl install mongodb-*.tgz
or
pecl upgrade mongodb-*.tgz

Tuesday, April 25, 2017

Apache HTTPD Redirect http to https

<VirtualHost *:80>
ServerName www.goweekend.ca
DocumentRoot /usr/share/dboard

<If "req('Host') == 'www.goweekend.ca'">
    Redirect permanent / https://www.goweekend.ca/
</If>

</VirtualHost>