[问题]提示是否下载PHP文件

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
thebad
帖子: 13
注册时间: 2007-07-04 17:19

[问题]提示是否下载PHP文件

#1

帖子 thebad » 2007-08-28 14:51

通过
sudo aptget install apache2
sudo aptget install php5
sudo aptget install libapache2-mod-php5
sudo aptget install mysql
这些都安装好了
sudo a2enmod php5
也提示我:
This module is already enabled!
现在问题依旧:
浏览PHP网页的时候,浏览器提示是否下载PHP文件而不是去显示它
头像
Peace
帖子: 498
注册时间: 2006-02-01 14:37
来自: 火星

#2

帖子 Peace » 2007-08-29 9:11

你该不会是打开FF,然后在打开文件吧?

放在var/www/里面 用http://127.0.0.1 访问
gin1 na4 bua3 de4 , ma1 ma1 fu1 fu1.
thebad
帖子: 13
注册时间: 2007-07-04 17:19

#3

帖子 thebad » 2007-09-04 21:09

我用 http://localhost 访问的,可以访问, 到下一级的php文件就让下载, 怪异呀
bigeyex
帖子: 9
注册时间: 2007-06-27 19:40
来自: 沈阳

#4

帖子 bigeyex » 2008-03-08 18:24

我也遇到了这种问题阿
yueyang
帖子: 34
注册时间: 2008-03-08 14:11

#5

帖子 yueyang » 2008-03-09 13:17

apache的配置文件里面在.html 后面加上.php
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

Re:

#6

帖子 relaxssl » 2009-01-02 4:58

yueyang 写了:apache的配置文件里面在.html 后面加上.php
我也遇到了这个问题,请问配置文件是哪个?
头像
xiehuoli
帖子: 5941
注册时间: 2006-06-10 8:43
来自: 中国 CS

Re: [问题]提示是否下载PHP文件

#7

帖子 xiehuoli » 2009-01-02 8:56

/etc/apache2/apache.conf
年轻没有失败! ! ! ! ! !
噢!有怪兽,有怪兽!
bugle
帖子: 94
注册时间: 2009-09-22 21:26

Re: [问题]提示是否下载PHP文件

#8

帖子 bugle » 2009-09-30 20:16

我也是这样,我是用localhost访问的,但换成127.0.0.1就可以了
回复