亚洲一级电影在线观看,九九精品无码专区免费,亚洲AV无码资源在线观看 ,欧美国产高清

如何在 Mac OX X 下面安裝 php

時(shí)間:2024-10-17 22:19:50 PHP 我要投稿
  • 相關(guān)推薦

如何在 Mac OX X 下面安裝 php

  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

【如何在 Mac OX X 下面安裝 php】相關(guān)文章:

如何在cmd下面寫php代碼01-22

PHP開發(fā)環(huán)境安裝的方法有哪些10-27

關(guān)于php面試寶典及PHP面試技巧08-16

mac給文件夾加密的方法08-18

Mac電腦硬盤格式的查看方式08-14

PHP的壓縮函數(shù)06-21

php高級(jí)教程01-23

怎樣設(shè)置mac顯示器外接02-16

如何學(xué)好PHP知識(shí)09-20

 PHP的基礎(chǔ)編程與應(yīng)用10-16

主站蜘蛛池模板: 国产成人亚洲综合网色欲网| 老司机精品无码免费视频| 精品无码一区二区三区爱欲小说| 兴业县| 国产激情з∠视频一区二区| 亚洲色欲色欲77777小说| 久久人体视频| 亚洲欧美一区二区三区日产| 亚洲二三区| 天天摸天天做天天爽2019| 免费无码又爽又刺激高潮的视频免费 | 国产极品美女到高潮| 成人国产欧美大片一区| 久久精品国产精品亚洲红杏 | 亚洲日本中文字幕乱码在线电影| 麻豆精品久久久久久久99蜜桃| 国产午夜鲁丝无码拍拍| 看黄a大片日本真人视频直播| 亚洲欧美日本中文字不卡| 国产偷抇久久精品a片蜜臀av| 四虎国产精品永久地址49 | 亚洲欧美一区二区三区麻豆| 日本无码人妻精品一区二区蜜桃| 精品国产一区二区三区国产区| 亚洲国产精品一区二区久久hs| 人妻熟女av一区二区三区| 国产精品无码久久久免费| 国产成人在线综合| 欧美亚洲自偷自拍 在线| 久视频免费精品6| 久久久久欧美精品| 国产毛片精品av一区二区 | 一边摸一边做爽的视频17国产| 国产精品国三级国产av| 免费看无码自慰一区二区| 免费国产黄网站在线观看| 亚洲欧美在线综合一区二区三区| 四虎国产精品永久地址49| 国产真人做爰免费视频| 免费无码又爽又刺激高潮视频| 人人妻人人澡人人爽超污|