php教程|php手册
Apache,directory,PHP,the,configure
php教程-php手册
Mac OS X installs
This section contains notes and hints specific to installing PHP on Mac OS X.
quartz源码下载,vscode 打开,grub没有ubuntu,cetos tomcat,litex_sqlite,如何使用国外dns服务器,远程付款插件,easyui前端框架技术,爬虫 房价,php解决跨域,【seo界】,个人网站支付宝充值,赛事分组抽签网页源码,防电影网模板,html页面音乐播放器代码,人事信息管理系统 asp,android程序自动更新lzw
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.
直播app平台源码,vscode动画插件,ubuntu移动操作系统,zuul tomcat,手机sqlite工具,天河独立高防服务器,手机端常用插件下载,vue前端框架优势,网络爬虫开发语言,php春节,seo优化方案报价,cms网站地图模板,网页上图片显示效果,设计作品模板,js点击切换页面内容,物流管理系统后台模板,vc补码程序lzw
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.
烧香网源码,vscode qt gui,ubuntu在哪下载应用软件,tomcat修改80,sqlite3 应用,违章查询插件,非响应式的前端框架,收费网络小说爬虫,php 连接查询,秦皇岛网站seo,地方性门户网站,手机网页视频提取插件,投票卡模板,进销存网站程序lzw
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