View previous topic :: View next topic |
Author |
Message |
tank Tux's lil' helper


Joined: 28 Aug 2002 Posts: 116 Location: Virginia
|
Posted: Sun Dec 29, 2002 3:47 pm Post subject: Problems with mod_rewrite |
|
|
I just performed the following
emerge apache php mod_php mod_ssl
ebuild /var/db/pkg/..../mod_php-...ebuild config
ebuild /var/db/pkg/..../mod_ssl-...ebuild config
Then before touching the apache.conf file I tried to start apache and I get the following error.
* Starting apache...
Syntax error on line 42 of /etc/apache/conf/apache.conf:
[ !! ]oad /etc/apache/modules/mod_rewrite.so into server: /etc/apache/modules/mod_rewrite.so: undefined symbol: dbm_fetch
If I comment out the Load Module and Add Module for mod_rewrite and comment out the
Include conf/vhosts/ssl.default-vhost.conf
I can get apache to start however I can not setup virtual hosts which I need. Any ideas how to fix the error? |
|
Back to top |
|
 |
tank Tux's lil' helper


Joined: 28 Aug 2002 Posts: 116 Location: Virginia
|
Posted: Sun Dec 29, 2002 11:37 pm Post subject: |
|
|
Ok I found some light on my problem at this link
http://www.vttoth.com/rewrite.htm
however where does portage store the source code so I can compile the module myself?
also I think this may mean either I have something messed up in my make.conf (which is pretty generic, only change my cflags) did not touch the USE, defaults seemed ok. Or the ebuild needs to be updated.
No one else has had this problem with the latest apache 1.3.27 apache emerge? |
|
Back to top |
|
 |
zypher Retired Dev


Joined: 10 Jun 2002 Posts: 416 Location: Cologne, ger.
|
Posted: Mon Dec 30, 2002 10:25 am Post subject: |
|
|
Yes, I have the same problem.
As soon as I'm home I'll try to conpile the module myself.
The apache tarball is in /usr/portage/distfiles. Just untar it to a temp-directory and compile it yourself. _________________ linux user 65882 |
|
Back to top |
|
 |
zypher Retired Dev


Joined: 10 Jun 2002 Posts: 416 Location: Cologne, ger.
|
Posted: Mon Dec 30, 2002 10:54 am Post subject: |
|
|
I could not wait, so I took putty and a bit of time at work...
Ok, here's what I did:
emerge apache, wait for it to finish unpacking and patching.
hit ctrl+c
go to /var/tmp/portage/apache-1.soandso/src/modules/standard
edit Makefile, line 38 (LIBS_SHLIB) and add -ldgbm
execute make mod_rewrite
copy mod_rewrite.so to /usr/lib/apache
That's what I did and it worked for me.
Worth a new ebuild if you ask me.
I'll submit a bug. _________________ linux user 65882 |
|
Back to top |
|
 |
tank Tux's lil' helper


Joined: 28 Aug 2002 Posts: 116 Location: Virginia
|
Posted: Mon Dec 30, 2002 2:20 pm Post subject: |
|
|
Thanks, I just got up and going to try your method. Glad to see I am not the only one with the problem. |
|
Back to top |
|
 |
tank Tux's lil' helper


Joined: 28 Aug 2002 Posts: 116 Location: Virginia
|
Posted: Mon Dec 30, 2002 2:51 pm Post subject: |
|
|
zypher wrote: | I could not wait, so I took putty and a bit of time at work...
Ok, here's what I did:
emerge apache, wait for it to finish unpacking and patching.
hit ctrl+c
go to /var/tmp/portage/apache-1.soandso/src/modules/standard
edit Makefile, line 38 (LIBS_SHLIB) and add -ldgbm
execute make mod_rewrite
copy mod_rewrite.so to /usr/lib/apache
That's what I did and it worked for me.
Worth a new ebuild if you ask me.
I'll submit a bug. |
well I followed everything you did and I get this error as a result when make mod_rewrite
collect2: ld returned 1 exit status
make: *** [mod_rewrite] Error 1
any ideas?
edit: nevermind found it, typo. It should be -lgdbm |
|
Back to top |
|
 |
zypher Retired Dev


Joined: 10 Jun 2002 Posts: 416 Location: Cologne, ger.
|
Posted: Tue Dec 31, 2002 12:19 pm Post subject: |
|
|
Argh!
Sry for that.
Glad you found it yourself. _________________ linux user 65882 |
|
Back to top |
|
 |
Sancho666 n00b


Joined: 29 Aug 2002 Posts: 12
|
Posted: Sun Feb 09, 2003 5:10 pm Post subject: |
|
|
Hello,
I'm sorry, but could you perhaps describe the way of compiling mod_rewrite more exactly?
I followed your advice an started emerge apache an quit after patching.
I cd'ed into /var/tmp/portage/apache-1.soandso/src/modules/standard but found no Makefile with the line (LIBS_SHLIB)
My apache's version is apache-1.3.27-r1.
Even after I tried to emerge -u apache-1.3.27-r2, apache stopped starting with same error.
Under Gentoo 1.2 it wasn't a problem to emerge apache, but under gentoo 1.4rc2 I've got great problems.
If someone could help me please.
Thnx.
Sancho
[edit]
Yehaa, it worked. While emerge compiled some other stuff I nano'ed the Makefile in modules/standard.
Now my apache works quite fine.
[/edit] |
|
Back to top |
|
 |
slott_hansen n00b

Joined: 03 Feb 2003 Posts: 40 Location: Denmark, Copenhagen
|
Posted: Thu Feb 20, 2003 1:36 pm Post subject: mod_rewrite still not working |
|
|
I have a fully deployed working server running gentoo linux and it works like a charm - almost!!!
My apache2 server seems to ignore my .htaccess files and my mod_rewrite scripts are completly ignored.
Any ideas ???
this link http://62.61.137.47/toplister should be changed into http://62.61.137.47/index.php?alias=toplister
# rewrite an alias folder
Rewriterule ^([A_Za-z0-9]+)(&(.*)+){0,1}$ neobuilder.php?alias=$1&$2 [T=application/x-httpd-php] _________________ Best regards,
Morten Slott Hansen |
|
Back to top |
|
 |
skjoldby n00b

Joined: 17 Feb 2004 Posts: 5
|
Posted: Wed Jun 23, 2004 9:44 pm Post subject: |
|
|
does anyone know what causes the error in the first thread? |
|
Back to top |
|
 |
|