Click here to Skip to main content
15,888,283 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am planning on creating a website. First I thought of hosting the files on a hosting
making use of Java but then I realized no hosting offers you to host webpages done in Java.
ALL of them requires PHP which is the most widespread standard.

So I came up with the idea of creating (and buying) my own server.
I am sure you may say that is unncessary to do it if i am running a small business but still I wanna know how this works in order to know what options I have in the market.

So the questions are:

1. Would a normal PC (like the one I am using to write into this forum) to process +10,000 queries in less than few miliseconds?

2. Can I create a server with normal PC with good characteristics? Or I should buy a special computer made by some company like IBM?

3. Which websites should I look for info?

4. How much would it cost?

5. Any suggestions or ideas to help me out besides of these questions or something I may not be taking into account?
Posted
Comments
unscathed18 10-Mar-13 8:18am    
Ok I understood. But java support (jsp) is only for non-free hostings, I was just thinking of first trying and then if I wanted to go serious, I could pay monthly/yearly.
Another thing: Is it quicker using Java than PHP?

I found a JSP free hosting but I don't know how is it so far and I only have 50mb for a free account. It is not cheap and it can get up to 100$ monthly.

I know of another hosting that offers me (for free) 2gb but I doesn't use Java and gives me unlimited space and domain only for 2$ a month.

First off, you don't want to buy a server and start hosting a website yourself, there is also the connection to the internet to think about, and a lot of other things.

You do realize that you can write websites in Java, using Java Server Pages (JSP)[^] and that many, many hosting services provide JSP support?
Google: "Host JSP"[^]
I am sure that you can find quite a few Spanish hosts that do that too!
 
Share this answer
 
Comments
unscathed18 10-Mar-13 8:19am    
What other things may I can take into consideration? Just out of curiosity to have a global idea.
OriginalGriff 10-Mar-13 8:27am    
How many users, and how many of those will be concurrent, what software you need (OS / DB / IIS etc), email server, bandwidth of the connection, security, the list gets fairly massive.

If you want this as a personal server, with only a couple of users, ever, then it's pretty simple - http://www.techsupportalert.com/how-to-set-up-your-own-web-server.htm - but I wouldn't use Java for that!

You could start with this: http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ but it's heavily ubunto oriented and I have no idea if you can use JSP on top of ubunto (I don't play with linux OS's because I'm mostly .NET and embedded, and mono doesn't cut it for me)
unscathed18 10-Mar-13 8:38am    
Many thanks for the info! I'll read them carefully.
I have no problem in using ubuntu server I know the basics although the essential drawback is that a normal PC isnt up to the challenge unless you buy a good one and server-oriented.
unscathed18 10-Mar-13 8:44am    
One more thing! If I want my PHP to gain security what should I head for?
OriginalGriff 10-Mar-13 8:47am    
No idea I'm afraid - I don't use PHP, as I said I'm mostly .NET and embedded.
Hello,

I would not buy my own server because:
- It is likely that your broadband connection won't be able to handle anything serious.
- Proper servers are expensive typically several $1000.
- You need to consider maintenance, backup etc

Have you considered looking at hosted VMS?

There are two main providers that can give you instantly a server that you can configure to your own needs.

Windows Azure Virtual machine:
http://www.windowsazure.com/en-us/home/features/virtual-machines/[^]

Amazon EC2:
http://aws.amazon.com/ec2/[^]

In some cases it's even free.

Valery.
 
Share this answer
 
Comments
unscathed18 10-Mar-13 8:20am    
What is exactly a hosted VMS? For its initials I can think of Virtual Machine, but.. what for?
Valery Possoz 10-Mar-13 9:08am    
A hosted VM is a virtual machine, basically it is like a normal server, except that it is somewhere in the "cloud" and you don't have to worry with hardware failure or internet access etc...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900