|
安装php
首先配置apache路径
#cd /home/soft
#tar -xvzf apache-2.0.40.tar.gz
#cd apache-2.0.40
#./configure --prefix=/usr/local/apache
安装php
#cd /home/soft
#tar -xvzf php-4.3.1.tar.gz
#cd php-4.3.1
#./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars
#make
#make install
安装apache
#cd apache-2.0.40
#./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-modules=/usr/src/php-4.3.1/libs/libphp4.la
#make
#make install
修改httpd.conf
加入
LoadModule php4_module /usr/local/apache/modules/libphp4.so
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.php3
index.html index.htm index.shtml
问题在这
完成后,在apache/htdocs下建info.php
用http://localhost/info.php打开 ... 下载怎么回事
是少设置什么了吗 |
|