apache 验证 php 安装,PHP的安装以及验证Apache

Php安装

tar jxf php-5.3.8.tar.bz2

cd php-5.3.8

./configure --with-apxs2=/usr/local/apache2/bin/apxs--with-mysql

make

make install

编译php报错情况

php-5.3.8]# ./configure--with-apxs2=/usr/local/apache/bin/apxs --with-mysql

checking for specifiedlocation of the MySQL UNIX socket... no

configure: error: Cannotfind MySQL header files under yes.

Note that the MySQLclient library is not bundled anymore!

原因是没有找到mysql库的位置

现在把上述命令改成如下:

./configure--with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

如果编译成功的话应该显示如下结束信息:

Generatingfiles

updatingcache ./config.cache

creating./config.status

creatingphp5.spec

creatingmain/build-defs.h

creatingscripts/phpize

creatingscripts/man1/phpize.1

creatingscripts/php-config

creatingscripts/man1/php-config.1

creatingsapi/cli/php.1

creatingmain/php_config.h

creatingmain/internal_functions.c

creatingmain/internal_functions_cli.c

+--------------------------------------------------------------------+

|License:                                                          |

|This software is subject to the PHP License, available in this     |

|distribution in the file LICENSE.  Bycontinuing this installation |

|process, you are bound by the terms of this license agreement.     |

|If you do not agree with the terms of this license, you must abort |

|the installation process at this point.                            |

+--------------------------------------------------------------------+

Thankyou for using PHP.

截图如下:

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif

bfa4cb8d74a021cd87ac6c5be74688f0.gif0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值