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的标签可让您更改默认的文档根目录。
Related Posts: 相关文章:
  • How to install and setup Jinzora (streaming media server) in OS X如何安装和设置jinzora (流媒体服务器)在OS X中
  • How to install WordPress in Windows Vista如何安装的WordPress在Windows Vista
  • How to install WordPress on your Windows PC如何安装的WordPress对您的Windows PC
  • How to install and setup Apache, MySQL and PHP in Windows如何安装和安装的Apache , MySQL和PHP在Windows
  • 9 easy ways to secure your WordPress blog 9简便的方法,以确保您的WordPress所博客
  • { 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>