PDA

View Full Version : how to host our site on our computers?



nabeelisnabeel
09-10-2005, 07:43 PM
What if we want to host a website on our own computers instead of geociteis.com or other free hosting sites. ? what about domain registeration concepts?

tesco
09-10-2005, 08:11 PM
The most popular web server program to use (i use it, and this website uses it) is called apache. (http://www.apache.org/)
After installing this web server you will need to open port 80 if you have a router or firewall, then browse to the apache folder and find the configuariton file which is called 'httpd.conf' in the 'conf' folder. Edit the settings in this file to setup your server.

To test that the server works type localhost into your broswer and you will get a welcome to apache webpage.
To start hosting your pages first of all you should (it's optional, but I like to do this to keep everyhting organized) create a folder for all webpages (example c:\sites\) then set that as your webpage folder in the httpd.conf file.
You can then start putting files into the folder and they will be viewable from either 'localhost/file.extension' or 'youripadress/file.extension'.

To set the default index file (the file that would run if you don't specify a file [for example, if you type http://filesharingtalk.com it runs the file called 'index.php']) go into the httpd.conf file and edit the line that says 'DirectoryIndex index.html index.html.var index.php' (or something along those lines, it will always start with 'DirectoryIndex').

To setup your web server to use PHP pages you will need to download PHP (http://php.net) and install it to your computer, then add this to httpd.conf right at the bottom:
######## PHP!
LoadModule php5_module C:/www/php/php5apache2.dll
AddType application/x-httpd-php .php

MySQL is another program you will need to install and configure to work with your web server.

It gets kind of difficult to get going at times to setup a web server but if you search google there are plenty of guides available for you, and once you get it working you can just save all of your configuration files for if you ever need to reinstall. :)

Mïcrösöül°V³
09-11-2005, 01:59 AM
I run my own website and active directory server and IIS from my own computers (3 of them). I dont use apache tho, I use IIS in windows server 2003 enterprise. Apache is good for those not running server class operating systems. It sounds as tho apache would be good for you, as the above post stated. (I dont suspect that you are running server 2003 or its variants). You would, however, need a domain name, unless you want your website to be ht#p://(insert your IP here). For this, you will need to pay for domain registration and redirection. I use networksolutions.com.
and also, you will want to run the website on a different computer than the one you use daily (its not a rule, just a generally good practice NOT to surf the web on your webserver). but then again, I do things a little differently than you will be (unless you have 3 pentium 4 computers that arent doing anything else :P) As the above post mentioned about PHP, I would recommend manually installing it rather than using any installer they provide. It is really easy to do, so dont be scared off by it...its simple. I also use MySQL, and it is also simple, just read a little bit on the subject, and you wont have any problems. If it is as simple as hosting your own html website, then just turn on IIS in windows, and get a domain name that points to your IP address, open port 80, and enjoy. good luck. :)

zirjacks
09-11-2005, 04:22 PM
here is a site that I used to get our site up and running, it has lots of information about the whole process clicky (http://www.dslwebserver.com)

Mïcrösöül°V³
09-11-2005, 06:12 PM
I leafed through the link given in the above post, and it seems to be a pretty excellent guide. :) Since I already know most of what is in that guide, I cant be bothered to read it all, but it seems very thorough.

tesco
09-11-2005, 06:29 PM
IIS 5.1 can handle web, FTP, and email services nicely. The only drawback is that you are limited to 10 concurrent connections to your website which shouldn't be a problem for most people.
Is it the same in server 2003 as well?

Mïcrösöül°V³
09-11-2005, 06:39 PM
IIS can handle MANY connections. I dont know in what they are speaking of. They are Possibly speaking of XP or XP pro, with the SP2 tcp limits, but certainly not server 2003 or any variant. :) also, IIS 6.0 is what is in server 2003. 5.1 is in XP (I think)

tralalala
09-11-2005, 07:03 PM
ya it must be the TCP SP2 limits, as there was a similar problem using eMule for instance - XP limited eMule to 10 connections, a thing that screwed download speeds.. but there is a patch around that fixes it :)

sparsely
09-12-2005, 01:10 AM
Apache is good for those not running server class operating systems...

you mean Microsoft Server operating systems? :rolleyes:

Mïcrösöül°V³
09-13-2005, 01:11 AM
Apache is good for those not running server class operating systems...

you mean Microsoft Server operating systems? :rolleyes:
yea. I have been looking at motherboards for my servers, so I got stuck on server class this, server class that :lol: But yes, microsoft server os is great. i never played with apache, as microsoft doesnt need new things added and be compiled all the time, and i think that this person isnt running any linux os, so IIS would be the way to go.

