Cannot enable mod_rewrite on centos7
I just fired up a CentOS7 Droplet. Then installed LAMP stack by following these instructions:
I see the “Testing 1,2,3…” page when I visit my server’s IP address, so I assume everything to be working fine. However, when I try to enable mod_rewrite, I see the following error:
[user@server conf]$ sudo a2enmod rewrite
[sudo] password for user:
sudo: a2enmod: command not found
What am I doing wrong? After much searching I found this Apache help document but it’s just way over the top for me to understand: http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
Any help offered would be greatly appreciated.