国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > PHP > 正文

在 Mac OX X 下面安裝 php

2024-05-04 23:02:36
字體:
來源:轉載
供稿:網(wǎng)友

 

 

mac os x installs
this section contains notes and hints specific to installing php on mac os x.

using packages
there are a few pre-packaged and pre-compiled versions of php for mac os x. this can greatly assist in setting up a standard configuration, but if you need to have a different set of features (such as a secure server, or a different database driver), you may need to build php and/or your web server yourself. if you are unfamiliar with building and compiling your own software, it's worth investigating whether or not somebody has already built a packaged version of php with the features you need. lightyear design offers a pre-built version of php for os x, as does tenon intersystems.

compiling for os x server
there are two slightly different versions of mac os x, client and server. the following is for os x server.

example 2-3. mac os x server install

1. get the latest distributions of apache and php
2. untar them, and run the configure program on apache like so.
./configure --exec-prefix=/usr
--localstatedir=/var
--mandir=/usr/share/man
--libexecdir=/system/library/apache/modules
--iconsdir=/system/library/apache/icons
--includedir=/system/library/frameworks/apache.framework/versions/1.3/headers
--enable-shared=max
--enable-module=most
--target=apache

4. you may also want to add this line:
setenv optim=-o2
if you want the compiler to do some optimization.

5. next, go to the php4 source directory and configure it.
./configure --prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--mandir=/usr/share/man
--with-xml
--with-apache=/src/apache_1.3.12

if you have any other addiitons (mysql, gd, etc.), be sure to add
them here. for the --with-apache string, put in the path to your
apache source directory, for example "/src/apache_1.3.12".
6. make
7. make install
this will add a directory to your apache source directory under
src/modules/php4.

8. now, reconfigure apache to build in php4.
./configure --exec-prefix=/usr
--localstatedir=/var
--mandir=/usr/share/man
--libexecdir=/system/library/apache/modules
--iconsdir=/system/library/apache/icons
--includedir=/system/library/frameworks/apache.framework/versions/1.3/headers
--enable-shared=max
--enable-module=most
--target=apache
--activate-module=src/modules/php4/libphp4.a

you may get a message telling you that libmodphp4.a is out of date.
if so, go to the src/modules/php4 directory inside your apache
source directory and run this command:

ranlib libmodphp4.a

then go back to the root of the apache source directory and run the
above configure command again. that'll bring the link table up to
date.

9. make
10. make install

11. copy and rename the php.ini-dist file to your "bin" directory from your
php4 source directory:
cp php.ini-dist /usr/local/bin/php.ini

or (if your don't have a local directory)

cp php.ini-dist /usr/bin/php.ini

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 静安区| 静宁县| 达日县| 英山县| 商丘市| 岗巴县| 东平县| 旬阳县| 策勒县| 无棣县| 和龙市| 华宁县| 巴林左旗| 孝昌县| 刚察县| 蒙阴县| 会宁县| 南木林县| 宿迁市| 沙洋县| 光山县| 中阳县| 龙泉市| 平武县| 沙坪坝区| 阳曲县| 阳春市| 渭南市| 甘谷县| 海南省| 武威市| 吉隆县| 龙南县| 芦溪县| 辽阳县| 张家口市| 辰溪县| 汨罗市| 寿宁县| 黄梅县| 瑞昌市|