Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 19th, 2001, 05:35 PM
poil11 poil11 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: poil
Posts: 55 poil11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
installing mod_rewrite, compile with mod_rewrite?

how do i install or compile apache with mod_rewrite. i do have a dedicated box. in the begining i only used it for website, but as i use it more i am using certain features more. when i made an htaccess file and do RewriteEngine on my error log returns:
[Wed Sep 19 15:16:52 2001] [alert] /usr/local/www/htdocs/deals/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
am i doin something wrong?
__________________
http://www.stillsucks.com and helping with
http://www.extremeforums.org

Reply With Quote
  #2  
Old September 19th, 2001, 06:22 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> i do have a dedicated box

It's very important to let us know what OS and version.

>> when i made an htaccess file and do RewriteEngine on my error log returns

Don't use .htaccess, define RewriteEngine on globally without any other Rewrite* directive then restart apachectl. If you are still seeing the same error upon startup, then you need to recompile Apache.

--enable-module=rewrite or --enable-module=most (mod_rewrite included in this one)

Reply With Quote
  #3  
Old September 20th, 2001, 11:07 AM
poil11 poil11 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: poil
Posts: 55 poil11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
hi thanks for your help, i still get the error, i dont' think it was installed on my box at all. it is freebsd by the way. i am completely new at this, how do i recompile apache with --enable-module=rewrite . i think that since it is so hard i shouldn't be playing with it, but hey, what else do i have to do. thanks again for giving me help!

Reply With Quote
  #4  
Old September 20th, 2001, 07:57 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> it is freebsd by the way

Then mod_rewrite is enabled by default if you install thru the ports collection.

>> how do i recompile apache with --enable-module=rewrite

In FreeBSD, you almost always don't have a need to compile software manually unless it's not found in the ports collection.
Unlike RPM binary in Linux (you have to accept the default configuration), *BSD ports system is as flexible as compiling software manually. If you choose to accept the default, you just need to do the following:
1) cd /usr/ports/www/apache13
2) make && make install clean
That's it

You can also specify parameters to make which is equivalent to ./configure blah blah.
Example:
1) cd /usr/ports/www/apache13
2) make --prefix=/var ---enable-module=most
3) make install clean

You should cd to /usr/ports/www/apache13 and check out the Makefile and see what configure options are defaults and decide whether you want to accept them.
Of course, you can even alter that Makefile directly.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > installing mod_rewrite, compile with mod_rewrite?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway