安装好php和apache后不能执行php文件
- zjbking
- 帖子: 52
- 注册时间: 2007-03-08 17:07
- adqin
- 帖子: 1417
- 注册时间: 2007-01-24 22:07
- 来自: http://adqin.cn
- 联系:
-
- 帖子: 227
- 注册时间: 2006-09-23 6:27
- 来自: 火星
- 联系:
- zjbking
- 帖子: 52
- 注册时间: 2007-03-08 17:07
- karron
- 帖子: 6226
- 注册时间: 2005-06-11 14:03
- 来自: 不明真相的群众
- 联系:
- zjbking
- 帖子: 52
- 注册时间: 2007-03-08 17:07
- karron
- 帖子: 6226
- 注册时间: 2005-06-11 14:03
- 来自: 不明真相的群众
- 联系:
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
就ok了, LAMP环境就建立好了.
就ok了, LAMP环境就建立好了.
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
- woodlinux
- 帖子: 158
- 注册时间: 2006-07-15 7:29
- 来自: 宁波北仑
- 联系:
- china_baby
- 帖子: 71
- 注册时间: 2007-06-20 13:17
- 来自: 上海
- 走刀口→超
- 帖子: 192
- 注册时间: 2007-07-10 15:25
- 来自: jssz
很想用这个阿!
可是:
这是什么情况,看来这次非重装了!呼。。。
可是:
代码: 全选
Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: Permission denied in /opt/lampp/htdocs/xampp/index.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/xampp/index.php:2) in /opt/lampp/htdocs/xampp/index.php on line 4
人在江湖走,怎能不挨刀;为了能活口,唯有把己超!fighting...
HP V3706
T5450 2G GF8400GS 128M
u8.04+VBOX(xp)
HP V3706
T5450 2G GF8400GS 128M
u8.04+VBOX(xp)
-
- 帖子: 27
- 注册时间: 2007-01-22 21:20
-
- 帖子: 84
- 注册时间: 2006-11-09 7:53
- 联系:
To only install PHP5. use any method to install
php5
If PHP4 is present on your system, also install
libapache2-mod-php5
Troubleshooting
Does your browser ask if you want to download the php file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install libapache2-mod-php5. It is installed when you install the php5 package, but may have been removed inadvertently by packages which need to run a different version of php. You may also need to actually enable it, by doing sudo a2enmod php5 followed by sudo /etc/init.d/apache2 restart. Be sure to clear your browser's cache before testing your site again.
按照上面的方法都试过了,可还是不行,设置什么文件权限?我设成777了都。。。试着全部删除又重装乐意下,可还是不行,麻烦那个大侠指导一下吧。谢谢
php5
If PHP4 is present on your system, also install
libapache2-mod-php5
Troubleshooting
Does your browser ask if you want to download the php file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install libapache2-mod-php5. It is installed when you install the php5 package, but may have been removed inadvertently by packages which need to run a different version of php. You may also need to actually enable it, by doing sudo a2enmod php5 followed by sudo /etc/init.d/apache2 restart. Be sure to clear your browser's cache before testing your site again.
按照上面的方法都试过了,可还是不行,设置什么文件权限?我设成777了都。。。试着全部删除又重装乐意下,可还是不行,麻烦那个大侠指导一下吧。谢谢