A2emod rewrite

Hi everyone. I’m trying to migrate a WordPress project I have on one computer to my NUC running HAOS. I’m running into a problem: Apache is missing a module I need: the rewrite mod. To add it, you have to install it with sudo a2enmod rewrite, but I can’t do it from the terminal. Do you know how I can add this module? Thank you very much.

Hello Pablo Gustavo Fiscella,

If it’s HAOS, and you are sucessful installing it, you will likely have to install it at every major version change as well.
You can try the Advanced SSH & Web Terminal though, you may be able to do it with that.

The right way is to build an add-on and run it in there.

The Apache add-on doesn’t have this module. But I don’t know how to add that module to Apache from the terminal, since what I saw was using sudo, and it doesn’t allow it. I don’t know how to do that.

I don’t either, but I know it can be done.
Hit-up the add-on author, that would be your best bet to get it available. They are not going to add it to core.

I’m going to do that. Thanks.

1 Like