Mod_rewrite and DEBIAN

Hi,
whole day iam trying install OXID esales community edition. I got problem with mod_rewrite. If i try use admin/test.php it show mod_rewrite_on.
Iam using Linux version 2.6.26-2-686 (Debian 2.6.26-19lenny1)
I found this bug issue:
https://bugs.oxid-esales.com/view.php?id=683
but if i click to:
Could be resolved adopting the httpd.conf


The page is not there. :frowning:
Could anybody help me ???

My virtualhost config:
<VirtualHost 93.185.49.7>
ServerName www.lightone.cz
DocumentRoot /data/www/lightone.cz
<Directory /data/www/lightone.cz>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/lightone.cz.error.log
CustomLog /var/log/httpd/lightone.cz.access.log common
</VirtualHost>

My .htaccess
<IfModule mod_rewrite.c>
RewriteBase /
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/core/|/export/|/modules/|/out/|/setup/|/tmp/|/views/)
RewriteRule admin/test.php$ admin/test.php?mod_rewrite=1

RewriteCond %{REQUEST_URI} !(/admin/|/core/|/export/|/modules/|/out/|/setup/|/tmp/|/views/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !(.html|/|.jpg|.css|.pdf|.doc|.gif|.png|.js)$ %{REQUEST_URI}/ [R=301,L]

RewriteCond %{REQUEST_URI} !(/admin/|/core/|/export/|/modules/|/out/|/setup/|/tmp/|/views/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.html|/)$ oxseo.php

</IfModule>

disabling log file access from outside

<FilesMatch ā€œ(EXCEPTION_LOG.txt|.log$|.tpl$)ā€>
order allow,deny
deny from all
</FilesMatch>

Options -Indexes

I was try remove this:
RewriteBase /
Options +FollowSymLinks

But it doesnt work.

Thanks,

Dears,
i solved this problem by my self.
Just simple change this:
It will disable check function mod_rewrite, but i strightly recommended, do this only if you are 100% shure thats mod_rewrite is full working. You can check it http://your.website/admin/test.php you should see ā€œmod_rewrite_onā€

Open this file by text editor [B][/B]/core/oxsysrequirements.php[B][/B]
Find this function [B]checkModRewrite()[/B]
On the end of this function is [B]return $iModStat;[/B]
Replace this [B]return 1;[/B]

Everything seems working after installation.
I hope this issue will somebody helpfull in future.
Thanks,

Hello trilobit_cz,

I felt free to move this thread to international forums. Not good to mix up the languagesā€¦
The solution you posted is just a workaround, not a solution, maybe other problems will follow.

I installed the shop on a Debian system as well. As I see, AllowOverride is already set to ALL on your system. Did you check if it is really loaded with a phpinfo()? Hope you didnā€™t forget to re-start your Apacheā€¦

Regards

Sorry for wrong place, move it to international forum please if you can,.
I checked it:
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 [B]mod_rewrite [/B]mod_setenvif mod_status
So i think its working properly.
If you want i can provide you full path to my server with phpinfo by private message.
I would like to set up settings more for full working. I think it can be helpfull for more peoples. I saw a lot of discussion forums about this problem, but nowere was exact solution.
Thanks

Oh, I did alreadyā€¦ :slight_smile:

Right, looks like. There might something more: Do you use another .htaccess file somewhere in the shop, e.g. in the /admin/ folder?

Well, there are only a few things to consider. Letā€™s check it out in your case.

Which version do you use btw? The CZ one or the latest release from our download site?

Regards

I found another .htaccess in this directories:
/export
/log
/out/admin/tpl
Would you like to see content of them ?

Iam using latest CZ version downloaded from CZ website.
Thanks,
Adrian

Hi Adrian,

nope, donā€™t have to see it :slight_smile:
Than, the reason is clear: If the installation script finds a .htaccess somewhere in the shop, mod_rewrite will be shown as not installed.
Solution: Delete the .htaccess-files everywhere you found them, install the shop and upload the .htaccess files again if you want. Shall work like this.

Regards

Ok, so i try let my shop installed because its seems thats working fine.
Thanks to your care.
Adrian