Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Enabling Mod rewrite?
PostPosted: Sun Dec 04, 2011 10:40 am 
Offline
Senior Newbie

Joined: Thu Apr 21, 2011 8:00 pm
Posts: 5
Website: http://www.clublupo.co.uk
Hi all,

I'm trying to enable Mod Rewrite on Ubuntu for my Wordpress install to allow permalinks.

I tried to run:

a2enmod rewrite

But it errored with "/Could not create /etc/apache2/mods-enabled/rewrite.load: No such file or directory". There was no "mods-enabled" directory there, so I created it. Re-ran 'a2endmod rewrite' and it ran successfully.

However, when I restarted Apache, I get:

Syntax error on line 160 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

Line 160 of apache2.conf is the section preventing web browsers viewing .htaccess files...and looks correct based on other installs.


I'm guessing this is because I manually created mods-enabled, and the fact that its empty? Can anyone offer any suggestions?

Thanks :)


Top
   
 Post subject:
PostPosted: Sun Dec 04, 2011 11:04 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Hrm, /etc/apache2/mods-enabled should have been created by the apache2.2-common package, and there should be a bunch of things already in there...

What does "dpkg --list | grep apache" look like?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun Dec 04, 2011 2:04 pm 
Offline
Senior Newbie

Joined: Thu Apr 21, 2011 8:00 pm
Posts: 5
Website: http://www.clublupo.co.uk
As below - formatted a little strangely, tried to tidy it up....



ii apache2 2.2.16-1ubuntu3.1 Apache HTTP Server metapackage

ii apache2-mpm-prefork 2.2.16-1ubuntu3.1 Apache HTTPServer - traditional non-threaded model

ii apache2-utils 2.2.16-1ubuntu3.1 utility Programs for webservers

ii apache2.2-bin 2.2.16-1ubuntu3.1 Apache HTTP Server common binary files

ii apache2.2-common 2.2.16-1ubuntu3.1 Apache HTTP Server common files

ii libapache2-mod-php5 5.3.3-1ubuntu9.5 server-side, HTML-embedded scripting language (Apache 2 module)


Top
   
 Post subject:
PostPosted: Sun Dec 04, 2011 7:49 pm 
Offline
Senior Newbie

Joined: Thu Apr 21, 2011 8:00 pm
Posts: 5
Website: http://www.clublupo.co.uk
You were right, there should have been a bunch of things in there. No idea what caused the links to be deleted, but seems I had a similar problem to this guy:

http://thefunkcorner.blogspot.com/2008/ ... dules.html

Restored them all (plus the php5 module!) and it all seems fine again....strange!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group