<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • 如何在 Mac OX X 下面安裝 php

    時間:2024-10-17 22:19:50 PHP 我要投稿
    • 相關推薦

    如何在 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】相關文章:

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

    PHP開發環境安裝的方法有哪些10-27

    關于php面試寶典及PHP面試技巧08-16

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

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

    PHP的壓縮函數06-21

    php高級教程01-23

    怎樣設置mac顯示器外接02-16

    如何學好PHP知識09-20

     PHP的基礎編程與應用10-16

    主站蜘蛛池模板: 国产精品成人观看视频网站| 欧美日韩精品一区二区视频| 精品欧美一区二区在线看片| 精品无码AV一区二区三区不卡| 国产精品一区二区av不卡| 国产精品视频永久免费播放| 欧美精品VIDEOSEX极品| 国产精品欧美日韩| 亚洲av午夜福利精品一区| 国产亚洲精品AA片在线观看不加载| 国产精品熟女一区二区| 亚洲精品第一国产综合精品99| 97精品伊人久久久大香线蕉 | 久久久亚洲精品蜜桃臀| 国产福利91精品一区二区| 无码人妻精品一区二区三区夜夜嗨| 久久精品成人一区二区三区| 色综合久久综精品| 99国产欧美精品久久久蜜芽| 亚洲精品无码乱码成人| 国产久爱免费精品视频| 亚洲精品综合一二三区在线| 国产成人亚洲精品| 久久久久国产精品熟女影院| 香蕉依依精品视频在线播放| 国产香蕉国产精品偷在线观看 | 久久久不卡国产精品一区二区| 91精品国产高清久久久久久国产嫩草 | 孩交VIDEOS精品乱子| 亚洲精品无码久久千人斩| 女人高潮内射99精品| 国产乱码精品一区二区三| 国产成人精品福利网站在线观看 | 精品久久久久久亚洲| 国产精品人成在线播放新网站| 午夜天堂精品久久久久| 亚洲综合国产精品第一页| 欧美日韩国产精品| 欧美亚洲日本久久精品| 午夜精品久久久久久久无码| 欧美精品成人3d在线|