Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Showing posts with label web site hosting. Show all posts
Showing posts with label web site hosting. Show all posts

Tuesday, December 24, 2013

How to Host a site?

Back to Creating web sites , Taking a Domain Name & Hosting
Here, I am explaining to 
  1. Download Filezilla
  2. Host a site using Filezilla
Filezilla is a Free Open Source FTP Solution.

Keep in mind that , Domain name is something like your House Name , and a Hosting Plan is something like a plot in which you want to build your house .

A : Downloading Filezilla 

Download Filezilla Client from here .
It will look like this.



When we click dowload , we can see



Click NEXT , then we can see;


Click ACCEPT , then 


Again , by clicking ACCEPT , downloading starts.


After downloading complete ,


Choose the appropriate option , and click NEXT.


Click NEXT , and choose a folder for installing Filezilla.

Again , click NEXT

Click INSTALL

And Finally ,


Click FINISH.


B : Hosting a site using Filezilla 


Now double click on the Filezilla , to open it

STEP : 1


.The output screen will be like this.



After writing the HOST , USER NAME and PASSWORD , we can click QUICKCONNECT to test the connection. But always have to make sure that , we chose our protocol as FTP. To check this,

Click , FILE --> SITE MANAGER . Then we can see,

STEP : 2




Select the protocol as FTP , and give your USER NAME and PASSWORD .
Click CONNECT .

