启用PHP Apache2 [英] Enable PHP Apache2
问题描述
我可以在mods-available目录中找到php5 mod,但是我不确定如何将其放入启用了mods的目录中.
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屋!