So I was fiddling around on my server the other day and deleted mod_rewrite from the mods-available folder instead of the mods-enabled folder.

Is there a place I can download the missing files in order to reinstall? I've tried google but all results are just for enabling mod_rewrite and writing rewrite rules.

Maybe I should try something like: sudo apt-install apache --reinstall??

Thanks. :)

link|improve this question
1  
that's why you should use a2enmod/a2dismod a2ensite/a2dissite in the future and always backup your /etc dir at least :) – shakalandy Apr 11 '11 at 14:46
feedback

2 Answers

up vote 0 down vote accepted

aptitude reinstall apache2-mod_rewrite (or something like that, do apt-get search rewrite)

link|improve this answer
1  
I don't believe mod_rewrite is a separate package, it should be a part of the core apache install package. – rfelsburg Apr 11 '11 at 14:39
You are right, my mistake. It's part of apache2 – Jure1873 Apr 11 '11 at 14:40
feedback

sudo apt-install apache --reinstall

should work, make sure you back up your existing configuration files, and directories.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.