Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
a patchy downgrade [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
amnesty_puppy
n00b
n00b


Joined: 28 Nov 2004
Posts: 22

PostPosted: Mon Feb 14, 2005 12:32 pm    Post subject: a patchy downgrade [SOLVED] Reply with quote

I need to use mod_auth_mysql and since it hasn't been ported to apache 2 I need to downgrade. The problem I get is that it can't find apxs when it get's to the merging stage, it seems to have been deleted when I unmerged apache2 since I created a symlink to apxs2 from apxs to fool it, but I can't find any reference to it in the portage tree.

Thanks, Dom.


Last edited by amnesty_puppy on Mon Feb 14, 2005 4:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Mon Feb 14, 2005 12:39 pm    Post subject: Re: a patchy downgrade Reply with quote

amnesty_puppy wrote:
I need to use mod_auth_mysql and since it hasn't been ported to apache 2

emerge -pDv mod_auth_mysql
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] net-www/mod_auth_mysql-2.0.0_pre20030510 +apache2 9 kB
Total size of downloads: 9 kB
Back to top
View user's profile Send private message
amnesty_puppy
n00b
n00b


Joined: 28 Nov 2004
Posts: 22

PostPosted: Mon Feb 14, 2005 1:30 pm    Post subject: Reply with quote

ah. I see. Thanks :oops:
Back to top
View user's profile Send private message
amnesty_puppy
n00b
n00b


Joined: 28 Nov 2004
Posts: 22

PostPosted: Mon Feb 14, 2005 2:22 pm    Post subject: Reply with quote

wait a tic. the mod package returns the error "apxs:Error: Command failed with rc=65536" on compile, which googling seems to show is what happens when apache1 modules are installed with apache2. So still the same problem. I don't see why apache1 and 2 don't have different portage entries apache and apache2 since they're basically completely different and have different dependencies.
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Mon Feb 14, 2005 2:28 pm    Post subject: Reply with quote

look into the ebuild:
Code:

if use apache2; then
 APXS="apxs2 -D APACHE2"
else
 APXS="apxs -D APACHE1"
fi

perhaps you didnt put "apache2" to your USEflags?

if you run:
Code:

emerge -pDv mod_auth_mysql

does it say:
Code:

[ebuild N ] net-www/mod_auth_mysql-2.0.0_pre20030510 +apache2 9 kB

8O
note the "+apache2" it says on my system.
Back to top
View user's profile Send private message
amnesty_puppy
n00b
n00b


Joined: 28 Nov 2004
Posts: 22

PostPosted: Mon Feb 14, 2005 2:34 pm    Post subject: Reply with quote

yeah, that was it. thanks man.
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Mon Feb 14, 2005 2:45 pm    Post subject: Reply with quote

ok, if you missed out the "apache2" useflag, you should run "emerge -upDv -newuse world" now, and update some other packages perhaps.
ps: put a [SOLVED] in your 1st posting ;)
Back to top
View user's profile Send private message
amnesty_puppy
n00b
n00b


Joined: 28 Nov 2004
Posts: 22

PostPosted: Mon Feb 14, 2005 4:02 pm    Post subject: Reply with quote

ok - just one more thing: I'm trying to get it configured and it's been hard getting any reference to the necessary directives since everything seems different, so I checked the source files but I'm missing one. This is what I have so far:

Code:
AuthName "Admin Panel"
AuthType Basic

AuthMySQLDB test_data
AuthMySQLGroupTable user
AuthMySQLNameField UserName
AuthMySQLPasswordField Password
AuthMySQLGroupField Privileged
AuthMySQLCryptedPasswords On

require group admin


I've also loaded the module in apache2.conf but it still seems to be looking for a htpasswd file. There is some reference to an AuthMySQLEnable on|off but it gives the "invalid command" error and it's not in the source file (or anything similar).

EDIT: Needs to be AuthMySQLUserTable user, this fixes it. Thanks for all your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum