首页 > 解决方案 > 在 linux vps 中使用 cpanel 在 apache 服务器中找不到 a2enmod 命令

问题描述

在转到 /etc/httpd/conf/httpd.conf 之后,甚至在更改之后

Allow override none -> Allow override All , and then restarting the server using 

service httpd restart

然后我输入命令

 a2enmod proxy

然后我得到一个错误:

bash- a2enmod command not found. . 

你能帮我么?当我使用 web-sockets 时,我在开发人员工具控制台中遇到错误,因此我需要启用 web-sockets 代理。

标签: apachecpanelvps

解决方案


我有同样的问题,这个答案解决了我的问题:

Apache2 命令(例如 a2enmod 和 a2ensite)无法正常工作,其显示命令在 Ubuntu 中找不到

尝试:

sudo apt-get update
sudo apt-get install apache2 libapache2-mod-wsgi

然后,

sudo a2enmod wsgi

然后,您可能还想尝试sudo a2enmod,而不仅仅是a2enmod


推荐阅读