Mod_rewrite using MySQL
Moderator: General Moderators
Mod_rewrite using MySQL
Has anyone seen a good tutorial for how to setup mod_rewrite using a mysql database?
http://www.camaya.net/modrw is decent, but it isn't complete - it doesn't show how to apply the patch.
http://www.camaya.net/modrw is decent, but it isn't complete - it doesn't show how to apply the patch.
I can't figure out which file to patch
I figured it would be the mod_rewrite.so but apparently not. Any ideas?
I figured it would be the mod_rewrite.so but apparently not. Any ideas?
Code: Select all
root@ubuntu:/usr/lib/apache2/modules# patch -p1 < /etc/apache2/mod_rewrite-mysql.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- modules/mappers/mod_rewrite.c.old 2005-02-04 21:21:18.000000000 +0100
|+++ modules/mappers/mod_rewrite.c 2005-05-06 09:58:31.000000000 +0200
--------------------------
File to patch: mod_rewrite.so
patching file mod_rewrite.so
Hunk #1 FAILED at 487.
Hunk #2 FAILED at 3006.
Hunk #3 FAILED at 3038.
Hunk #4 FAILED at 3135.
Hunk #5 FAILED at 3163.
Hunk #6 FAILED at 3364.
Hunk #7 FAILED at 3948.
Hunk #8 FAILED at 4037.
8 out of 8 hunks FAILED -- saving rejects to file mod_rewrite.so.rej
can't find file to patch at input line 271
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- modules/mappers/mod_rewrite.h.old 2005-02-04 21:21:18.000000000 +0100
|+++ modules/mappers/mod_rewrite.h 2005-05-06 07:33:45.000000000 +0200
--------------------------
File to patch:now the blood is coming from my ears.
i've got the source for apache, i put the patch into the "patches" folder, and the output [tailed]
That was the first attempt, then i tried to apply it using patch -p0 < path/to/the/patch in several directories.
What part am i missing? Could this patch somehow be incompatible with the debian src?
i've got the source for apache, i put the patch into the "patches" folder, and the output [tailed]
Code: Select all
Applying patch 052_mod_rewrite-mysql.patch failed!
make[1]: *** [debian/stampdir/patchapply] Error 1
make[1]: Leaving directory `/home/todd/apache2-2.0.54'
make: *** [debian/stampdir/source.make] Error 2What part am i missing? Could this patch somehow be incompatible with the debian src?