启用 PHP Apache2 [英] Enable PHP Apache2
问题描述
我可以在 mods-available 目录中找到 php5 mod,但我不确定如何将它放入 mods-enabled 目录.
I can find the php5 mod in the mods-available directory, but I'm not sure how to get it into the mods-enabled directory.
另外,我只是想检查一下这是在我的设备上启用 php 的方式...我知道 PHP 已安装,但另一个开发人员已禁用它(并且无法联系)!
Also, I just wanted to check that this is the way to enable php on my device...I know that PHP is installed, but another dev has disabled it (and is uncontactable)!
推荐答案
您可以使用 a2enmod
或 a2dismod
按名称启用/禁用模块.
You can use a2enmod
or a2dismod
to enable/disable modules by name.
从终端运行:sudo a2enmod php5
以启用 PHP5(或某个其他模块),然后 sudo service apache2 reload
以重新加载 Apache2 配置.
From terminal, run: sudo a2enmod php5
to enable PHP5 (or some other module), then sudo service apache2 reload
to reload the Apache2 configuration.
这篇关于启用 PHP Apache2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!