📄 install.macosx.client.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Installing for Apache on MacOS X Client</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.macosx.html">Installation on Mac OS X</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="up"><a href="install.macosx.html">Installation on Mac OS X</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="install.macosx.client" class="sect1"> <h2 class="title">Installing for Apache on MacOS X Client</h2> <p class="simpara"> The following instructions will help you install a PHP module for the Apache web server included in MacOS X using the MacOS GUI. This version includes MySQL, PostgreSQL, and iODBC database support, cURL, GD, PDFLib, LDAP, and more. These instructions are graciously provided by <a href="http://www.entropy.ch/software/macosx/" class="link external">» Marc Liyanage</a>. </p> <div class="warning"><b class="warning">Warning</b> <p class="para"> Be sure you know what you're doing before advancing beyond this point! You can cause irreparable harm to your Apache installation otherwise. </p> </div> <blockquote><p><b class="note">Note</b>: These instructions will only work with the original Apache web server as shipped by Apple. If you re-built or upgraded your Apache, you will have to build your own PHP module. <br /> </p></blockquote> <p class="para"> To install: <ol class="orderedlist"> <li class="listitem"> <span class="simpara"> For Apache 1.3, download: <strong class="userinput"><code>http://www2.entropy.ch/download/entropy-php-5.2.4-1.tar.gz</code></strong> </span> </li> <li class="listitem"> <span class="simpara"> For Apache 2, download: <strong class="userinput"><code>wget http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz</code></strong> </span> </li> <li class="listitem"> <span class="simpara"> Unpack the compressed .tar.gz file, but DO NOT USE StuffIt Expander. Instead, use Apple's BOMArchiveHelper or the command line. </span> </li> <li class="listitem"> <span class="simpara"> Double-click the installer package and follow the directions of the installer application. </span> </li> </ol> </p> <p class="para"> That's all! PHP should now be up and running. You can test it by dropping a file named <var class="filename">test.php</var> into your <var class="filename">Sites</var> folder in your home directory. Into that file, write this line: <i><?php phpinfo() ?></i>. </p> <p class="para"> Now open up <i>127.0.0.1/~your_username/test.php</i> in your web browser. You should see a status table with information about the PHP module. </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.macosx.html">Installation on Mac OS X</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.windows.html">Installation on Windows systems</a></div> <div class="up"><a href="install.macosx.html">Installation on Mac OS X</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -