Change rdp port number

How to change Remote desktop port ie. RDP port on windows server.

Hacker do have brute force script which try to access windows server using standard RDP port which is 3389. If you check logs on your windows server you will find Unauthorized persons tried to access server using standard RDP port hundreds of times from different country some times their attempt is more than 10000+ times in a day.

To secure server it is recommended to change standard port from 3389 to something else like 32000. You can choose any port which is not in use from range 1-65000.

 

How to change Remote desktop port. Start > Run > regedit > HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\ > On right hand side search for PortNumber . Right click on portnumber > Modify > select decimal > It will show you default port 3389 . Change it to something else like 32000 and click okay.

 

Then go to start > Search  > Control panel > Windows firewall > On left hand side > Click on Advance Setting > Right click on Inbound Rules (Left hand side panel) > New Rule > Port > Check TCP and Specific port >  put 32000 > Next > check “Allow the connection > Next > Next > Name rule like Custom RDP port > Hit Finish.

Now more remote desktop connection application from start > Remote desktop connection > Enter Computer as Server-IP:32000. If your server IP is 10.10.10.32 then put Computer as 10.10.10.32:32000 > Hit connect.

 

 

cPanel web hosting

Featured

cPanel Webhosting.

cPanel is most user friendly panel in web hosting. Most of the shared hosting provider , reseller, dedicated & cloud server use this panel to manage client’s site or their own site. Most important feature of cPanel is it provide lots of features like. Create email accounts, setting filters, forwarders, FTP accounts , Password protect folders etc…

For hosting provider it is very important to manage and monitor activities going on their server especially on shared server. Main advantage of shared hosting server is you can host lots of sites and oversell resources.

What is overselling. Suppose you have server with 16 CPUs, 300 GB disk, 10 TB (10240 GB) bandwidth and 32 GB RAM. Such server will cost provide around $200 per month. Here hosting provider will provide client basic plan like: 10 GB , and 100 GB bandwidth for $2. He would able to host such 500 Clients on his cPanel server because most of the client ie. 90% will not use even 10 GB bandwidth and 1 GB disk space while hosting a site. Also most of sites will have very low traffic in such case they will not be using even 1% of server’s total resources.

In this way shared hosting server would able to make $1000 per server costing him $200 including cPanel license.

I will write few more post about Web hosting business. Feel free to raise any question either technical or non-technical in comment or contact us form. I would glad to assist free of cost.

Block sites without firewall on windows

Block web sites without firewall on windows.

Here, we will learn on how to block web sites for your personal computer ie. outgoing traffic to a site. Make sites inaccessible via your window server/PC.

Here server either it is linux or windows has a hosts file. It map hostname to IP address. Suppose abc.com has IP 10.10.10.10 and you don’t this site accessible using particular server.

You need to open hosts file using text editor as administrator.

Steps to open hosts file as administrator.

Click on windows > Start > search > notepad > Right click on notepad > Run as administrator.

Then click on file > open > Go to C:\Windows\System32\drivers\etc\hosts

Add following line in it.

127.0.0.1 abc.com

This will route abc.com to 127.0.0.1 for your server/PC. Since no such site hosted on your PC (127.0.0.1 referred as your local IP) it will not load.

creating database without cpanel user prefix

Creating mysql user and database without cPanel user prefix.

By default cPanel used to create database and DB user with cPanel username _as prefix. But now cPanel version 68 allows you to disable prefixing so you can create single DBs and DB users.

You can enable disable prefix feature from

WHM > Tweak Setting >  Require a username prefix on names of new databases and database user

Example: If you create database with name wp as cPanel user india. It will create database as india_wp but if you disable this then it will allow you to create database with name wp only.

Access webalizer stats without login to cpanel

How to access webalizer stats without login to cpanel.

First login to cPanel > File manager > public_html > edit .htaccess.

Now create symlink for webalizer in public_html folder using following command.

ln -s ../tmp/webalizer webstats

chown username.username webstats

chmod 755 ../tmp/webalizer

Replace webstats with name you want in order to access your website statistics.
Change the owner to account user and permissions to 755.

You will need ssh access to create symlink.

If you don’t have ssh access . Then create php file in public_html and copy paste following code in it.

<?php

$target = ‘/home/cPanelusername/tmp/webalizer’;

$shortcut = ‘webstat’;

symlink($target, $shortcut);

?>

Now, access it using browser. This will create symlink and you will able to access webalizer stats using url  yoursite.com/webstats .

You can remove php you created to generate symlink.

Access Awstats without logging into cPanel

How to access Awstats without logging to cPanel

We will learn how to configure awstats to access without cPanel.

Download awstats-version-number.tar.gz from http://awstats.sourceforge.net > dowmnload on your PC.

Create a folder and extract the contents to it. You will find two folders cgi-bin and iocn you need to upload then using File Manager (in cPanel) or FTP to “public_html” folder.

Then go to public_html/cgi-bin & change the permissions of the awredir.pl and awstats.pl files to 755.

Now go to homedirectory via FTP there you will find folder tmp/awstats/. Search for awstats.mydomain.com.conf. (mydomain.com should be your domain). This is file created by cPanel just download it to your PC.

Edit this file with text editor and alter ‘DirIcons’ line to DirIcons=’/icon/’ and upload it public_html/cgi-bin folder.

Now you shall able to access awstats using url

http://www.mydomain.com/cgi-bin/awstats.pl?config=mydomain

We recommend to password protect cgi-bin folder.

How to host website

How to host website ?

You need to register a domain (website) from domain registar. Another option is signup to web space at web hosting provider and register domain with them. Most of the web hosting service provider allow client to register domain at very low price and some offer registering domain free of cost.

Once you are done with signup to webspace and registering domain. You will get control panel login details. Your web developer need to upload web pages using FTP login details. After uploading pages just browse your site name and your site is live.

What is web hosting

What is Web hosting and web hosting service providers.

Web hosting means rent web space for your web site so that it will be accessible using internet allover world.

Web hosting services provide web space on their server to host your website (developed with help of webdeveloper) .  These servers are very high powered hardware configuration and internet connectivity upto 1 GB ie. 1024 mbps.  Once you host your web site internet user can type your web site in browser and access your web site.