# ROR setup problems with Suse + apache

**URL:** <https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037>\
**Category:** Rails\
**Created:** [January 10, 2006, 10:31am UTC](https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037 "2006-01-10T10:31:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![higazi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@higazi](https://www.ruby-forum.com/u/higazi)\
**Post date:** [January 10, 2006, 10:31am UTC](https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037/1 "2006-01-10T10:31:06Z")

</div>

hello,

I am tying to run ROR on apache 2 with suse linux 9.3,  
and I do not succeed with it.

I set rubby und rails and all scripts are running fine.  
my Document root :

/srv/rails/demo/public

I did not setup FastCGI because I could not run it with  
normal CGI jet.

my Virtual Server runs on 192.168.0.111

ServerName rails  
DocumentRoot /srv/rails/demo/public  
\<Directory /srv/rails/demo/public\>  
Options ExecCGI FollowSymLinks  
AllowOverride all  
Allow from all  
Order allow,deny

I even “chmod 777 /srv/rails/\* -R”

whenever I try to connect I get the following answer  
in the browser (sorry some of it is german):

> Error 500  
> 192.168.0.111  
> Tue Jan 10 13:20:33 2006  
> Apache/2.0.50 (Linux/SUSE)  
> Serverfehler!

> Die Anfrage kann nicht beantwortet werden, da im Server \>ein interner Fehler aufgetreten ist. Der Server ist \>entweder Ã¼berlastet oder ein Fehler in einem CGI-Skript \>ist aufgetreten.

> Sofern Sie dies fÃ¼r eine Fehlfunktion des Servers \>halten, informieren Sie bitte den Webmaster hierÃ¼ber.

when I check the apache error log(/var/log/apache2/error\_log)  
logs I find the following :

[Tue Jan 10 13:20:33 2006] [alert] [client 192.168.0.150]  
/srv/rails/demo/public/.htaccess: Invalid command ‘RewriteEngine’,  
perhaps mis-spelled or defined by a module not included in the server  
configuration

I compared every thing with the rails-wiki for fedora  
but I dont find the problem.

please help me !!

thank and best regards R Higazi

---

<div class="post-metadata">

**Author:** ![higazi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@higazi](https://www.ruby-forum.com/u/higazi)\
**Post date:** [January 10, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037/2 "2006-01-10T13:28:09Z")

</div>

> [Tue Jan 10 13:20:33 2006] [alert] [client 192.168.0.150]  
> /srv/rails/demo/public/.htaccess: Invalid command ‘RewriteEngine’,  
> perhaps mis-spelled or defined by a module not included in the server  
> configuration

The mod\_rewrite module was not loaded at server start. This is normal  
for SuSe 9.x and Suse 10 from what I have seen.

Open up the file /etc/sysconfig/apache2 and find the line that starts  
with APACHE\_MODULES=. At the end of the string add the word  
“rewrite” (without quotes) and restart your server with /etc/init.d/  
apache2 restart.

Nicky

---

<div class="post-metadata">

**Author:** ![higazi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@higazi](https://www.ruby-forum.com/u/higazi)\
**Post date:** [January 10, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037/3 "2006-01-10T15:15:15Z")

</div>

Hi Ramy

On Tue, 2006-01-10 at 10:31 +0100, ramy higazi wrote:

> I did not setup FastCGI because I could not run it with  
> Order allow,deny
> 
> > Apache/2.0.50 (Linux/SUSE)
> 
> [Tue Jan 10 13:20:33 2006] [alert] [client 192.168.0.150]  
> /srv/rails/demo/public/.htaccess: Invalid command ‘RewriteEngine’,  
> perhaps mis-spelled or defined by a module not included in the server  
> configuration

Your installation of apache needs to have mod\_rewrite installed and  
included. check the IncludeModule area of your apache setup, or suse’s  
package management to see if mod\_rewrite for apache is installed.

## Good luck! 🙂

-Matthew B.  
removed\_email\_address@domain.invalid :: 607 227 0871  
Resume and Portfolio @ [http://madhatted.com](http://madhatted.com)

---

<div class="post-metadata">

**Author:** ![higazi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@higazi](https://www.ruby-forum.com/u/higazi)\
**Post date:** [January 10, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/ror-setup-problems-with-suse-apache/52037/4 "2006-01-10T16:15:40Z")

</div>

Thank you very much Matthew & Nicky,

this was the missing hint which I did not find  
best regard

Ramy Higazi  
from Mainz, Germany
