在Linux vps中使用cpanel在apache服务器中找不到a2enmod命令 [英] a2enmod command not found in apache server using cpanel in linux vps

查看:119
本文介绍了在Linux vps中使用cpanel在apache服务器中找不到a2enmod命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

after going to /etc/httpd/conf/httpd.conf and even after changing

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

service httpd restart

然后输入命令

 a2enmod proxy

然后我得到一个错误:

bash- a2enmod command not found. . 

你能帮我吗?使用网络套接字时,在开发人员工具控制台中出现错误,因此我需要启用网络套接字代理.

Can you please help me? i am getting an error in the developer tools console when i am using web-sockets and so for that i need to enable web-sockets proxy.

推荐答案

我遇到了同样的问题,而这个答案解决了我的问题:

I had the same problem, and this answer solved my issue:

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

尝试:

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

然后

sudo a2enmod wsgi

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

Then, you might also want to try sudo a2enmod instead of just a2enmod

这篇关于在Linux vps中使用cpanel在apache服务器中找不到a2enmod命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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