Wednesday, December 21, 2016

How to install Apache, MySQL, and PHP 5.6 on CentOS 6 (LAMP)

If you find it tiresome like me to install LAMP on CentOS 6 but with PHP 5.6 then this step-by-step guide will walk you through to get up and running within 15 minutes.

Install MySQL
  • Update the system first.
sudo yum update
  • Download and add the repository then update again. 
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
  • Start MySQL
sudo yum install mysql-server
sudo systemctl start mysqld
  •  Make MySQL secure
sudo mysql_secure_installation
Install Apache

  •  Use the following commands to install and start Apache
sudo yum -y install httpd
sudo /etc/init.d/httpd start
  • Turn on external access of http (Port 80) and https (Port 443)
sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT 
sudo service iptables save
Install PHP 5.6

  • Add EPEL and REMI repo 
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-latest-6.noarch.rpm
  • Now you need to enable the repo. Go to /etc/yum.repos.d and open remi.repo in text editor (i.e. vi)
cd /etc/yum.repos.d
vi remi.repo
  • Find the following sections and set enabled=1 
[remi]
name=Remi's RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php56/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  • Finally install the PHP and restart httpd!
sudo yum install php php-gd php-mysql php-mcrypt
sudo /etc/init.d/httpd restart 
At this point, you should have LAMP installed with PHP 5.6 and it's basic components.

Tuesday, December 20, 2016

How to install Apache, MySQL, and PHP 5.6 on CentOS (LAMP) in OFFLINE!

The basic steps for installing LAMP in offline CentOS servers in same for both CentOS 6.* and 7 but the syntax and packages are different. A generalized approach is described in this article. It is assumed that you run all of the commands as root.

Step 1: Get the necessary packages

The first step is to get the necessary packages from another CentOS system that has internet access. To install PHP 5.6 you might need to add EPEL and Remi repo. Please check the following posts to find out how to add them in your online CentOS system.
Now get the necessary packages with the following commands and copy them to your offline CentOS system.

yumdownloader --resolve php
repotrack -a x86_64 -p . php createrepo mysql-server

Step 2: Create a local repository in your offline CentOS system

Assuming you copies all of your packages under /tmp/rpms and you will use /home/local_repo as your local repository location. Now execute the following commands to create the repository.

mkdir /home/local_repo

mv /tmp/rpms/* /home/local_repo
chown -R root.root /home/local_repo
createrepo /home/local_repo

Now turn on the local repository creating a file /etc/yum.repos.d/local.repo with the following content.

[local]
name=CentOS - local packages
baseurl=file:///home/local_repo
enabled=1
gpgcheck=0
protect=1

Now if you execute the following command as test, you should see PHP 5.6 package is available.

yum list php

Step 3: Install the softwares and configure

yum install httpd
yum install my-server
yum install php php-devel php-mysql
/etc/init.d/httpd restart
iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
service iptables save

Monday, December 5, 2016

How to install Apache, MySQL, and PHP 5.6 on CentOS 7 (LAMP)

If you find it tiresome like me to install LAMP on CentOS 7 but with PHP 5.6 then this step-by-step guide will walk you through to get up and running within 15 minutes.

Install MySQL
  • Update the system first.
sudo yum update
  • Download and add the repository then update again. 
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
  • Start MySQL
sudo yum install mysql-server
sudo systemctl start mysqld
  •  Make MySQL secure
sudo mysql_secure_installation
Install Apache

  •  Use the following commands to install and start Apache
sudo yum -y install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
  • Turn on external access of http (Port 80) and https (Port 443)
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
Install PHP 5.6

  • If you already have EPEL installed then add REMI repo
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm
Otherwise
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
  • Now you need to enable the repo. Go to /etc/yum.repos.d and open remi.repo in text editor (i.e. vi)
cd /etc/yum.repos.d
vi remi.repo
  • Find the following sections and set enabled=1 
[remi]
name=Remi's RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/7/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56]
name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/7/php56/mirror
# NOTICE: common dependencies are in "remi-safe"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
  • Finally install the PHP!
sudo yum install php php-gd php-mysql php-mcrypt
sudo service httpd restart
At this point, you should have LAMP installed with PHP 5.6 and it's basic components.

Saturday, June 11, 2016

Install PHP Redis in XAMPP on Ubuntu 16.04 LTS

Probably, you are here because you are trying to install phpredis in XAMPP on Ubuntu 16.04 LTS. You might already tried the steps described in this git repo. The problem is soon you will realize that the php5-dev is not available for Ubuntu 16.04 LTS. Here I will try to explain all the steps to setup XAMPP with phpredis on Ubuntu 16.04 LTS.

Install XAMPP

If you already have the XAMPP installed then skip to the next section. Otherwise, by following the steps below you can install XAMPP v5.6.21.
  • Open your terminal
  • Run the following command. This will download the installer.
wget https://www.apachefriends.org/xampp-files/5.6.21/xampp-linux-x64-5.6.21-0-installer.run
  •  Make the installer executable
chmod +x xampp-linux-x64-5.6.21-0-installer.run
  • Run the installer
./xampp-linux-x64-5.6.21-0-installer.run
  • Following the instruction will install the XAMPP on default location /opt/lampp. During this installation process please select both "xampp core files" and "xampp developer files" to install both of them.

Install Redis Server

If you already have the Redis Server installed then skip to the next section. Otherwise, installed it by typing the following command in your terminal.
sudo apt-get install redis-server

Install "phpredis"

  • Install git
sudo apt-get install git
  • Run the following commands to get the source code from git
git clone git://github.com/nicolasff/phpredis.git && cd phpredis
  • Install autoconf
sudo apt-get install autoconf 
  •  Do phpize. By default the phpize should be in /opt/lampp/bin/phpize if you install XAMPP in /opt/lampp. If this is the case then type the following command in your terminal.
/opt/lampp/bin/phpize
  • Configure. Again, if /opt/lampp is not your installation directory then replace /opt/lampp with your installation path in the following command.
./configure --with-php-config=/opt/lampp/bin/php-config & make & sudo -s make install
  • Write the following line at the end of /opt/lampp/etc/php.ini file.
extension="redis.so"
  •  Restart the XAMPP
sudo /opt/lampp/lampp restart
Now you can see through your phpinfo page that redis extension is enabled! If you are looking for a similar guide for CentOS then checkout Php redis module installation for CentOs 6.6

Saturday, September 5, 2015

Windows ShortCut Program

Windows ShortCut Program - Will be updated continuously - Keep tuned in

Have you ever wondered that it would be great if you had shortcut keys like you have in your laptop for volume change, brightness change?

If you are looking for such a program, download the program from the following link, unzip and run the program.
http://www.mediafire.com/download/21ddivz20wgox6h/HelpingKeys.zip

As of now our program just supports volume increase, decrease and mute functionality.
We will continuously update the program and add new features and functionality along the way.

For now the shortcuts for the following commands are as follows:

Volume Down: Shift + Plus_key (not of numpad*)
Volume Up: Shift + Minus_key (not of numpad*)
Mute: Control + Delete

* Numpad ones are not included since there are keyboards without the numpad section.

Please leave us a comment. Additionally, please suggest us any function you will want to see to be added to our program. We will try our best to update with your needs.

** Future plans for update: set shortcuts yourselves, change brightness level of your screen.

Friday, January 24, 2014

Hidden download in utorrent

> Select a torrent which is downloading and not hidden,

> and click move up queue,

> until the torrent you selected is not the #1 torrent in your download queue

> when the selected torrent becomes #1 in your download queue, the torrent(s) that was(were) hidden should re-appear successfully.

Tuesday, May 15, 2012

Free WHMCS Template/Theme 1

Now-a-days, WHMCS is very popular for web hosting billing. Though all the things for billing are done by WHMCS but it needs to be integrated with website to show that whmcs and the whole website is one thing not different. Sometimes, it becomes important to start a website in a hurry. Due to lack of time, most of people depends on free web templates while a custom design for the website is on development. But for whmcs, free templates are not available. To help people who are in hurry for publishing their website and is depended on free web template as a startup, I have decided to publish some whmcs template free.

Wednesday, February 8, 2012

Caps Lock Nums Lock Indicator Problem: Solved smartly

Caps Lock Nums Lock Indicator Problem: Revisited

Hi, follow the link for my Caps Lock and Nums Lock indicator. Till now it's beta version. I will try to work more on it, and make it more realistic. If you like it, please comment and tell me on how to improve it. I will try to sort that out when I am free.

Download Lock Indicator  -->  Hope you like it.

Monday, February 6, 2012

Caps Lock Nums Lock Indicator Problem: Revisited

Caps Lock Nums Lock Indicator Problem: Revisited

Few days back I posted about the Caps Lock Nums Lock Problem, which many of us have already faced, or will be facing unfortunately. Although the application I discussed about was handy but in some ways I thought this might not be the best answer. So, I, am gonna make an application more user friendly hoping to be released within 2 days max. Till then keep in touch, and watch out for the big release, and Please do comment when the application gets out.

Friday, February 3, 2012

Managing your audio files have never been easier!

Today's discussion is about managing our audio files in an easy and fast way.

Lock indicator problem.

Ever wondered what will happen if the indicators of Nums-Lock or Caps-Lock on your laptop or keyboard did not work anymore?? Or does it irritate you often to look down and see if your caps lock or nums lock is active or not. Well, not anymore. This tiny app for your desktop is quite useful.

Wednesday, January 13, 2010

Speed up your PC, delete unnecessary events

For using windows, a lot of event files(log file) are created by windows. These files reserve PC's memory. And thus these files slow down our PC. As event files are unnecessary, you can delete them for improving your PC's speed. Just follow the following steps to do this.

Tuesday, January 12, 2010

Some one may cheat you by Google Adsense!

Google Adsense is a popular program for generating money from a website. A lot of webmasters are generating money using Google Adsense. People think that this is the easiest way of earning. But before generating money from website, a webmaster has to generate some good amount of traffic. To do that he also needs good contents in his site too. Besides he needs to read through the Google Adsense's terms of use.

Sunday, January 10, 2010

List of high paying adsense keywords, you may need...

There are a lot of blogger who ask a common question. And the question is like "How to increase my adsense earning" or "How to get more money from few clicks" etc. I think the best answer should be using high paying keywords. It an important part of SEO. So we can choose high paying keywords when we choose keywords for our website. By the by, choosing high paying keywords doesn't mean that you will choose all the high paying keywords even if they are not related to your website. Then it may result in negative.

Sunday, January 3, 2010

Turn off "Auto Run" in windows

When we insert a removal disk, an auto run dialogue box appears on the screen. Sometimes people find some troubles with it. So, many of us are more likely to stop auto run. You can turn off Auto Run in your PC just following the steps below.

Wednesday, December 23, 2009

Avast hack! Avast pro free serial key, full version download

May be you are one of those who try to use the most popular anti virus software free by searching free serial key using search engines or a person having so much curiosity on how use anti virus software free. Then may be your in the right place because, now I am going to tell you how to hack Avast, one of the most popular anti virus software. Actually I will give you a free serial key by which you will be able to upgrade your free Avast Home Edition to Avast Professional Edition.

Thursday, December 17, 2009

How to Add Digg Button in Blogger

In one of my previous post titled How to Add Re-tweet Counter in Blogger, I described how you can add re-tweet counter in blogger. Now, in this post I am going to describe how you can add digg button in your post page. Before adding digg button let me say the importance of digg button. If you add digg button in your post page visitors will be able to digg your post directly from your blog. This will help you to get more traffic to your blog.

Get 15 visitors per minute

We spend a lot of time and money for generating traffic. Sometimes we become success and sometimes not. Most of us spend a lot of time for searching free website from which they can get a lot of traffics. Recently I got such a tricks from which you will be able to get at least 15 visitors per minute! Just you have to do some small work such as surfing web pages. I will advise you to spend your time in these tricks for getting your dreamt traffic rather than spending your time and money to other web sites.

Wednesday, December 16, 2009

How to Add Re-tweet Counter in Blogger

Do you know about the twitter.com? Yes, I am talking about that twitter which is the most popular social bookmarking site. Do you know that growth rate of twitter is higher than any of other site? So, it has now become so much popular to the webmaster for generating more and more traffic. You can also use the opportunity. The best way for using this chance is to add re-tweet counter button in your website. In this tutorial, I am going to tell you how you can add a re-tweet counter button in your post page of blogspot blog like of mine.

Sunday, December 13, 2009

Adding Related Post Widget in Blogspot

We all try a lot of SEO tricks to get a lot of visitors. That's true that there is no other option besides SEO for getting targeted visitors. It is important to arrange your site or blog with easy navigation to make your blog more user-friendly. You may think "Where I am getting a lot of visitors, it is not necessary to make my blog user-friendly". But remember that most of your visitors will not revisit your blog. Because, they will not get the original test of your blog only for want of easy navigation.