School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,485 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,777 people online right now. Registration is fast and FREE... Join Now!




How i host a website In my pc

2 Pages V  1 2 >  

How i host a website In my pc, Apache,mysql will be there

hadi_php

4 Jun, 2009 - 02:42 AM
Post #1

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
First i m sorry. May be this topic is not for this board....

Now, I want my pc performed as a server. As like when i run xampp in my pc then i can browse site under htdoc folder of my PC. Now i want to View from anywhere i mean through internet when my pc is One and connected with Net line. And also want to create a FTP server also. So that someone can download from my pc.

Any idea or how can i do that?

User is offlineProfile CardPM
+Quote Post


Gediminas

RE: How I Host A Website In My Pc

4 Jun, 2009 - 02:52 AM
Post #2

New D.I.C Head
*

Joined: 1 May, 2009
Posts: 5


My Contributions
People can access your web site at http://your_external_ip_address
If you don't know what is your IP address, you can look at http://cmyip.com
And if your PC is under router, you need to config port forwarding (look at router user manual).
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: How I Host A Website In My Pc

4 Jun, 2009 - 02:53 AM
Post #3

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
you need a domain on net (Space in The Server) that supports PHP+MySQL you can buy it, if you want a free then google there are many site that is free it is good testing such as http://www.100webspace.com/. after creating a domain you need FTP Software such FileZila, FlashFTP, CuteFTP etc... for uploading your website on the net

This post has been edited by noorahmad: 4 Jun, 2009 - 02:55 AM
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:00 AM
Post #4

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
Suppose i can access my site when xampp is running by

http://localhost/somthing/

Is it possible that this address can be accessable by another internet user?

I think not..........

But i need to do this....
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:10 AM
Post #5

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
yes if you buy a domain then you will access your page as www.domainname.com
if you want to use free then it will be something like this
yourname.freedoamin.com # such as hadi_php.100webspace.net
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:13 AM
Post #6

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
how can i set that domain?
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:16 AM
Post #7

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
goto this http://www.100webspace.com/ link and use free domain fill form and it will send an email, in email you will get all information.
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:29 AM
Post #8

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
let me chk.......i will give reply soon
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:34 AM
Post #9

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
ok
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:49 AM
Post #10

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
100 web space give a domain free ..... like example.100webspace.net

Now someone entered example.100webspace.net then the window appear. They also give me the FTP server details.........

But i m not looking for it...........

i need to know how 100webspace.net website do that...........i mean i want to use MY pc as a server..............someone can access my pc.


Or i need to a redirect from 100webspace.net to my pc......

Now it may clr?

This post has been edited by hadi_php: 4 Jun, 2009 - 03:51 AM
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: How I Host A Website In My Pc

4 Jun, 2009 - 03:56 AM
Post #11

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
once you upload your site every one from every where will access your site

ok download FileZila or Cute FTP and use it to upload your page

User is offlineProfile CardPM
+Quote Post

Gediminas

RE: How I Host A Website In My Pc

4 Jun, 2009 - 04:52 AM
Post #12

New D.I.C Head
*

Joined: 1 May, 2009
Posts: 5


My Contributions
Domain is not necessary, you just can use your IP address as I mentioned before. Other people can't access using http://localhost.
Domain is for comfort, because it is much more comfortable to use for example google.com instead of 74.125.67.100.
User is offlineProfile CardPM
+Quote Post

baavgai

RE: How I Host A Website In My Pc

4 Jun, 2009 - 05:24 AM
Post #13

Dreaming Coder
Group Icon

Joined: 16 Oct, 2007
Posts: 4,261



Thanked: 389 times
Dream Kudos: 550
Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua, Cheese

