a2enmod missing?

Kernels & Hardware, configuring network, installing services

a2enmod missing?

Postby AR15USR » 2021-01-28 01:24

So seems like a2enmod is missing on my system for some reason. I cannot find it at all, when I try to use it I get "command not found". I've searched and searched for it and cannot find the bin anywhere.

I'm running Debian 10 and php7.3.19. Any ideas? Any way to re-install it?
Debian 10 64-bit 4.19.0-13
AR15USR
 
Posts: 10
Joined: 2020-05-07 02:02

Re: a2enmod missing?

Postby sunrat » 2021-01-28 03:51

“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3419
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: a2enmod missing?

Postby AR15USR » 2021-01-28 05:24

sunrat wrote:https://serverfault.com/questions/964601/a2enmod-not-working-on-debian-buster
viewtopic.php?f=16&t=142973

Thanks, tried all that and no luck. The bin is gone.
Debian 10 64-bit 4.19.0-13
AR15USR
 
Posts: 10
Joined: 2020-05-07 02:02

Re: a2enmod missing?

Postby reinob » 2021-01-28 07:05

AR15USR wrote:So seems like a2enmod is missing on my system for some reason. I cannot find it at all, when I try to use it I get "command not found". I've searched and searched for it and cannot find the bin anywhere.

I'm running Debian 10 and php7.3.19. Any ideas? Any way to re-install it?


a2enmod is part of apache2, not of php7, and is located at /usr/sbin/a2enmod.

/usr/sbin is normally not the user's path but only in root's path. You need root anyway to use it, so it's not clear what your problem may be.

(maybe.. just maybe.. you don't happen to be using "su" to get root, are you? -- if yes, then please do your homework before posting :)

or just learn that "su" is not the same as "su -" and that you should be using "su -" to get root with root's environment...

PS: I just saw that you had already been told about this (didn't check the link posted above by @sunrat. If indeed the program is not there, then you (or something fishy outside of debian) has deleted it. If you really know what you're doing and you have not messed up your system beyond recognition, you could try with "apt-get install --reinstall apache2" and hope for the best..
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: a2enmod missing?

Postby AR15USR » 2021-01-28 15:56

reinob wrote:
AR15USR wrote:So seems like a2enmod is missing on my system for some reason. I cannot find it at all, when I try to use it I get "command not found". I've searched and searched for it and cannot find the bin anywhere.

I'm running Debian 10 and php7.3.19. Any ideas? Any way to re-install it?


a2enmod is part of apache2, not of php7, and is located at /usr/sbin/a2enmod.

/usr/sbin is normally not the user's path but only in root's path. You need root anyway to use it, so it's not clear what your problem may be.

(maybe.. just maybe.. you don't happen to be using "su" to get root, are you? -- if yes, then please do your homework before posting :)

or just learn that "su" is not the same as "su -" and that you should be using "su -" to get root with root's environment...

PS: I just saw that you had already been told about this (didn't check the link posted above by @sunrat. If indeed the program is not there, then you (or something fishy outside of debian) has deleted it. If you really know what you're doing and you have not messed up your system beyond recognition, you could try with "apt-get install --reinstall apache2" and hope for the best..



Thanks, and I understand all that. I have searched every bin location I can find and there is no a2enmod/a2dismod. Thanks for the "apt-get install --reinstall apache2" suggestion, will try that next..
Debian 10 64-bit 4.19.0-13
AR15USR
 
Posts: 10
Joined: 2020-05-07 02:02


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable