Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-06-2006, 11:38 AM   #1
Solid State Member
 
scienceguy's Avatar
 
Join Date: Jun 2006
Posts: 16
Lightbulb Programming a Host Server

Hi, I think this is in the right forum.
I want to begin programming on my own server, but it has to display the site on remote computers aswell, so that it is properly hosting it. How can I achieve this? Do I use sockets or something else?

Im prepared to use the following languages (there order is the prority to program in it - so I want to use WSH but I can use the other 2); (Im using a hypertext application at first but I will adapt it in the future):
  1. Windows Script Host
  2. JavaScript
  3. Visual Basic Script
Please reply if you know how to do this, if its not possible in those languages but is in another plese tell me what language and how to do it, I will learn the language. I cannot use Java because i've tried before to start learning but I can't seem to use javac and java to compile and run the programs. If you know how to setup java please tell me.
Note: I can't start using a language which costs money to use, such as python.
__________________

scienceguy is offline   Reply With Quote
Old 07-06-2006, 05:14 PM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Programming a Host Server

I'm not really sure that i fully understand the question...

You want to start programming, but you want to use wsh/js/vbs and have them in a web page, (that's great) the wsh and vbs make up activeX controls, so don't be surprised if they either dno't work in firefox, or only half work or are blocked in IE.

you host the pages all you need is a web server, the scripts are all interperated at the client side...
infact you could use any free hosting package to do what you are attempting...

vbs and wsh can be used to make simple applications and easy scripts to ake things a little easier for you on your home PC as well. so if you don't have a lot of luck with web uses for these you could always try making a simple program to do a series of tasks.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-07-2006, 03:08 AM   #3
Solid State Member
 
scienceguy's Avatar
 
Join Date: Jun 2006
Posts: 16
Default Re: Programming a Host Server

Quote:
Originally Posted by root
infact you could use any free hosting package to do what you are attempting...
I don't relly want to use free hosting packages because you have limited webspace and you probably can't admionister the server very well. Theres also the risk of them updating their software so that your scripts don't work and uploading your files isn't as quick as creating them on the server pc itself.
If a server can only be achieved by creating an actual application, please show me how using free tools I can achieve this.
scienceguy is offline   Reply With Quote
Old 07-07-2006, 05:03 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Programming a Host Server

OK...

first things first...
you want to use your server as a web server,
what OS are you using?
and do you have any web serving software installed?
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-09-2006, 11:25 AM   #5
Solid State Member
 
scienceguy's Avatar
 
Join Date: Jun 2006
Posts: 16
Default Re: Programming a Host Server

Quote:
Originally Posted by root
OK...

first things first...
you want to use your server as a web server,
what OS are you using?
and do you have any web serving software installed?
Im using Windows XP SP2 and I have PHP 5, Perl and MySQL 5.0.22 running on Apache 2.
scienceguy is offline   Reply With Quote
Old 07-10-2006, 02:44 PM   #6
BSOD
 
Vista Master's Avatar
 
Join Date: Jul 2006
Posts: 18
Default Re: Programming a Host Server

try typing in your ip in your web browser, you can get your ip from www.whatsmyip.net - then see what comes up and tell us.
Vista Master is offline   Reply With Quote
Old 07-10-2006, 03:56 PM   #7
Solid State Member
 
scienceguy's Avatar
 
Join Date: Jun 2006
Posts: 16
Default Re: Programming a Host Server

Quote:
Originally Posted by Vista Master
try typing in your ip in your web browser, you can get your ip from www.whatsmyip.net - then see what comes up and tell us.
When I typed in my IP to the address it couldnt find it - DNS Error. I tried http://---.---.---.---/ (Ive forgotten the ip, I copied and pasted it into the address bar) and it still couldn't find it.

EDIT: My ip is deleted -root
scienceguy is offline   Reply With Quote
Old 07-11-2006, 08:42 AM   #8
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Programming a Host Server

damn... probably didn't get ther fast enough on that one...

science guy, not that it's absolutly definitly going to be a problem for you, but it's always best to try to guard your IP address... there are these idiots out there on the web with tools that need an IP address before they can attempt to hack you, I.e they have a tool that will try all (or some) known exploits for a system on any given address. (so if your firewall logs reported a lot of activity last might, then you'll know why!).
unless you physicaly want us, (us as in the rest of the world) to look at something you're doing try to keep that a bit more closly guarded.

if you look at the machine that is the server from your computer (I'm assuming they are different machines). what do you see? or try going on the actual server machine and navigating to http://localhost

i.e if the servers IP address on your network is 192.168.0.1 type that into the address bar, if it's called myserver try typing that into the address bar, if you are on the server type localhost in the address bar, or type 127.0.0.1

you should see a welcome to the apache server web page.

if you see that then you should be ready to start adding pages to your 'site', when I say pages I mean that all the scripts that you will be working on will be contained within HTML pages. in the following manner.

that welcome to apache web page is in c:\program files\apache group\apache2\htdocs

but if you look in the file
c:\program files\apache group\apache2\conf\httpd.conf you can change the directory that apache looks at to find web pages.

try this page to get you started in vbscript in a web page.
Code:
<html>
<SCRIPT LANGUAGE="VBScript"> 
<!--
msgbox "HELLO!"
-->
</script>
</html>
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 07-11-2006, 04:06 PM   #9
Solid State Member
 
scienceguy's Avatar
 
Join Date: Jun 2006
Posts: 16
Smile Re: Programming a Host Server

Quote:
Originally Posted by root
damn... probably didn't get ther fast enough on that one...

science guy, not that it's absolutly definitly going to be a problem for you, but it's always best to try to guard your IP address... there are these idiots out there on the web with tools that need an IP address before they can attempt to hack you, I.e they have a tool that will try all (or some) known exploits for a system on any given address. (so if your firewall logs reported a lot of activity last might, then you'll know why!).
unless you physicaly want us, (us as in the rest of the world) to look at something you're doing try to keep that a bit more closly guarded.

if you look at the machine that is the server from your computer (I'm assuming they are different machines). what do you see? or try going on the actual server machine and navigating to http://localhost

i.e if the servers IP address on your network is 192.168.0.1 type that into the address bar, if it's called myserver try typing that into the address bar, if you are on the server type localhost in the address bar, or type 127.0.0.1

you should see a welcome to the apache server web page.

if you see that then you should be ready to start adding pages to your 'site', when I say pages I mean that all the scripts that you will be working on will be contained within HTML pages. in the following manner.

that welcome to apache web page is in c:\program files\apache group\apache2\htdocs

but if you look in the file
c:\program files\apache group\apache2\conf\httpd.conf you can change the directory that apache looks at to find web pages.

try this page to get you started in vbscript in a web page.
Code:
<html>
<SCRIPT LANGUAGE="VBScript"> 
<!--
msgbox "HELLO!"
-->
</script>
</html>
Thanks, Ive already added files to my apache server, but would the only way to host my files on the web via my computer be to buy some hardware, or is it possible with a home computer by getting software?
scienceguy is offline   Reply With Quote
Old 07-12-2006, 05:17 AM   #10
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Programming a Host Server

no, you can host files on your computer to the rest of the world...

I'll assume that you have either a modem attached to your server computer, (which is then conected to some sort of network for any other computers in your house).

all you need to do is open port 80 on your firewall and have it directed to your server machine, (this would either be in your firewall settings, (windows firewall or any other firewall program).

assuming that you have a hardware router then there should be some sort of settings on the router, (usually accessed via a web interface) that will let you make port 80 point to your server...


for an address that is easier to remember than your IP address (and one that won't change) check out www.no-ip.com it's free, easy to set up domain names (e.g www.scienceguy.no-ip.com) that point to your computer rather than some random free web space.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0