There are Portfiles in the Darwinports that will let you build PHP and PHP5 and conduct the installation for you. These are located at:
http://php.darwinports.com and http://php5.darwinports.com
![]() | 章 5. Mac OS X 系统下的安装本章包括在 Mac OS X 平台下安装 PHP 的说明和提示。Mac OS X 有两个不同的版本,客户版和服务器版,本手册两者均会介绍。请注意 PHP 不能在 Mac OS 9 和更早版本下运行。 使用软件包Mac OS X 下有几个预编译和打包的 PHP 版本。可以通过它使用标准的配置的 PHP,但是若需要不同的功能集(比如一个安全服务器,或者一个不同的数据库驱动程序),可能需要自己编译 PHP 和/或 web 服务器。如果不熟悉如何自己编译软件,可以试着找一下包含自己所需功能的 PHP 预编译版本。 ![]()
mat at phpconsulting dot com
18-Jun-2005 01:50
There are Portfiles in the Darwinports that will let you build PHP and PHP5 and conduct the installation for you. These are located at:
andreas at fink dot org
18-Aug-2004 03:01
To build on MacOS X 10.3.5 set the environment variable CFLAGS in the following way (depending on your shell)
Rick
29-Oct-2003 10:12
under MacOS 10.3 if your compile fails
jack dash pinette at uiowa dot edu
25-Jan-2003 05:56
PHP 4.3.0 can easily be build on Mac OS X client; you don't need to download a binary. The process is quite fast and painless.
php at radicalcomputingconcepts dot com
16-May-2002 07:35
10.1 with fink installed into /sw ,mysql installed from fink.
alex at ax-im dot com
31-Mar-2002 04:40
To get Pear to work in OSX 10.1, here's an alternative to adding the ini_set statement mentioned above to every script. The default include path would appear to be .:/usr/local/lib/php, so just add a link...
info at ericbontenbal dot nl
19-Feb-2002 01:43
for using PHP on MacOSX, see article #106485 of the Apple knowledge base
lanhel at mac dot com
08-Nov-2001 10:14
Getting PHP running on 10.1 is simple.
larry(at)shafferinteractive.com
24-Sep-2001 08:40
For the latest on Mac OS X PHP installs (as of 10.0.4 on 9.24.01) check out http://developer.apple.com/internet/macosx/php.html
oster at ieee dot org
31-Jul-2001 03:17
If you've got Mac OS X pre-installed on your Mac, you've also got php4 pre-installed. You don't need to download or compile anything. You just need to edit the /etc/httpd/httpd.conf file. Use the "sudo open -a TextEdit..." command line, above. Search for "php", and make sure you've un-commented _all_ the relevant lines: the two AddType lines above, and also the AddModule and LoadModule lines. (but not the AddType lines for php3, since you'll be using php4.) Save and restart Apache with "sudo apachectl graceful", and you are done.
| ![]() |