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.