There are currently 2 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1081 1
【Linux】lamp不解析php的解决方法
产品的注销
初入江湖 七级
Reply
Floor 1 Posted at: 1/2/11 22:52
首先进入终端,执行:
sudo chmod -R 777 /etc/php5/apache2
sudo chmod -R 777 /etc/apache2

然后在/etc/apache2/apache2.conf中的
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
下面添加:
# 解析php
Include /etc/apache2/mods-available/php5.load
Include /etc/apache2/mods-available/php5.conf


即可。

产品的注销
初入江湖 七级
Reply
Floor 2 Posted at: 1/2/11 22:52
别忘了重启Apache哦
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1081 Replies: 1
Author: 产品的注销
Last reply: 产品的注销
Last reply time: 1/2/11 22:52
Bar Good Posts
Announcements