当前位置:首页文章首页 IT学院 IT技术

详解Linux下的postfix安装

作者:  来源:  发布时间:2012-2-16 17:16:05  点击:
  ln: 正在创建指向“/usr/local/sasl2/lib/libsasl2.so”的符号链接“/usr/lib/libsasl2.so”: 文件已存在

  创建指向“/usr/local/sasl2/lib/libsasl2.so.2”的符号链接“/usr/lib/libsasl2.so.2”

  ln: 正在创建指向“/usr/local/sasl2/lib/libsasl2.so.2”的符号链接“/usr/lib/libsasl2.so.2”: 文件已存在

  创建指向“/usr/local/sasl2/lib/libsasl2.so.2.0.22”的符号链接“/usr/lib/libsasl2.so.2.0.22”

  创建指向“/usr/local/sasl2/lib/sasl2”的符号链接“/usr/lib/sasl2”

  [root@server250 ~]# ln -sv /usr/local/sasl2/lib/* /usr/local/lib

  创建指向“/usr/local/sasl2/lib/libsasl2.la”的符号链接“/usr/local/lib/libsasl2.la”

  创建指向“/usr/local/sasl2/lib/libsasl2.so”的符号链接“/usr/local/lib/libsasl2.so”

  创建指向“/usr/local/sasl2/lib/libsasl2.so.2”的符号链接“/usr/local/lib/libsasl2.so.2”

  创建指向“/usr/local/sasl2/lib/libsasl2.so.2.0.22”的符号链接“/usr/local/lib/libsasl2.so.2.0.22”

  创建指向“/usr/local/sasl2/lib/sasl2”的符号链接“/usr/local/lib/sasl2”

  [root@server250 ~]# ln -sv /usr/local/sasl2/include/sasl/* /usr/local/include/

  创建指向“/usr/local/sasl2/include/sasl/hmac-md5.h”的符号链接“/usr/local/include/hmac-md5.h”

  创建指向“/usr/local/sasl2/include/sasl/md5global.h”的符号链接“/usr/local/include/md5global.h”

  创建指向“/usr/local/sasl2/include/sasl/md5.h”的符号链接“/usr/local/include/md5.h”

  创建指向“/usr/local/sasl2/include/sasl/prop.h”的符号链接“/usr/local/include/prop.h”

  创建指向“/usr/local/sasl2/include/sasl/sasl.h”的符号链接“/usr/local/include/sasl.h”

  创建指向“/usr/local/sasl2/include/sasl/saslplug.h”的符号链接“/usr/local/include/saslplug.h”

  创建指向“/usr/local/sasl2/include/sasl/saslutil.h”的符号链接“/usr/local/include/saslutil.h”

  启动

  /usr/local/sasl2/sbin/saslauthd -a shadow pam

  添加到库文件

  [root@server250 local]# echo "/usr/local/sasl2/lib" >>/etc/ld.so.conf

  [root@server250 local]# echo "/usr/local/sasl2/lib/sasl2/" >> /etc/ld.so.conf

  [root@server250 local]#

  [root@server250 local]#

  [root@server250 local]#

  [root@server250 local]# ldconfig -v

  Ok

  第四编译安装apache

  完成以上后,开始安装apache

  [root@server250 postfix]# tar jxvf httpd-2.2.21.tar.bz2

  [root@server250 postfix]# ./configure --prefix=/usr/local/apache --enable-so --enable-track-vars --enable-rewrite --with-zlib --enable-mods-shared=most --enable-suexec --with-suexec-caller=daemon

  Make makeinstall

  第五编译安装php

  [root@server250 postfix]# tar zxvf php-5.3.6.tar.gz

  [root@server250 php-5.3.6]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql -with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-png-dir --with-jpeg-dir --with-zlib --with-freetype-dir --with-gd-dir --enable-mbstring=all

  [root@server250 ~]# ln -sv /usr/local/mysql/include/* /usr/local/mysql/include/mysql

  /usr/local/src/php-5.3.5/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':

  2/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: 'MYSQL_RPL_MASTER' undeclared (first use in this function)

  3/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: (Each undeclared identifier is reported only once

  4/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: for each function it appears in.)

  5/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:645: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)

  6/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:646: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)

  7make: *** [ext/mysqli/mysqli.lo] Error 1

  [root@server250 ~]# ln -sv /usr/local/mysql/include/* /usr/local/mysql/include/mysql

  [root@server250 php-5.3.6]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql -with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-png-dir --with-jpeg-dir --with-zlib --with-freetype-dir --with-gd-dir --enable-mbstring=all

  Make && make install

  第六,php+apache+mysql的整合

  Ok,安装php之后,则是可以进行修改http的文件,即是php+apache的整合

   AddType application/x-httpd-php .php

  AddType application/x-httpd-php-source .phps

  [root@localhost htdocs]# vi test.php

  

  phpinfo();

  ?>

  在directory 目录处添加index。Php和index.html在一起

  之后测试

  http://ip/test.php

  如下所示是正确的

  

首页 上一页 [1] [2] [3] [4] [5]  下一页 尾页
上一篇:tar包的应用 下一篇:

相关软件

相关文章

文章评论

软件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z