Apache Command Line Not Functioning

Jufer picture Jufer · Sep 23, 2011 · Viewed 26.9k times · Source

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.

Answer

fbahr picture fbahr · Sep 23, 2011

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/