Sunday, August 4, 2013

1 TB cloud storage free for 6 months (Shared.com Pro account )



Shared.com is a cloud storage service which allows you to upload and share files for free. You can send a document or backup your music, photos in an easy manner. The shared.com pro account allows you to store files up to 5 GB with a storage limit of 1 TB. It supports all file types. The option includes forever storage, unlimited bandwidth, no advertising and hot linking



 

How to get 1 TB cloud storage using Shared.com Pro account for free ?

 

1. Go to Shared.com Page.

2. Register you account and get $ 60 worth cloud storage for free

Saturday, August 3, 2013

How to install the Apache mod_ssl module on CentOS

mod_ssl









mod_ssl is an Apache module that provides SSL v2/v3 and TLS v1 support for the Apache HTTP Server.  See the mod_ssl documentation for more information.

How to install the Apache mod_ssl module


1. Run the mod_ssl install command
yum install mod_ssl

How to configure the Apache mod_ssl module


1. Open the mod_ssl Apache configuration file located at /etc/httpd/conf.d/ssl.conf



#nano /etc/httpd/conf.d/ssl.conf

2. Enable name-based virtual hosting on port 443
Add the following text just before the SSL Virtual Host Context comment
# Use name-base virtual hosting

<VirtualHost *:443>

3. Disable the default https host
Comment out all text following the SSL Virtual Host Context comment

4. Restart the Apache HTTP Server
service httpd restart





Thursday, August 1, 2013

Install cPanel & WHM

CPANEL is professional manager for Linux.
In order to install cPanel & WHM, you have to: 
#cd /home
#wget -N http://httpupdate.cpanel.net/latest
#sh latest

If license is not valid (because of firewall or IP change),  you just run  /usr/local/cpanel/cpkeyclt to activate license for your IP.

Note: When installing cPanel & WHM, Apache 2.2 và PHP 5.2.17  are installed default. After installation is finished, you can edit  web Apache and PHP with WHM EasyApache.
Installing time is about 2-5 hours according to your server position.

In order access admin page of WHM, just go https://$IP:2087  with your ROOT account.

Thursday, July 25, 2013

How to install mod_rewrite on CentOS

mod_rewrite is an Apache module used to manipulate URL's and is compiled into the base Apache HTTP Server in CentOS.

How to configure the Apache mod_rewrite module



  1. Open the Apache configuration file located at /etc/httpd/conf/httpd.conf

  2. Change AllowOverride None to AllowOverride All  One inside <Directory /> and another one inside <Directory "/var/www/html"> and then it worked. Hope it helps somebody! P.S. I didn't use Virtual Hosts


Permanently redirect users to access the site WITH or WITHOUT the 'www.' prefix



  1. Create/Open a .htaccess file in the document root folder and add the following text replacing variables with appropriate values where necessary
    # mod_rewrite
    <IfModule mod_rewrite.c>
    # Enable mod_rewrite engine
    RewriteEngine on

    # WITH 'www.'
    RewriteCond %{HTTP_HOST} ^$uri\.$tld$ [NC]
    RewriteRule ^(.*)$ http://www.$domain$1 [L,R=301]

    # WITOUT 'www.'
    RewriteCond %{HTTP_HOST} ^www\.$uri\.$tld$ [NC]
    RewriteRule ^(.*)$ http://$domain/$1 [L,R=301]
    </IfModule>

    Note: Choose either WITH or WITHOUT the 'www.' prefix.  Do not include both or you will end up in a redirection loop.
    Note: If there is already an <IfModule mod_rewrite.c>directive, only copy the desired #RewriteCond and#RewriteRule lines and add them to the directive.
    Note: Replace http:// with https:// if used for a Virtual Hosts using the https protocol.
    Note: This text can also be added to the VirtualHost directive in the apache configuration file, but you can't typically move these changes to a live server, so the .htaccess file is the prefered method.

  2. Restart the Apache daemon
    service httpd restart

Wednesday, July 17, 2013

30 High-Quality Responsive Opencart Themes

Today we will show high-quality premium responsive OpenCart themes, OpenCart templates of 2013 with you. These templates design and development from ThemeForest authors with awesome overviews like mobile ready (responsive), unlimited color and style options, custom webfonts included, powerful control panels, search engine optimization (SEO) and multistore ready. This a great resource and something every designer should check out. You can use these responsive OpenCart templates for your next commercial projects (online stores, ecommerce sites, internet marketing sites).

