- 主题:重装后Web更乱了,打开的文件都自动下载
3.2 web 方式
apache 的配置文件为 $(WWWHOME)/conf/httpd.conf,编辑该文件,加入
AddType application/x-httpd-php .php
这个?
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
:
http://192.84.84.114: 只要打开PHP就自动下载代码
:
http://192.84.84.114/info.php: 也是这样
: 各位前辈帮忙看一下吧
--
FROM 59.66.175.149
php的configure怎么写的?
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 这条我检查过了,100%加上去了
: 而且连.php前的空格都检查了
--
FROM 59.66.175.149
这句呢?
LoadModule php4_module modules/libphp4.so
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 按照文档写的
: ./configure --prefix=$(PHPHOME) \
: --with-apxs=/home/www/bin/apxs --disable-debug
: --enable-pic --disable-rpath --enable-inline-optimization
: --with-dom --with-gd --with-freetype-dir=/usr/lib
: --with-png-dir --with-iconv --with-jpeg-dir --with-zlib
: --enable-track-vars
: make
: make install
--
FROM 59.66.175.149
加到http.conf里面,然后重启apache
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 这句我没遇到
: 手册里面似乎没写
: 就没做
: 应该怎么做呢?
--
FROM 59.66.175.149
re~阿七ymsw~
【 在 cnbird@newsmth.net-SPAM.no (阿七) 的大作中提到: 】
: 看来你 php安装那里就有问题
: 按道理在 安装 php那里是自动把 libphp4.so送到 apache安装目录下的 modules
: 然后自己给 httpd.conf加入那一句
: 你再做一遍 php的安装好么
--
FROM 59.66.175.149
我想问个问题,php那样安装的时候会自动在http.conf里面加上那句话么?
【 在 cnbird@newsmth.net-SPAM.no (阿七) 的大作中提到: 】
: 看来你 php安装那里就有问题
: 按道理在 安装 php那里是自动把 libphp4.so送到 apache安装目录下的 modules
: 然后自己给 httpd.conf加入那一句
: 你再做一遍 php的安装好么
--
FROM 59.66.175.149
那就重新装一次apache..
btw你的apache是什么版本的?
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 已经又装了一遍
: 还是老样子
: 能不能告诉我我的./configure有没有错?
: ./configure --prefix=/home/www/php
: --with-apxs=/home/www/bin/apxs --disable-debug
: --enable-pic --disable-rpath --enable-inline-optimization
: --with-dom --with-gd --with-freetype-dir=/usr/lib
: --with-png-dir --with-iconv --with-jpeg-dir --with-zlib
: --enable-track-vars
: 的确在apache下面没有modules这个文件夹
: ...................
--
FROM 59.66.175.149
重装apache和php
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: apache 1.3.34
--
FROM 59.66.175.149
你的apache肯定没装好..不然怎么会没有module目录...
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 我已经重装过了,结果更加糟糕了
--
FROM 59.66.175.149
那你就把这个放到module/下面..
或者在http.conf里面写
LoadModule php4_module libphp4.so
【 在 ukbee@newsmth.net-SPAM.no (小蜜蜂) 的大作中提到: 】
: 如果DEBIAN默认安装
: libphp4.so是自动放到usr/lib/apache/1.3/libphp4.so
: 但是一旦--prefix就没了
: 把整个硬盘都找遍了也找不到
--
FROM 59.66.175.149