Error Message"The mcrypt extension is missing. Please check your PHP configuration"#apt-get install php5-mcrypt#ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available or If this command not work fire below one for latest apache.#ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/mods-available/#php5enmod mcrypt...
Tuesday, 16 December 2014
How to upload EC2 Data to S3 Bucket with s3cmd
Install s3cmd third party software in EC2 Instance.#apt-get install s3cmdConfigure s3cmd to access your S3 Bucket with below prodecure.#s3cmd --configureEnter new values or accept defaults in brackets with Enter.Refer to user manual for detailed description of all options.Access key and Secret key are your identifiers for Amazon S3Access Key : PASTE...
Friday, 12 December 2014
How to move github local folder to another location.
Open your GitHub Clone folder and move ".git" folder to your destination folder.
Eg. Clone folder :: /var/www/html/htmwebsite
Destination folder :: /var/www/html
#cd /var/www/html/htmlwebsite
#mv .git ../ or mv .git /var/www/html
Then you can move your all files and folder from htmlwebsite...
Basic GitHub Commands
Clone remote github repository.
#git clone https://github.com/accountnameexample/example.git
After modify files or folder commit your changes on github repository.
#git add filename
#git commit -a <-- Once you fire this command it will open nano editor to make note of this changes. Just write your note and save the file.
#git...
Thursday, 11 December 2014
Installation and configuration of GeoIP module in php
After installation of Apache2 and php follow below step to achive country wise redirection.
#apt-get install libapache2-mod-geoip
Edit geoip.conf file and uncomment mentioned line.
#nano /etc/apache2/mods-available/geoip.conf
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat <--...
Tuesday, 9 December 2014
Install MongoDB php driver in XAMPP/LAMPP
To install the php driver for MongoDB
Prerequisite ::
#sudo apt-get install autoconf
#export PHP_AUTOCONF=/usr/bin/autoconf
#sudo apt-get install gcc
#sudo apt-get install make
Installing mondodb phpdriver
#sudo /opt/lampp/bin/pecl install mongo
It will download and installing mongo php driver and given message as below
Build process completed...
Wednesday, 3 December 2014
How to redirect HTTP to HTTPS
First you need to install SSL Certificate Successfully. Once your done that choose any of example to do redirect url.
Example : 1
In this example you don't need mod rewrite module to be enabled.
Open your apache configuration file
#nano /etc/apache2/sites-enabled/000-default.conf
Modify your VirtualHost Tag as followed
<VirtualHost...
How to Create VirtualHost in Apache 2.4
Install Apache2 with below command.
#sudo apt-get install Apache2
Create Demo VirtualHost Directory
#sudo mkdir -p /var/www/html/example.com
#sudo mkdir -p /var/www/html/theitideas.com
Create Demo Pages for Each Virtual Host
#nano /var/www/html/example.com/index.html
Paste Below code in index.html file
<html>
<head>
...
Thursday, 27 November 2014
How to setup Network Configuration in Ubuntu Server 14.04
Open Network Configuration file.#nano /etc/network/interfaceThen Add below mentioned lines and make changes as per your need.auto eth0iface eth0 inet staticaddress 192.168.0.101gateway 192.168.0.1netmask 255.255.0.0network 192.168.0.0broadcast 192.168.0.255Now Save file.Open DNS Configuration file #/etc/resolv.confAdd below mentioned lines with your...