如何將新網址名稱加到自己的網路空間

Keyword: 網域設定,Domain Name,Godaddy,hostgator,nameserver,網址設定,cpanel,addon domains

到Godaddy.com申請新的網址 例如 zombiewalker.net

申請好一酷名字後  接下來就是將新網域(Domain Name)加到自己的網路空間(Host)下了

先設定好Nameservers的位址

  • 找出網路空間供應商所提供的Name Servers 通常在 CPanel首頁,例:
    ns2164.someName.com
    ns2133.someName.com
    號碼是舉例用的,每個人應該不同
  • >Godaddy.com(因為我是在Godaddy註冊domain name的)  >Domain Manager >點在你的Domain Name上
  • 在Nameservers區塊下選擇Set Nameservers

  • 跳出一個視窗後,選”I have specific nameservers for my domains”
  • 填入你的nameservers,至少有兩組

然後大約2到48小時生效

然後到你的CPanel將網址加入:使用Addon Domains功能

完成後 2~最多48小時就可用

如何在mac上執行PHP?

Install MAMP

  • All-in-one web server installation package
  • This package includes: Apache, PHP and MySQL, all you need are already here

A Texteditor:Smultron(Free),TextWrangler(Free)

  • This editor must allow you to save as xxx.php, like save the file as .php in the Notepad++ in Windows
  • Dreamweaver is a excellent editor, but it costs

Save the php file in the correct folder: Application/MAMP/hotdocs

  • *>When save, remember to add php to the extension =>for example: xxx =>xxx.php
  • *Open the browser and type in: localhost/xxx.php

Test running: in any browser type in: localhost/xxx.php