在Apache上激活PHP

时间:2013-11-15 23:28:17

标签: php apache configuration debian

我刚买了一台虚拟服务器,想安装自己的云。我导航到index.php,我可以下载PHP文件。该网站不像普通的PHP网站那样显示。

我尝试了很多方法,但每次都失败了。 我已添加以下内容:

Include sites-enabled/
GracefulShutDownTimeout 3
AddOutputFilter INCLUDES .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

1 个答案:

答案 0 :(得分:2)

在shell中,使用a2enmod命令:

a2enmod php5