|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Configing for other people to view site
I am trying to find out what i need to do to be able for other people to acces my site from a different computer. I registered a Domain name and have Apache server with php installed on my computer. What i have read about Serverhost name im not sure what i would put there for people to be able to view my site from anywhere/computer. Is this possible and if so could someone possibly lend a helping hand.
|
|
#2
|
||||
|
||||
|
RE: Configing for other people to view site
To run a webserver you'll need a static IP address (there's a way to do it with dynamic IPs, but I'm not well versed in it) and a computer running a web server program such as apache.
You can register a domain name to make it easier to access if you wish. When you register the domain you'll be asked for the address of the primary name server. The primary name server is a DNS server which will map your IP address to the domain name, so that when people type in www.example.org they'll be taken to the correct server. You said you already have Apache running and a domain name registered... so all you'll need now is to worry about the DNS. There are several free DNS hosting providers on the internet; I've registered with www.xname.org. Your domain name points to the DNS, the DNS's records will point to your server. Once you have your IP address of the server mapped to the domain name you've registered you're set to go! Best of luck, Tim |
|
#3
|
|||
|
|||
|
RE: Configing for other people to view site
bluephoenix;
I went to where i registered my Domain name and signed in to manage account there is 2 Name servers there, is that what i use. Server Hostname, One is primary and the other is secondary. If so where would i put this information for it to work. Also when i installed php i used the Module Version do i need to change to CGI Version? |
|
#4
|
|||
|
|||
|
RE: Configing for other people to view site
It depends on if you are planning on using your own DNS. If you are, you need to list the DNS servers of your website that you have configured, otherwise, list them DNS servers that your domain is being managed by.
|
|
#5
|
||||
|
||||
|
RE: Configing for other people to view site
You should be fine with the module version of PHP. That's what I'm using on my server, just make sure your Apache config is good.
LoadModule php4_module libexec/libphp4.so DirectoryIndex index.php index.cgi index.html index.htm AddType application/x-httpd-php .php Now in regards to the DNS, let's suppose my web server's IP address is 10.4.160.20. And I've registered my domain name, example.com. I set up the DNS record: A NAME: example.com. IP: 10.4.160.20 CNAME ALIAS: www NAME: example.com. Then back to where you registered the domiain name, you'll be asked for the server hostname for the domain. For an example, if you used www.xname.org, you'd use: Server Hostname- Primary: ns0.xname.org Secondary: ns1.xname.org This whole process links your domain name to a DNS, which in turn links your domain name to the IP of your web server. -Tim |
|
#6
|
|||
|
|||
|
RE: Configing for other people to view site
Tim,
Thank you for getting back to me. Ok i went in and where it said DirectoryIndex i added index.php index.cgi index.htm already had index.html. Now do i need to put a "," after each one. Ok now for the LoadModule php4_module libexec/libphp4.so I have LoadModule php4_module c:php-4.3.4-win32/php-4.3.4-win32/sapi/php4apache.dll. A book i have said to add that is this right, i know when i type i 127.0.0.1 it works. Do i need to change to what you said to use. As for AddType application/x-httpd-php .php i already did that. Ok now for DNS, i registered a Domain name thru Blue Domino, I have a place to manage Domain name, like contact info and so forth, also there is a place to Manage Name Servers, when i go there there are 2 there primary and secondary ns1.yourwebhosting.com with an IP address, is this what i use? If so where would i put the infomation in the httpd file. Hopefully i explained what i have and u can help. Kevin |
|
#7
|
|||
|
|||
|
RE: Configing for other people to view site
First off, DNS tutorial http://codewalkers.com/tutorials/24/1.html
|
|
#8
|
||||
|
||||
|
RE: Configing for other people to view site
Okay... for the easy question:
No you do not seperate the various pages under DirectoryIndex with commas. It's simply, DirectoryIndex index.php index.cgi index.html index.htm And now for the other one: You MUST set up DNS records that will point to your web server. DNS records are handled by a DNS server. You may set up your own DNS server though that is beyond my realm of experience. I suggest starting at the tutorial Postal Cow gave you and perhaps others in the community can give some pointers. If you don't want to set up your own DNS server, again I recommend xname.org simply becuase I use them. There are other free DNS servers available... just do an Internet search. The DNS record has several fields. The ones you need are: A NAME, IP ADDRESS, CNAME ALIAS and NAME. See my previous posting in how these records should look. AFTER these records have been set, go back to Blue Domino and change your primary and secondary name servers to point to the server hosting your DNS records. It will be your IP address ONLY if you set up your own DNS server. If you use someone else's DNS server such as xname, then you would have that point to their name servers. Once your DNS records have been properly created and your domain's registration points to the DNS server, then people will be able to access your site. -Tim |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Configing for other people to view site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|