|
|
发表于 2005-9-14 15:13:43
|
显示全部楼层
软件版本:php-5.0.4
安装步骤:#tar zxvf php-5.0.4.tar.gz
#cd php-5.0.4
#./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-gd --with-lib-png --with-zlib --with-imap
#make
#make install
# cp php.ini-dist /usr/local/lib/php.ini
配置文件的修改:
vi /etc/httpd/conf/httpd.conf (在httpd.conf在文件头部添加以下内容)
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
正常显示中文的配置:
在apache中加入
AddDefaultCharset gd2312
重新启动apache
service httpd restart |
|