PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old February 14th, 2004, 06:54 PM
kbenwa kbenwa is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 48 kbenwa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #2  
Old February 14th, 2004, 08:04 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
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

Reply With Quote
  #3  
Old February 14th, 2004, 08:22 PM
kbenwa kbenwa is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 48 kbenwa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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?

Reply With Quote
  #4  
Old February 14th, 2004, 10:07 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 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.

Reply With Quote
  #5  
Old February 15th, 2004, 04:29 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
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

Reply With Quote
  #6  
Old February 16th, 2004, 01:56 AM
kbenwa kbenwa is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 48 kbenwa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
  #7  
Old February 16th, 2004, 02:15 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Configing for other people to view site

First off, DNS tutorial http://codewalkers.com/tutorials/24/1.html


Reply With Quote
  #8  
Old February 20th, 2004, 02:41 AM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Configing for other people to view site


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway