Apache Command Line Not Functioning

↘锁芯ラ 提交于 2019-12-10 19:56:09

问题


Installed Apache Ver 2.2.3 on my vps with Centos 5.6 but when I try the a2dismod and a2enmod got Command not found error.

What can I do to fix it?

Thank you

  • This is my first vps and this is also my first experience with linux and centos.
  • The server is running fine just need to disable few modules.

回答1:


On CentOS there are no a2enmod and a2dismod commands. To disable unneeded modules in Apache, you need to carry out steps as described at the lower end of – for instance – this post: http://www.cyberciti.biz/faq/howto-disable-apache-modules-under-linux-unix/




回答2:


Perhaps those commands were not in your path? If the programs are in your current working directory, try ./a2dismod.

To see what path our shell is searching, try echo $PATH.



来源:https://stackoverflow.com/questions/7527652/apache-command-line-not-functioning

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