Today we have collected a collection of top 30 OpenCart themes collection created in 2013. We hope you will like this collection. You can download these themes are below. To kick it off, here are the best OpenCart templates! I’d love to hear about them in the comments below.

Shoppica


Shoppica

Get this theme

Sellegance


Sellegance

Get this theme

Spicylicious


Spicylicious

Get this theme

R.Gen


R.Gen

Get this theme

Sellya


Sellya

Get this theme

ShopCart


ShopCart

Get this theme

AquaCart


AquaCart

Get this theme

Gentle


Gentle

Get this theme

Journal


Journal

Get this theme

Kinder


Kinder

Get this theme

Bigshop


Bigshop

Get this theme

SportStore


SportStore

Get this theme

BeautyShop


BeautyShop

Get this theme

Fortuna


Fortuna

Get this theme

ElegantCart


ElegantCart

Get this theme

Simple


Simple

Get this theme

Cupid


Cupid

Get this theme

Simplecart


Simplecart

Get this theme

Phantom


Phantom

Get this theme

Teez


Teez

Get this theme

PinShop


PinShop

Get this theme

FancyCart


FancyCart

Get this theme

MetroShop


MetroShop

Get this theme

Mega


Mega

Get this theme

Herbal


Herbal

Get this theme

Vanity Shop


Vanity Shop

Get this theme

Leisure


Leisure

Get this theme

My Stock Image


My Stock Image

Get this theme

MegaStore


MegaStore

Get this theme

UniVersum


UniVersum

Get this theme


Friday, July 5, 2013

How to unzip a zip file into a folder with the zip file's name - Bash Script



cd into the directory containing the zip files
Run command

nano run.sh

Add below code to run.sh file

#!/bin/bash
for z in *.zip
do
d=`basename $z .zip`
mkdir $d && unzip $z -d $d
done


Make it executable

chmod +x run.sh

Run it

./run.sh

If you want to delete zip files after unzip, you only need to add
rm -rf $z after mkdir $d && unzip $z -d $d

Friday, June 28, 2013

How to Install FFMPEG Auto Installer on CentOS



Opensource ffmpeg installer





ffmpeginstaller is a free software completely written in bash shell script. The purpose of this script is to build a video streaming platform in your Gnu/Linux server. So you can start video streaming websites and avoid the cost of installations. This script not only install ffmpeg but also all its friends packages. You can chose this script for building platform for most of the youtube clone software like clip-shre, sharemixer,shareigniter,etc,.

Project Home Page :  http://ffmpeginstaller.com



What packages ffmpeginstaller install in your server?


Please see the complete list of packages below.




  • FFmpeg : FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video

  • MPlayer And Mencoder : MPlayer is a movie player.It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs.

  • A52decoder : Are you a hosting company and you like to sell PCI DSS compliance servers to your clients with support ? If so this is your plan

  • Amrnb and Amrwb : The Adaptive Multi-Rate (AMR) audio codec is a patented audio data compression scheme optimized for speech coding

  • Latest Codecs : Install latest codecs libs

  • Faad2 : FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder

  • FAAC : FAAC is an MPEG-4 and MPEG-2 AAC encoder.

  • Flvtool2 : FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV )

  • Lame MP3 Encoder : LAME is a high quality MPEG Audio Layer III (MP3) encoder

  • Liba52 : liba52 is a free library for decoding ATSC A/52 streams

  • Libogg : Ogg Lib collections

  • OpencoreAMR : Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband speech codec

  • Theora : Theora is a free and open video compression format

  • Vorbis tools : Vorbis is a completely open, patent-free, professional audio encoding and streaming technology with all the benefits of Open Source

  • Libwmf : libwmf is a library for reading vector images in Microsøft's native Windøws Metafile Format (WMF)

  • MP4Box : MP4Box is a MP4 multiplexer

  • X264 : x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC format

  • Xvid :   Open-source compression codec based on MPEG-4 ISO format



 

How to Install FFMPEG Auto Installer on CentOS


Seeing as FFMPEG Auto Installer do not give clear instructions on how to install their packages I have produced a easy guide which hopefully should be of some use to server admins and novices alike.

Firstly SSH into your server.

Now run the following commands:
mkdir ~/ffmpeg-packages 
cd ~/ffmpeg-packages
wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg7/ffmpeginstaller.7.4.tar.gz
tar -xvzf ffmpeginstaller.7.4.tar.gz
cd ffmpeginstaller.7.4

Im using version ffmpeginstaller.7.4 for this installation, make sure you edit your command to coincide with the current package.

Next run the install command:
./install.sh

That's it.