(This user name and password is given by the Admin of the site, who have a control over cPanel , refer "Taking a Domain Name & Hosting " .

What you'll see next is a whole lot of text scrolling in the top window. That’s the FTP program communicating with the server. Hopefully it’ll be successful and you’ll see a whole lot of green and blue text flashing through that window, then some other windows will open in the main window on the right.
See the below given picture :


The window on the right represents the files and folders on your server.
Depending on the features and administration tools your hosting provider has bundled with your account, you might see a range of folders here.

The windows on the left represent the files and folders on your computer .

If already connected , then we can see a message as ;



To know about "How to select a HOST , and how to register with User name and Password ", click here .

Then we can see ,

STEP : 3

After connecting , browse the web site files we want to HOST (in the left side) .
When connecting , we can see the files in the server (we choose).




Here , our selected HOST is Onlineindiashoppe.com

NOTE : 

To connect to an FTP server, enter the address of the server into the host field of the Quickconnect bar (e.g. onlineindiashoppe.com ). If it is a special server type like an SFTP server, add the protocol in front of the address. In case of an SFTP server, start the address with 'sftp://' (e.g. sftp://onlineindiashoppe.com). 

Please notice that the Quick Connect is for... quick connections - so there is no way to edit the quick connections list which stores the last 10 entries. To store FTP server names you should use the Site Manager, instead.
Quick Connect is good for testing the login info before making a site manager entry. Once you connect, you can choose File -> "Copy current connection to Site Manager..." to make a permanent entry. It is usually best to check your login info with Quick Connect before making a permanent entry.

STEP : 4

Select Public HTML from right side.Double click on it.


STEP : 5

In Public HTML , create a folder (Here , created a floder sfc , for example).See the picture below :
(Right click , then create directory ).

Note that , if you took a Hosting plan and pointed your first domain to it , then that domain is considered as the primary domain.So no need to create a folder under public_html .
Just transfer all your files under public_html .
And if you want to host another site , create a folder under  public_html  and transfer the files into it.

Click here to know about it.


STEP : 6


Drag and drop the files (from left side) to the folder we created (here , sfc ).


you just need to drag and drop them into the big window on the right hand side and Filezilla will upload them. You could also right-click and select "upload".

There's no magic "publish" button when it comes to FTP. As soon as you upload something to your website it goes live, so any files you've dragged across in the previous step should now be available on the Internet!
 If the files are already there in the server (right side) , it will ask whether we want to replace with the old file.

Click the folder symbol (below the heading file name) to  go back to the previous file list.

STEP : 7

Database Hosting : 

Now we have to host the created Database also along with the files.
To do this , we are using cPanel .
For example ,  This is the address of cPanel , of onlineindiashoppe .

Steps are :
  • Open your cPanel 

  • After login , we can see


  • Select "MySQL Database" . Then we can see

Now , do these steps :

  1. In MySQL database , create a new database
  2. Create a new user (by adding a user name and password )
  3. Now , let's add the user to the DB (DataBase) , and click Submit
  4. Click "Make Changes" after checking the previleges you would like this user to have for this DB

These are the basic steps .
And how to connect your database , will follow in other session. 

Try cPanel Demo at first , in order to have a rough idea about cPanel.

The Hosted site is :



Monday, December 23, 2013

Some introductions to web


Points covered here : 
  1. Domain Name
  2. Host name
  3. What is web hosting?
  4. Types of Hosting companies
  5. What is an IP Address?
  6. What is Domain Name Server (DNS)
  7. What does FTP stand for?
  8. What is Filezilla ?
  9. What is a Web server ?
  10. Difference between Scripting Language & Programming Language
  11. What is SERVER side scripting & CLIENT side scripting?
  12. What is CSS (Cascading Style Sheets) ?


1 : Domain Name :

When you use the Internet, you use domain name and hostnames all the time. These hostnames and domain names when put together become the Internet address that you search with.

Domain name is an addressing construct used for identifying and locating computers on the Internet. Domain names provide a system of easy-to-remember Internet addresses, which can be translated by the Domain Name System (DNS) into the numeric addresses (Internet Protocol (IP) numbers) used by a network.
Domain Names always have 2 or more parts seperated by the dots.
Eg : landecsurvey.com

Here , "landecsurvey" is the leftmost part is the word that identifies the entity & this is a unique name and there can not be any duplicates.

The second part, or the rightmost part is the TLD, or Top Level Domain. This is .Com which means that it is a commercial organization.

Domain name is something like your House Name , and a Hosting Plan is something like a plot in which you want to build your house .

2 : Hostname

Hostname is the term for the label that is assigned to any device connected to a computer network and is used to identify the device across the web.
A hostname usually consists of a single word or phrase and can be followed by a Domain Name System domain at the endThat is, a website. Used this way, the hostname is called a domain name.

Hostnames can be a confusing as they have a double meaning. The hostname of an Internet Address is all of the left most pieces of a full internet address if there are more than 2 parts to the address. If there are only 2 parts of the address, then the hostname is equivalent to the domain name.

Here are some examples:


Full Address
Hostname
Domain Name/Subdomain
TLD
www.landecsurvey.com
www
landecsurvey.com
com
landecsurvey.com
landecsurvey.com
landecsurvey.com
com
www.google.net
www
google.net
net
my.www.landecsurvey.com
my
www.landecsurvey.com
com


landecsurvey.com is the domain name.
www is the hostname
www.landecsurvey.com is the hostname as well !!!

3 : What is Web Hosting

Web Hosting or 'Hosting' is a service provided by a vendor which offers a physical location for the storage of web pages and files. Think of a Web Hosting Company as a type of landlord, they rent physical space on their servers allowing webpages to be viewed on the Internet.

4: Types of Hosting companies

Hosting options available are:
  • Free Hosting : Free web hosting can be a good choice when you just want to build a non-critical website for fun. Very often in a free hosting environment, connection speed is slow, website can be down frequently, and advertising banners is automatically added to your website. Some companies require you to purchase your domain name to receive free hosting services from them, while others offer you a free subdomain under them, such as [yourname.webhost.com]. Be careful as you will not be able to transfer these free subdomains.
  • Shared Hosting : In a shared hosting environment, your and other website owners shared one server. This includes sharing the physical server and the software applications within the server. Shared hosting services are affordable because the cost to operate the server is shared between you and these other owners. There are, however, a number of down sides, such as being slower.
  • Dedicated Hosting : In a dedicated hosting environment, you have the entire web server to yourself. This allows for faster performance, as you have all the server’s resources entirely, without sharing with other website owners. However, this also means that you will be responsible for the cost of server operation entirely. This is a good choice for websites that requires a lot of system resources, or need a higher level of security.
  • Collocated Hosting : In this type of hosting, you will purchase your own server and have it housed at a web host’s facilities. You will be responsible for the server itself. An advantage of this type of hosting service is you have full control of the web server. You can install any scripts or applications you need.
5 : What is an IP Address?

Every computer connected to the Internet must have a unique address known as an IP (Internet Protocol) address. The IP address is a numeric address written as a set of four numbers separated by dots, for example 64.149.219.213. The address provides a unique identification of a computer and the network it belongs to.

6 : What is Domain Name Server (DNS)

Each computer on the Internet is assigned a unique address, called an IP address. A typical IP address looks like this: 199.123.456.7

It is very difficult to keep in mind the IP addresses of all the websites we visit daily. Words are easier to remember than strings of numbers. This is where domain names come into the picture. When you visit a website, all you need to know is its URL. Computers remember numbers, and DNS helps us convert the URL into an IP address that the computer can understand.

7 : What does FTP stand for?

File Transfer Protocol - Allows the transfer of one or more files from one computer to another across the Internet. Usually from a personal computer to a Server or vice versa.
Or , It is a system that allows you to log in to a server and upload, download or modify content.

8 : What is Filezilla ?

FileZilla is a free, open source, pair of software for ftp.
It is a program that actually lets you transfers files over FTP. There are FTP server and an FTP client . They are used for transferring files over a network.

What is the difference between FileZilla Client and FileZilla Server?

FileZilla Server is an FTP server that clients can connect to. You provide access to some portion of your hard drives for download, upload, or both by other users.

FileZilla Client is an FTP client for connecting to an FTP server someone else is running.

Download Filezilla Client , to upload your web site on the web.

9: What is a Web server ?

A web server is a piece of software that enables a website to be viewed using HTTP. HTTP (HyperText Transfer Protocol) is the key protocol for the transfer of data on the web. You know when you're using HTTP because the website URL begins with "http://" (for example, "http://www.landecsurvey.com").

10. Difference between Scripting Language & Programming Language


Scripting Language are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed. An error is issued when a line cannot be executed for any reasn (wrong syntaxor illegal operation,...). e.g. Python, shell-script, Matlab.


Programming Language are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute. e.g. Java, C/C++, Visual Basic...

11. What is SERVER side scripting & CLIENT side scripting??


??
In the context of web programming, what are the differences between Server-side programming and Client-side programming? Which languages belong to which, and when do you use each of them?

== 3 points you have to note;
  1. The Server - This party is responsible for serving pages.
  2. The Client - This party requests pages from the Server, and displays them to the user. On most cases, the client is a web browser.
  3. The User - The user uses the Client in order to surf the web, fill in forms, watch videos online, etc.

(a) Server-side programming :

Server-side programming is writing code that runs on the server, using languages supported by the server (such as Java, ASP,PHP, C#; it is possible to write code that executes on the server-side in JavaScript).

Uses
  • Process user input.
  • Display pages.
  • Structure web applications.
  • Interact with permanent storage (SQL, files).

(b) Client-side programming

Client-side programming is writing code that will run on the client, and is done in languages that can be executed by the browser, such as JavaScrip,HTML,CSS...etc.

Uses
  • Make interactive webpages.
  • Make stuff happen dynamically on the web page.
  • Interact with temporary storage, and local storage (Cookies, localStorage).
  • Send requests to the server, and retrieve data from it.
  • Provide a remote service for client-side applications, such as software registration, content delivery, or remote multi-player gaming.
    (c) Basic Example
    • The User opens his web browser (the Client).
    • The User browses to http://google.com.
    • The Client (on the behalf of the User), sends a request to http://google.com (the Server), for their home page.
    • The Server then acknowledges the request, and replies the client with some meta-data (calledheaders), followed by the page's source.
    • The Client then receives the page's source, and renders it into a human viewable website.
    • The User types http://programming-bca-mca.blogspot.com/ into the search bar, and presses Enter
    • The Client submits that data to the Server.
    • The Server processes that data, and replies with a page matching the search results.
    • The Client, once again, renders that page for the User to view.
    12. What is CSS (Cascading Style Sheets) ?

    An HTML document can be displayed with different styles.

    Styles define how to display HTML elements.
    In the case of large sites, if we add styles and color in each page , it became large.

    That is , Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process.

    To solve this problem , all formatting could be removed from the HTML document, and stored in a separate CSS file.
    CSS defines HOW HTML elements are to be displayed.

    Thus, save a lot of work with CSS..Just like JavaScript, CSS also using along with HTML.

    A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly brackets:


    Example :

    <html>
    .........
    p {color:red;text-align:center;}
    ..........
    </html>




    Will Continue.....