Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 drupal .htaccess login problem
Google
Post new topic Reply to topic
Author Message
keenan
 
 


Joined: 16 Jun 2005
Posts: 8

PostPosted: Thu Jun 16, 2005 8:55 am Reply with quoteBack to top

All of a sudden i am unable to log into the apache2triadCP + awstats. I am using the same password that I used during the main install.

The odd thing is, is that I can log into phpmyadmin just fine (same password).

Please help!

Thanks,

Keenan

Windows 2003, apache2triad 1.5.2 build
View user's profileSend private message
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Thu Jun 16, 2005 1:50 pm Reply with quoteBack to top

even more odd is that they use same .htaccess files, more so .htpasswd file ... and if one works everything that relies on that file will work. check your .htaccess files for each....
View user's profileSend private messageSend e-mailYahoo Messenger
keenan
 
 


Joined: 16 Jun 2005
Posts: 8

PostPosted: Thu Jun 16, 2005 4:39 pm Reply with quoteBack to top

That makes sense that it would use the same file. I checked the .htaccess files under apache2triad and awstats and they both point to...

"AuthUserFile c:apache2triad\htdocs\.htpasswd"

The only problem is I do not have a .htpasswd file in the htdocs directory (odd, I know). Is there a way I can make a new .htpasswd file? (if you think that would help?)

Thanks for replying so quickly!

Keenan
View user's profileSend private message
Joshua Meadows (DemoRic)
support
support


Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Thu Jun 16, 2005 4:49 pm Reply with quoteBack to top

Open a command prompt
Quote:
Start -> Run -> cmd.exe


Change directory to htdocs
Code:
cd C:\apache2triad\htdocs


Call htpasswd and generate .htpasswd file
Code:
C:\apache2triad\bin\htpasswd.exe .htpasswd root


Note: you may change root to any username you want.
View user's profileSend private messageYahoo MessengerICQ Number
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Thu Jun 16, 2005 5:23 pm Reply with quoteBack to top

be aware if you change the username root using the above method, some applications will still use root (mysql, xmail, ect)
View user's profileSend private messageSend e-mailYahoo Messenger
keenan
 
 


Joined: 16 Jun 2005
Posts: 8

PostPosted: Sun Jun 19, 2005 7:24 pm Reply with quoteBack to top

Thank you for the replies! I followed your directions and created the .htpasswd file. After it is created and I try to log in, I get an "Access Forbidden" Error 403....

What could be the problem?

Thanks for your help!

Keenan
View user's profileSend private message
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Mon Jun 20, 2005 12:13 am Reply with quoteBack to top

did you use same user and pass you used to create .htpasswd file?

did you put the .htpasswd file in \apache2triad\htdocs\ folder?

make sure the .htaccess points to the right path, other than that wrong username/pass
View user's profileSend private messageSend e-mailYahoo Messenger
keenan
 
 


Joined: 16 Jun 2005
Posts: 8

PostPosted: Mon Jun 20, 2005 7:43 pm Reply with quoteBack to top

The .htpasswd is located in the htdocs directory. I created it with the same user/pass as before.

When I view the .htaccess file (located in the htdocs dir) it looks like the file content only purtains to my Drupal installation (open source CMS).

Is there a way I can add to the .htaccess??

**Man, I do not know how things got so screwed up**

Thanks again,

Keenan
View user's profileSend private message
LiquidSnake
past contributor
past contributor


Joined: 23 May 2004
Posts: 267
Location: Middlesboro, KY

PostPosted: Mon Jun 20, 2005 7:58 pm Reply with quoteBack to top

the .htaccess file in \htdocs\ was probably created by Drugal (your CMS). only the .htpasswd file needs to be in \htdocs\ ..

you need the .htaccess files for all affected directories you are not able to log into..

now being able to log into pypmyadmin tells us your .htpasswd file is correct.

which means your .htaccess files in the cp and awstats might have been bad.

\apache2triadcp\.htaccess should be

Code:
Require user root
AuthType Basic
AuthName "Apache2TriadCP"
AuthUserFile C:\apache2triad\htdocs\.htpasswd


and \awstats\.htaccess should be
Code:

Require user root
AuthType Basic
AuthName "AWStats"
AuthUserFile C:\apache2triad\htdocs\.htpasswd


nevermind \htdocs\.htaccess
View user's profileSend private messageSend e-mailYahoo Messenger
keenan
 
 


Joined: 16 Jun 2005
Posts: 8

PostPosted: Wed Jun 29, 2005 1:36 am Reply with quoteBack to top

I checked both files and they are the same as you posted...very weird

Sorry it has taken me a few days to respond, I am getting ready to move!

Any other ideas?

Thanks again,

Keenan
View user's profileSend private message
islanding
 
 


Joined: 22 Mar 2006
Posts: 1
Location: Boston

PostPosted: Wed Mar 22, 2006 2:37 pm Reply with quoteBack to top

I have the same problem. When I remove the .htaccess (drupal) from htdocs everything works correctly. Any ideas about editing the drupal .htaccess file?
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
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
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT