How to easily install Apache, MySQL and PHP in OS X如何輕鬆安裝Apache , MySQL和PHP在OS X中

by Ross McKillop on August 8, 2008 Ross麥基洛普 2008年8月8日

陸委會網頁設計與開發

Using使用 MAMP mamp , you can quickly and easily install Apache, PHP and MySQL on your Mac. ,您可以快速輕鬆地安裝了Apache , PHP和MySQL在您的Mac上。 Installing each package separately is totally possible, but MAMP offers a number of advantages vs. individual installations.安裝每個包分別是完全可能的,但mamp提供了許多優勢,與個別設施。 MAMP will not alter or interfere with an existing version of Apache already running on your Mac. mamp不會改變或干預與現有版本的Apache已經運行在您的Mac上。 If Apache/MySQL/PHP are no longer needed, delete the MAMP folder and everything returns to its original status.如果阿帕奇/ MySQL的/ PHP的,現在已經不再需要,刪除mamp文件夾和一切返回其原來的地位。 Keep reading for a walk-through of the installation and initial setup.繼續閱讀一個拱門式的安裝和初始安裝。

  1. First things first,第一件事:第一, download MAMP下載mamp . Open the .DMG file, review the license, and click the Agree button.打開。 DMG的文件,審查許可,並點擊同意按鈕。

  2. click to enlarge點擊放大

  3. Now drag the MAMP folder to your Applications .現在拖動mamp文件夾到您的申請 Ignore the MAMP PRO folder (unless you want to purchase MAMP Pro - it does include some忽視mamp親文件夾(除非您想要購買mamp親-它包括一些 extra features額外的功能 , but it’s not free). ,但它的不自由) 。

  4. click to enlarge點擊放大

  5. Give MAMP a minute to install.給予mamp一分鐘來安裝。
  6. Navigate to your Applications , select the MAMP folder, and double-click MAMP.app .瀏覽到您的應用程序 ,選擇mamp文件夾,雙擊mamp.app

  7. click to enlarge點擊放大

  8. The MAMP interface will launch, and Apache and MySQL will start.該mamp界面將推出,和Apache和MySQL將啟動。

  9. click to enlarge點擊放大

  10. Your browser will open and load the MAMP dashboard (http://localhost:8888/MAMP/?language=English).您的瀏覽器將打開並載入mamp儀表板( http://localhost:8888/mamp/?language=english ) 。 This page includes all of the info on the default settings for your MySQL server, and allows you to quickly access the included tools (phpinfo, phpMyAdmin and SQLiteManager)此網頁包含所有的信息,默認設置為你的MySQL服務器,並允許您快速訪問所包含的工具( phpinfo , phpmyadmin和sqlitemanager )

  11. click to enlarge點擊放大

  12. Select phpMyAdmin to configure your MySQL databases.選擇phpmyadmin配置你的MySQL數據庫。

  13. click to enlarge點擊放大

  14. Your web server “home” folder (document root) can be found in the htdocs sub-folder of MAMP.您的Web伺服器的“家”文件夾(文檔根目錄)可以發現,在htdocs子文件夾的mamp 。

  15. click to enlarge點擊放大

  16. Place your .html, .php etc files in htdocs, and they’ll be viewable at http://localhost:8888把您的。 html , 。的PHP等文件在htdocs ,他們將檢視在http://localhost:8888
  17. Return to the MAMP interface application, and click the Preferences… button.返回到mamp界面的應用,並點擊偏好…按鈕。 The first tab allows you to control how the servers are started/stopped, if the start page should load when MAMP is opened, and the location of that start page.第一個標籤可以讓您控制如何服務器是開始/停止,如果起始網頁負荷時,應mamp是開放,和位置開始的網頁。
  18. The Ports tab allows you to change the ports for Apache and MySQL. 端口選項卡可讓您變更港口的Apache和MySQL 。
  19. The PHP tab allows you to specify which version of PHP you’d like to use, if Zend Optimizer is enabled/disabled, and which cache to use. PHP的標籤,使您可以指定哪些版本的PHP您想要使用的,如果的Zend Optimizer是啟用/禁用,其中的緩存使用。
  20. Finally, the Apache tab allows you to change the default Document Root.最後, Apache的標籤可讓您更改默認的文檔根目錄。
[ digg ] [ del.icio.us ] [臉譜] [ Google ]在
Related Posts: 相關文章:
  • How to install WordPress in Windows Vista如何安裝的WordPress在Windows Vista
  • How to install and setup Jinzora (streaming media server) in OS X如何安裝和設置jinzora (流媒體服務器)在OS X中
  • 9 easy ways to secure your WordPress blog 9簡便的方法,以確保您的WordPress所博客
  • A simple explanation of RSS一個簡單的解釋的RSS
  • How to easily create great comics如何輕鬆地創建偉大的漫畫
  • { 1 trackback } 1跟踪

    How to install and setup Jinzora (streaming media server) in OS X - Simple Help如何安裝和設置jinzora (流媒體服務器)在OS X的-簡單的幫助
    08.11.08 at 3:34 am 08.11.08在上午03時34分

    { 1 comment… read it below or 1條評論…閱讀下面或 add one新增1 }

    1 1 dq9 dq9 08.09.08 at 9:08 pm 08.09.08在下午9點08分

    I used to use this to host my website, I used to pro version, but I could never figure out how to install an e-mail server using MAMP.我以前使用這個東道國我的網站,我用Pro版本,但我永遠無法弄清楚如何安裝一個電子郵件服務器使用mamp 。 Does any one know how to do this?是否有一個知道如何做呢?

    Leave a Comment留下意見

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些HTML標記和屬性:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em>的<i> <q cite=""> <strike>的<strong>