Staredit Network

Staredit Network -> Computers and Technical -> How to run a website on your own computer.
Report, edit, etc...Posted by Doodle77(MM) on 2006-10-10 at 17:15:14
[CENTER]How to run a website on your own computer[/CENTER]


What you'll need
  • Apache Web Server (httpd.apache.org)
  • PHP (php.net) (though you can use some other scripting language if you want)
  • A dyndns.com account
  • (optional) a dyndns compatible router
1. Install Apache, all the defaults should be fine.
2. Unzip PHP to C:\PHP
3. add this line to the end of C:\[where you installed apache]\conf\httpd.conf
CODE
#For PHP 5
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"

4. Restart your computer and type `localhost' into a web browser. If you come up with the default Apache page, that worked.
5. Put this php script into [where you installed apache]\htdocs\test.php
CODE

<?php
echo "w00t it works";
?>

Type localhost/test.php into a web browser. If you see `w00t it works' then you're fine.
6. Open up your router's control panel, and find something like "Port Forwarding" or "Virtual Servers".
7. Add an entry forwarding port 80 (TCP) to your computer.
8. Get a dyndns.org account if you dont already have one.
9. My Services->My Hosts->Dynamic DNS->Add Host. Select a domain and subdomain to use. IP address should already be filled in for you. Click Add Host.
10. Go to your new address, if it doesnt work, you did something wrong.
OPTIONAL STUFF
if you have a DynDNS compatible router ( most are )
1. Go to your router control panel. and then to Dynamic DNS (should be somewhere in there).
2. fill in the stuff.

No reason for this to be locked -Doodle77
It auto-locked due to inactivity. //Syphon
Report, edit, etc...Posted by Pyro-Fire on 2007-01-07 at 19:07:27
w00t.gif

GJ! when i get my second box ill turn this one into a website ^_^!

also, this helps to understand how a website really works..!

edit:

my friend told me about this utility.. it installs sql/apache/php ect automatically, no need for config. and its only 33 mb!

http://www.apachefriends.org/en/xampp.html
Report, edit, etc...Posted by NerdyTerdy on 2007-01-13 at 20:48:36
How good does your computer have to be for this to work without slowing it down greatly?
Report, edit, etc...Posted by Syphon on 2007-01-13 at 21:15:19
QUOTE(NerdyTerdy @ Jan 13 2007, 08:48 PM)
How good does your computer have to be for this to work without slowing it down greatly?
[right][snapback]613437[/snapback][/right]


Not very good.

Also, try http://www.wampserver.com/en/ if you're rather intimidated, or your first attempts don't work.
Report, edit, etc...Posted by Oo.Insane.oO on 2007-02-09 at 10:48:43
Does it slow down your computer if your running it? and if you shut off your computer does the site still work?
Report, edit, etc...Posted by Mp)Blu on 2007-02-09 at 11:19:24
QUOTE(Oo.Insane.oO @ Feb 9 2007, 09:48 AM)
Does it slow down your computer if your running it? and if you shut off your computer does the site still work?
[right][snapback]625172[/snapback][/right]

Yea I'd like to know this too cuz I don't have 24/7 comp. I'd like to know this though: If I were to host a site off of my comp. and some1 hacked into my site, will they be able to hack into my comp also through my site? I think I watch too many movies pinch.gif
Report, edit, etc...Posted by Doodle77(MM) on 2007-02-09 at 17:37:28
QUOTE(Oo.Insane.oO @ Feb 9 2007, 10:48 AM)
Does it slow down your computer if your running it? and if you shut off your computer does the site still work?
[right][snapback]625172[/snapback][/right]
It doesnt slow down your computer a bit, unless your computer is something like a Tandy (pie actually has one of those) tongue.gif
If you shut your computer off, theres nothing hosting the site, so it doesnt work until you turn your computer back on...
Report, edit, etc...Posted by dumbducky on 2007-02-09 at 17:39:02
QUOTE(Mp)Blu @ Feb 9 2007, 11:19 AM)
Yea I'd like to know this too cuz I don't have 24/7 comp. I'd like to know this though: If I were to host a site off of my comp. and some1 hacked into my site, will they be able to hack into my comp also through my site? I think I watch too many movies  pinch.gif
[right][snapback]625190[/snapback][/right]

Yes, since your computer is the site.
Report, edit, etc...Posted by Syphon on 2007-02-09 at 21:55:19
QUOTE(Mp)Blu @ Feb 9 2007, 11:19 AM)
Yea I'd like to know this too cuz I don't have 24/7 comp. I'd like to know this though: If I were to host a site off of my comp. and some1 hacked into my site, will they be able to hack into my comp also through my site? I think I watch too many movies  pinch.gif
[right][snapback]625190[/snapback][/right]


Firstly, you have no idea what hacking even is.

Secondly, God no.
Report, edit, etc...Posted by Pyro-Fire on 2007-02-09 at 22:06:41
QUOTE(Mp)Blu @ Feb 9 2007, 11:19 AM)
Yea I'd like to know this too cuz I don't have 24/7 comp. I'd like to know this though: If I were to host a site off of my comp. and some1 hacked into my site, will they be able to hack into my comp also through my site? I think I watch too many movies  pinch.gif
[right][snapback]625190[/snapback][/right]

1. no


2. yes. but it would be kinda hard to do so if you use common sense. if you jsut want it for private use and your on a router.. dont forward port: 80.
Report, edit, etc...Posted by Mp)Blu on 2007-02-10 at 00:30:51
QUOTE(Syphon @ Feb 9 2007, 08:55 PM)
Firstly, you have no idea what hacking even is.

Secondly, God no.
[right][snapback]625507[/snapback][/right]

Hacking: Some1 getting into my computer and stealing stuff. That is my version of hacking.
QUOTE
If you shut your computer off, theres nothing hosting the site, so it doesnt work until you turn your computer back on...

Oh..I don't have my comp on long..
Next Page (1)