How to setting up a web server ?

  • Thread starter Thread starter ngkamsengpeter
  • Start date Start date
  • Tags Tags
    Server Web
AI Thread Summary
To set up a web server with Apache, PHP, and MySQL, first ensure your domain name points to your server using DNS. Register your domain with a registrar like GoDaddy or Dotster, and configure the nameservers to link your domain to your server's IP address. This process involves finding your server's IP, registering the domain, setting up nameservers, and waiting for DNS propagation, which can take up to 24 hours. For easier DNS management, consider using a service like ZoneEdit, which allows you to create DNS entries without hosting your own DNS server. To host subdomains, create an Alias DNS entry for each subdomain and configure Host Headers in your web server to route content appropriately. If your IP address is dynamic, use a dynamic IP updater to keep your DNS records current. For further assistance, resources like DSLWebServer can provide guidance on setting up a home web server.
ngkamsengpeter
Messages
193
Reaction score
0
How to setting up a web server ?I have installed apache , php, mysql but how to make my domain name point to my server . And how can I configure apache so that it can host multiple domains and also subdomains?
 
Computer science news on Phys.org
Well, your best bet is to install a control panel like CPanel or Plesk, which will configure all the domains and apache for you.
 
You need to use DNS to have a domain name point to your server. You don't need to host your own DNS server though if you don't want to. The easiest alternative is to find a company like GoDaddy or Dotster, register a domain with them. In order for it to redirect to your site you have to give Dotster or Godaddy or whomever (called the registrar) your nameservers. The nameservers are DNS servers which take queries on a domain name, like www.yahoo.com and return an IP, like 172.56.23.10.
The process then is the following, for having www.mydomain.com point to your server.
- find out your server's IP
- register www.mydomain.com with a registrar
- set up the nameservers which will contain a DNS entry translating www.mydomain.com into your IP
- go to the registrar's page and set the name servers to be the ones you set up above
- wait up to 24 hours for DNS records throughout the internet to update

Obviously the tricky part involves the nameservers. but there's a really easy solution. For example, you can use http://www.zoneedit.com
ZoneEdit will freely host your DNS entries in their nameservers, so you don't have to set up your own. Basically just create an account with them, they'll guide you through the process, it's simple. I've used them before with perfect service and uptime.

In order to host subdomains, like blog.mydomain.com you also use DNS. You create a DNS entry called an "Alias". You can do this in ZoneEdit as well, very quickly. It has a form where you type in the subdomain and the IP address (which again should be the same as your server's) which creates the Alias record. Obviously then you'll have www.mydomain.com and blog.domain.com point to the same IP, thus the same server, hence the same page. Well, not necessarily. In web servers like IIS and Apache you use Host Headers to "route" this content. Basically when you create a website, under IIS for example, it allows you to specify a Host Header, such as blog.mydomain.com. Then you set that site's root folder to be the one where your blog is, and you're all set.
 
Last edited:
The best way is to register with ZoneEdit (http://www.zoneedit.com) , and I believe you will have the option to manage upto 5 domains for free.

Then, find out your WAN IP address (http://www.whatismyip.com) . Check with your ISP weather its a static or a dynamic IP address. If its static, you just saved yourself a few more extra steps, but its not that hard if its dynamic aswell.

If your IP address is dynamic, you will require a dynamic IP address updater for Zoneedit. They have quite a few listed on one of their pages.

I would recommend you visit DSLWebServer (http://dslwebserver.com) . Its the perfect site to help anyone set up their own home web server.

If you need any specific help, do ask,

Ayman
 
Last edited by a moderator:
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top