启用PHP Apache2 [英] Enable PHP Apache2

查看:107
本文介绍了启用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)!

推荐答案

您可以使用a2enmoda2dismod来按名称启用/禁用模块.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