sparsely
09-13-2005, 10:55 AM
you mean Microsoft Server operating systems? :rolleyes:
yea. I have been looking at motherboards for my servers, so I got stuck on server class this, server class that :lol: But yes, microsoft server os is great. i never played with apache, as microsoft doesnt need new things added and be compiled all the time, and i think that this person isnt running any linux os, so IIS would be the way to go.

well, I think a separation needs to be made here. Though it may be clear to us, it's probably not to a newcomer to teh concept...
A web server application or service is not the same as an Operating System.
You can, for instance, operate several different web server software packages even on the same machine (though configuration could get tricky:P).
Windows can handle Apache, IIS, and others. Apache is released in packages, and the Windows version has an .msi installer package available. Compiling is not necessary. Regardless of which you use, they are both (IIS/Apache) good software.

4play
09-13-2005, 09:24 PM
I much prefer the lamp (linux, apache, mysql and php) approach for serving webpages.

I have a server at uni a p3 600mhz machine that runs slackware and a few other tools. Have not seen the machine for about 2 years now but it is still up and running and secure. Using linux allows me to run the box without a gui saving plenty of system resources. dont think windows 2003 can do that.

If you have another spare computer (think anything above 100mhz) i would highly recommend learning to install linux and play about with it. :)

kazaa2002
09-25-2005, 02:59 PM
..........
To setup your web server to use PHP pages you will need to download PHP (http://php.com) and install it to your computer, then add this to httpd.conf right at the bottom:
######## PHP!
LoadModule php5_module C:/www/php/php5apache2.dll
AddType application/x-httpd-php .php
...........

:)

@ross, your link goes to some medical site-parents to parents
maybe this
PHP: Hypertext Preprocessor (http://www.php.net/) perhaps this site you were refering to?

nabeelisnabeel
09-28-2005, 06:49 PM
Thanx for you all for such a nice replies.

tesco
09-28-2005, 09:37 PM
..........
To setup your web server to use PHP pages you will need to download PHP (http://php.com) and install it to your computer, then add this to httpd.conf right at the bottom:
######## PHP!
LoadModule php5_module C:/www/php/php5apache2.dll
AddType application/x-httpd-php .php
...........

:)

@ross, your link goes to some medical site-parents to parents
maybe this
PHP: Hypertext Preprocessor (http://www.php.net/) perhaps this site you were refering to?
Yes that's the one. Thanks.

When i was posting i remember typing php.com then opening a new windopw to chekc if i had the right adress, i guess i forgot to change it after.:blink:

Buffalo
03-17-2006, 09:21 PM
The most popular web server program to use (i use it, and this website uses it) is called apache. (http://www.apache.org/)
After installing this web server you will need to open port 80 if you have a router or firewall, then browse to the apache folder and find the configuariton file which is called 'httpd.conf' in the 'conf' folder. Edit the settings in this file to setup your server.

To test that the server works type localhost into your broswer and you will get a welcome to apache webpage.
To start hosting your pages first of all you should (it's optional, but I like to do this to keep everyhting organized) create a folder for all webpages (example c:\sites\) then set that as your webpage folder in the httpd.conf file.
You can then start putting files into the folder and they will be viewable from either 'localhost/file.extension' or 'youripadress/file.extension'.

To set the default index file (the file that would run if you don't specify a file [for example, if you type http://filesharingtalk.com it runs the file called 'index.php']) go into the httpd.conf file and edit the line that says 'DirectoryIndex index.html index.html.var index.php' (or something along those lines, it will always start with 'DirectoryIndex').

To setup your web server to use PHP pages you will need to download PHP (http://php.net) and install it to your computer, then add this to httpd.conf right at the bottom:
######## PHP!
LoadModule php5_module C:/www/php/php5apache2.dll
AddType application/x-httpd-php .php

MySQL is another program you will need to install and configure to work with your web server.

It gets kind of difficult to get going at times to setup a web server but if you search google there are plenty of guides available for you, and once you get it working you can just save all of your configuration files for if you ever need to reinstall. :)

Some very good information rossco, nice one.
I had a dabble last year with this but had to give it up as had a lot on.
seeing this today has triggered it off again :) as got more time on my hands.
I already own two servers "inactive", one is to expire in october 06, but the other is a never renew account with adventure media.

The main reason last year to run a home server was for test purposes,
It was just a safe way for me to test scripts on a IPB forum, running the database as well, it gave me valuable info on the running of the board.
It did run very well offline, but never when live with it.

Will definitely have a go at this again, great stuff

Mïcrösöül°V³
03-18-2006, 12:54 AM
resurrecting the dead :rolleyes: :P altho we never did hear about how it went, or whether it worked for him or not. My setup still runs nice, except 2003 like to throw a bitch fit sometimes about the battery back-ups. It likes to think its running on batteries :lol: