Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu

旧街凉风 提交于 2020-01-02 05:07:29

问题


I am deploying Flask application in Apache2 server during this i need to run a command for enabling mod_wsgi by using:

sudo a2enmod wsgi

but its showing:

sudo: a2enmod: command not found

please help thanks


回答1:


I had the same problem with using Ubuntu 16.04 in AWS. However, installing apache2 along with libapache2-mod-wsgi and python-dev solved the issue.

Try:

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

Then,

sudo a2enmod wsgi


来源:https://stackoverflow.com/questions/49138215/apache2-command-such-as-a2enmod-and-a2ensite-no-working-its-showing-command-not

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!