(MAC) Apache & MySQL Server

  • 架站工具

    • WinAppServ 2.5.9
      • Apache 2.2.4 ,PHP 5.2.3 ,MySQL* 5.0.45 ,phpMyAdmin-2.10.2
    • Linux(ubuntu)
      • Xampp
    • Mac OSX(ubuntu)Mamp:

      1. 安裝完成後,進入Finder/應用程式/MAMP/,啟動MAMP。  
      (/MAMP/資料夾有停供Widget可使用)
      2. 打開MAMP,可看到star server、open start page、preference
          * start server:可啟動apache web server和mysql server。
          * open start page:打開mamp設定狀態的網頁,也可從中連到mysql的web設定頁phpmyadmin。
          * preference:內容有start/stop,ports,php,apache:四個標籤頁
             - preference設定說明
                  + start/stop:start url用來設定先前open start page的位置,原則上不動預設為(/mamp/)
                  + ports:apache port改為80。
                  + php:看個人需求設定。
      
          * apache:document root用來設定web起始頁所在資料夾,為:/Users/Shiunyi/Sites
      
      3. 打開finder,個人資料夾(ex:Shiunyi),裡面有資料夾-桌面、音樂、網站...,將其中"網站"資料夾拖到finder側邊欄,以後將編輯的網頁(ex:index.htm)放入其中,以後啟動apache web server後,即可從safari的url link:http://localhost/index.htm連到網頁。
      4. Web Homepage Address:
          - http://127.0.0.1/
          - http://localhost/
          - Web phpmyadmin:
      5. http://127.0.0.1/phpmyadmin/