View previous topic :: View next topic |
Author |
Message |
amnesty_puppy n00b
Joined: 28 Nov 2004 Posts: 22
|
Posted: Mon Feb 14, 2005 12:32 pm Post subject: a patchy downgrade [SOLVED] |
|
|
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 |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Mon Feb 14, 2005 12:39 pm Post subject: Re: a patchy downgrade |
|
|
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 |
|
|
amnesty_puppy n00b
Joined: 28 Nov 2004 Posts: 22
|
Posted: Mon Feb 14, 2005 1:30 pm Post subject: |
|
|
ah. I see. Thanks |
|
Back to top |
|
|
amnesty_puppy n00b
Joined: 28 Nov 2004 Posts: 22
|
Posted: Mon Feb 14, 2005 2:22 pm Post subject: |
|
|
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 |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Mon Feb 14, 2005 2:28 pm Post subject: |
|
|
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
|
note the "+apache2" it says on my system. |
|
Back to top |
|
|
amnesty_puppy n00b
Joined: 28 Nov 2004 Posts: 22
|
Posted: Mon Feb 14, 2005 2:34 pm Post subject: |
|
|
yeah, that was it. thanks man. |
|
Back to top |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Mon Feb 14, 2005 2:45 pm Post subject: |
|
|
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 |
|
|
amnesty_puppy n00b
Joined: 28 Nov 2004 Posts: 22
|
Posted: Mon Feb 14, 2005 4:02 pm Post subject: |
|
|
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 |
|
|
|