How to Mount a Windows Shared Folder in Linux CentOS 6.3

In this post, i will share on how to mount windows share folder on linux CentOS 6.3 server. Assumed that windows share folder has been configured properly with administrator privileged. This uses Common Internet File System (CIFS) protocol. CIFS can lets you access to shared folder and files that are remotely on the server and can do read and write to them.

Windows Share: //192.168.2.51/Files
Windows Credentials : username=administrator,password=mypassword

1. Execute the following command to mount Windows share folder :

[root@centos63 /]# mount -t cifs -o username=administrator,password=mypassword //192.168.2.51/Files /mnt

2. Verify that Windows share folder already mounted to /mnt :

[root@centos63 /]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_centos63-lv_root
                       5716804   2451228   2975172  46% /
tmpfs                   515400         0    515400   0% /dev/shm
/dev/sda1               495844     66280    403964  15% /boot
//192.168.2.51/Files 476403708 343375460 133028248  73% /mnt

3. Add that Windows share folder into /etc/fstab file, so that it will auto mount once rebooted :

[root@centos63 ~]# vi /etc/fstab

Add the final line as below :

#
# /etc/fstab
# Created by anaconda on Sun Jul 15 20:17:38 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_centos63-lv_root /                       ext4    defaults        1 1
UUID=2217c7b1-4467-4c81-8596-c3ee7758e2cc /boot                   ext4    defaults        1 2
/dev/mapper/vg_centos63-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
//192.168.2.51/Files    /mnt                    cifs    username=administrator,password=mypassword 0 0

How to Install Webmin 1.600 on Linux CentOS 6.3 Using RPM

webminWebmin is a open source web-based system administration tool and system configuration tool for Unix servers and services. It’s useful for linux administrator especially the Linux newbies as it can avoid misconfiguration and avoid doing mistake. Webmin can administer other services and server configuration using a web browser remotely. You can setup user accounts, Apache, MySQL, FTP. DNS, file sharing and Etc. Follow below steps to install Webmin 1.600 on Linux CentOS 6.3 Using RPM package.

1. Download required RPM file :

http://download.webmin.com/download/yum/

[root@centos63 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.600-1.noarch.rpm

2. Add the GPG Key:

[root@centos63 ~]# rpm --import http://www.webmin.com/jcameron-key.asc

3. Install RPM version of Webmin as below :

[root@centos63 ~]# rpm -Uvh webmin-1.600-1.noarch.rpm
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://centos63.ehowstuff.local:10000/
as root with your root password.

4. Start, Stop and Restart Webmin service :

To start :

[root@centos63 ~]# /etc/rc.d/init.d/webmin start

To Stop :

[root@centos63 ~]# /etc/rc.d/init.d/webmin stop
Stopping Webmin server in /usr/libexec/webmin

To Restart :

[root@centos63 ~]# /etc/rc.d/init.d/webmin restart
Stopping Webmin server in /usr/libexec/webmin
Starting Webmin server in /usr/libexec/webmin
Pre-loaded WebminCore

Best Web Hosting 2012 – Best Linux & Windows Web Hosting Providers

PR Web

San Francisco, CA (PRWEB) November 01, 2012

BestHostingSearch.com, a leading web hosting review site since 2006, named BlueHost as the best web hosting on Linux platform and WinHost as the best web hosting on Windows platform for personal and small businesses based on their web hosting technology, features, reliability, performance, technical support, and affordability.

Best Web Hosting 2012 > PHP, ROR, Python, Perl

BlueHost is awarded as the best web hosting provider in 2012 based on Linux platform for hosting sites developed on PHP, Zend Framework, Ruby on Rails, Python and Perl. BlueHost offers a single all-in-one unlimited web hosting plan named “BlueHost Professional” which is the most rich-featured Linux-based hosting plan. Besides supporting almost all the modern programming languages, it includes one free domain & $100-value Google AdWords credits, allows one to host unlimited sites on one account by paying once, and provides Shell Access (SSH), email, MySQL, PostgreSQL, FTP, SSL, etc. It starts at $6.95/mo regularly, but now BlueHost is offering a 44% discount for $3.95/mo for all visitors who go through this BlueHost promotional link.

BlueHost was founded in 1996 and designed to offer the affordable hosting solution to personal and small businesses. Unlike many other web hosts, BlueHost has 3 world-class dedicated data centers in Provo Utah, which had been invested with 20+ millions of USD since 2010. All the data centers are Eco-friendly, with the Internet bandwidth exceeding 150,000 Mbits totally. So far, BlueHost is serving for 2.5 million customers worldwide and it’s fast growing with approximately 20,000 new customers added for each month.

To read the in-depth BlueHost review, visit http://besthostingsearch.com/bluehost-review

Best Web Hosting 2012 > ASP.NET, ASP.NET MVC, Silverlight

WinHost is awarded as the best web hosting provider in 2012 based on Windows platform for hosting sites developed on ASP.NET, ASP.NET MVC and Silverlight technology. WinHost is the most developer and technology friendly web hosting company of all which BestHostingSearch.com had reviewed so far. WinHost supports almost all the latest cutting-edge Microsoft technology. It’s one of the first ASP.NET hosting providers that declaim to support Windows Server 2012, ASP.NET 4.5 and MSSQL 2012. Now, the WinHost ASP.NET hosting plan supports Windows Server 2008R2 & Windows Server 2012, MSSQL 2008R2 & MSSQL 2012, ASP.NET 2/3.5SP1/4/4.5, ASP.NET 2/3/4, Silverlight 4/5, and provides Full Trust configuration, remote IIS management capability, and remote MSSQL management capability.

WinHost ASP.NET hosting starts at $4.95/mo regularly, but now it’s offering a special discount for 2 months free for annual billing at $4.12/mo effectively for all visitors who go through this WinHost promotional link.

To learn more about the award of best web hosting providers in 2012, visit http://besthostingsearch.com/web-hosting-guide/best-web-hosting-2012 >>

About BestHostingSearch.com
BestHostingSearch.com is a leading web hosting review site since 2006. It ranks web hosting providers based on their real hosting experience and the reviews collected from real customers, designed to help people find the best web hosting deal, saving time and money from a bad choice.

Click here for full Story

Apache Reverse Proxy Configuration for Linux

Reverse Proxy is a gateway and it’s appears to the client like an ordinary web server. In this article, i will show quick steps to setup and configure Apache Reverse Proxy server. We need to add reverse proxy configuration into configuration to tell apache where it should be redirecting or caching information for clients that request for information. In this case, the following servers will involve in the setup.

(Server1) http://www.ehowstuff.local –> 192.168.2.54
(Server2) http://web.ehowstuff.local –> 192.168.2.55

When the client browsing /web on Server1, the traffic will redirecting to Server2.

Apache Reverse Proxy Configuration for Linux CentOS 6/ RHEL 6/ Oracle Linux 6

1. To use the Apache proxy directives, the following modules should be loaded :

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

2. Configure /web on Apache web server on Server1 :

# vi /etc/httpd/conf.d/reverse_proxy.conf

Add this lines :

<IfModule mod_proxy.c>
 ProxyRequests Off
 <Proxy *>
  Order allow,deny
  Allow from all
 </Proxy>

 ProxyPass /web http://web.ehowstuff.local
 ProxyPassReverse /web http://web.ehowstuff.local
</IfModule>

3. Restart or reload Apache to take effect :

# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

4. Browse the URL http://www.ehowstuff.local/web as below :

Apache Reverse Proxy