凉水代码

Code Cold Water

导航

Linux 安装 php5.3

Posted on 2011-06-09 22:43  凉水代码  阅读(730)  评论(0编辑  收藏  举报
1 tar -zxf php-5.3.0.tar.gz
2
3  cd php5.3.0
4
5 ./configure --prefix=/program/php --with-apxs2=/program/httpd/bin/apxs
6
7 make && make install
8
9 cp php.ini-development /program/php/etc/php.ini

 修改apache配置

1 AddType application/x-httpd-php .php
2 AddType application/x-httpd-php3 .php3
3 AddType application/x-httpd-php4 .php4
4 AddType application/x-httpd-php-source .phps

 在Apache的 htdocs目录下面建一个test.php

<?php phpinfo(); ?>
重启一下apache ,访问页测试页面