Following the tutorial “How To Set Up Mod_Rewrite” indicates I should run the command “sudo a2enmod rewrite”, but I mark: sudo: a2enmod: command not found
anyone know how to fix it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Using .htaccess files and setting AllowOverride All is not recommended. It’s better to put the rewrite commands in your Directory section in httpd.conf. To enable the rewrite engine in this context, you need to set “RewriteEngine On” and “Options FollowSymLinks” must be enabled. (From: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule) <br> <br>This is what did it for me
I am totally new at this and I am trying to fix it based on the fact that wordpress is telling me page not found errors (saw on a forum that my mod_rewrite must be off) So I started following this directions: https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite but it gave me this message
3 packages can be updated. 3 updates are security updates.
Last login: Sun Apr 12 20:49:18 2015 from host-68-169-131-190.cmgolt1.epbfi.com ####################################################################
#################################################################### root@KCSC:~# sudo a2enmod rewrite sudo: a2enmod: command not found root@KCSC:~# sudo a2enmod rewrite sudo: a2enmod: command not found root@KCSC:~#
Dunno what to do now.
Hi there, it seems no way to enable it on CentOS, see this for more information:http://serverfault.com/questions/558600/centos-bash-a2enmod-command-not-found
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.