My Contributions
And this PC is... where? That is to say, how does it connect to the internet? Chances are, your local IP address is not what the outside sees. ( If it is, you're too exposed. )

Most people connect to the internet via some kind of broadband device. If you plug your computer directly into that device, it will probably still do a routing trick and make your local address something like 192.168.0.2, while the rest of the world sees something different. If you connect a gateway router to the thing, you've added NATting.

First, figure out who the internet things your are. e.g. http://showip.net/

Now, if you're just plugged in and exposed to the world, navigating to that address should do it. However, that's rarely enough.

I suspect http://www.dyndns.com/ might have more info on exposing your home computer to the internet.

If you are behind some kind of gateway router, you'll have to put you computer in the DMZ.

Try playing with this info and google and see have far you get. Good luck.

User is offlineProfile CardPM
+Quote Post

tommyflint

RE: How I Host A Website In My Pc

4 Jun, 2009 - 05:33 AM
Post #14

D.I.C Addict
Group Icon

Joined: 24 Jul, 2008
Posts: 584



Thanked: 28 times
My Contributions
First off you will need to check you have a static IP if you want to do what Gediminas said, unless you use something like dyndns which can give you a domain name to connect to your dynamic ip...
If you do have a static ip you will need to configure your router to forward anything that comes in on port 80 to your local ip address... the computer running xampp or/and port 21 for ftp access!

Are you using something like Serv-U for the FTP server?

tommyflint
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 08:23 AM
Post #15

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
I think its too difficult for me......

Ok...... i need only this

Suppose - i am a internet user connected with broadband provider.... i havent any static ip.... Now if i share my pc then any one can access anyone under this network....

So they get much more speed when they copy something from my pc, coz we get only 10-20KBps speed for download via internet.

Now if i share a movie then anyone under this network can copy hole movie 1.GB within 20 min itz not possible to download that movie within 20min from internet.

Thats why i need to create a website where i will give the download link from my pc and user under the same HUB/switch/network can download them in a short time....

Is that possible?

Or is that possible a password protected FTP server of my pc. I mean may be their is a software for do that i dont know.....what the software is...

This post has been edited by hadi_php: 4 Jun, 2009 - 08:25 AM
User is offlineProfile CardPM
+Quote Post

tommyflint

RE: How I Host A Website In My Pc

4 Jun, 2009 - 08:32 AM
Post #16

D.I.C Addict
Group Icon

Joined: 24 Jul, 2008
Posts: 584



Thanked: 28 times
My Contributions
So its basically a Intranet you want to setup

I think i'm correct in saying if you are on the same domain or workgroup, then if you type your ip address then it should work

if not try your ip and the port number your web server is running on

If you try Serv-U then it should all be pretty straight forward http://www.serv-u.com/

tommyflint

This post has been edited by tommyflint: 4 Jun, 2009 - 08:34 AM
User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 09:23 AM
Post #17

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
let me chk.....i will come back soon....
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: How I Host A Website In My Pc

4 Jun, 2009 - 10:15 AM
Post #18

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,234



Thanked: 289 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
** Moved to Web Servers & Hosting **

First, I would suggest that you check the T.O.S. with your isp to make sure that they allow port 80 traffic. Chances are that they are going to require that you upgrade to a commercial service contract, which will be more expensive, but they will offer you a non-changing IP (is that static or dynamic, I can never remember). If you are going to send email from a pop3 mailserver (from your domain name) then you'll want to make sure that you have prots 25 & 110 available as well.

I didn't notice anyone mentioning that he'll need to forward these ports? Also, it would be wise to understand any security risks & how to handle them prior to getting this server online. Read up on firewalls & other security measures of the Operating System & software that you plan on using.

Security is much easier to deal with preventively, than it is to clean up after.
User is offlineProfile CardPM
+Quote Post

RPGonzo

RE: How I Host A Website In My Pc

4 Jun, 2009 - 10:38 AM
Post #19

// Note to self: hmphh .... I forgot
Group Icon

Joined: 16 Mar, 2009
Posts: 743



Thanked: 89 times
Dream Kudos: 25
My Contributions
QUOTE(no2pencil @ 4 Jun, 2009 - 10:15 AM) *

... a non-changing IP (is that static or dynamic, I can never remember). ....



Its a static biggrin.gif

User is offlineProfile CardPM
+Quote Post

hadi_php

RE: How I Host A Website In My Pc

4 Jun, 2009 - 10:40 AM
Post #20

D.I.C Regular
***

Joined: 23 Aug, 2008
Posts: 259



Thanked: 5 times
My Contributions
@tommyflint i install that software......on my pc....

Now question is what address should i provide outside? I need the software's full manual....how to share....from which address my pc will be accessible, bla bla.....


User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 04:07AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month