Fedora Core 4下的PHP环境编译安装。

    技术2022-05-11  70

    原创:Fedora Core 4下的PHP环境编译安装。 /* Redsos 2005-12-28 */ 先到 httpd.apache.org , www.php.net 下载相关软件 编译安装有三步: 1. configure 2. Make 3. Make install   一. Apache2的编译安装 1.  tar 解压后进入 apache2 的目录,执行  ./configure / --prefix=/usr/local/apache2 / --enable-module=most / --enable-shared=max / --enable-so / --enable-shared=ssl   2.    make   3.   make install   4.   完成安装,输入 http://127.0.0.1 测试一下   二.PHP5 + SOAP 的编译安装 1.解压后进入 PHP 的目录,执行 ./configure / --enable-versioning / --prefix=/usr/local/php5 / --with-apxs2=/usr/local/apache2/bin/apxs / --with-config-file-path=/usr/local/lib / --with-libxml / --with-libxml-dir=/usr/lib / --with-curl / --with-curl-dir=/usr/lib / --with-gd / --with-gd-dir=/usr/lib/ / --with-jpeg / --with-jpeg-dir=/usr/include/ / --with-png / --with-png-dir=/usr/include/libpng / --with-ttf / --enable-gd-native-ttf / --enable-mbstring / --enable-track-vars / --enable-soap / --enable-module=so / --enable-sockets / --enable-exif / --enable-ftp / --enable-calendar / --enable-libgcc / --with-gettext --with-imap / --with-ldap / --with-ldap-sasl / --with-mbstring / --with-mhash / --with-mysql / --with-mysql-dir=/usr/lib/mysql / --with-mysqli / --enable-sqlite-utf8 / --with-iconv / --with-xsl / --with-xsl-dir=/usr/lib / --with-pear / --with-zlib / --with-zlib-dir=/usr/lib / --with-freetype / --with-freetype-dir=/usr/include/freetype1 / --with-xpm-dir=/usr/include/X11/ / --with-kerberos / 2.   make   3.   make install   4.   Apache2的WEB根目录下新建 info.php 内容如下:   phpinfo();   5.   测试 http://127.0.0.1/info.php   完成环境安装。 注:上面的一些扩展路径请按自身条件和需求设定。缺少什么就用 apt-cache search 找,然后再用 apt-get install 来装上它  

    最新回复(0)