Author |
Message |
gollum65
New Member


Joined: Jan 24, 2005
Posts: 7
|
Posted:
Mon Jan 24, 2005 12:58 am |
|
I'm sure this has been asked a million times, but after reading many of the posts on this forum on the topic, and trying the suggested fixes, I can't solve my problem.
I recently installed phpnuke 7.5. Yesterday I installed NukeSentinel and got almost everything working fine.
The problem I'm having is that I can't get .htaccess and .staccess to work. I created the little script that encrypts passwords for you, and included the user:pass in .staccess, yet if I upload the 2 files to my server, when I try to access my nuke admin page, the pop-up won't let me authenticate. I get 3 attempts to login, then an error 403 page.
Both files are always chmod 666 after uploading. I didn't change anything in .htaccess except what was suggested on this site.
I've ALWAYS had trouble getting .htaccess files to work. They confuse the you know what out of me.
Please help.
Thanks,
Paul B |
|
|
|
 |
muzzy
New Member


Joined: Jan 22, 2005
Posts: 7
|
Posted:
Mon Jan 24, 2005 1:23 am |
|
Read Only registered users can see links on this board! Get registered or login!. In the second page maybe you can find a solution. It worked for me. |
|
|
|
 |
gollum65

|
Posted:
Tue Jan 25, 2005 6:23 pm |
|
Thanks Muzzy, but that didn't help. I had actually already tried that.
As I mentioned, I always have trouble getting .htaccess files to work on any of my sites, nuke or not nuke.
Not sure if this helps, but here's the contents of my .htaccess and .staccess files:
Code:
# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .staccess>
deny from all
</Files>
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted by NukeSentinel(tm)"
AuthType Basic
AuthUserFile /home/www/mysite/.staccess
</Files>
# -------------------------------------------
# End of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
|
And an example of my .staccess...
Code:
username:rvqnvJI984zN5
|
I should also note that if I upload both files to the root folder of my site, then browse to www.mysite.com/admin.php, the .htaccess popup appears, but it won't take any username/password combo I try to include in the .staccess file.
Thanks again for your help! |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Tue Jan 25, 2005 6:39 pm |
|
php with register globals off maybe?
Because these login parts are so server config particular, server O/S, server software, and php version and how php is installed (as a CGI or Apache module) is pretty much manditory to offer any help with getting you up and running. Most of this info can be found with phpinfo if you don't have a php info page.
Create a text file with this in it:
Save it as myphpi.php or some other obscure name and upload it to your webspace. Then open that page in a browser and you will get a lot of info that doesn't always make a lot of sense but you will see how php is installed and if register globals is on or off and much more including the server path ect... |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
gollum65

|
Posted:
Tue Jan 25, 2005 6:57 pm |
|
Ok. Server info is Apache (I think that's what you were asking for), and register globals is on. |
|
|
|
 |
gollum65

|
Posted:
Tue Jan 25, 2005 7:13 pm |
|
Ok, problem solved!
The line:
Code:
AuthUserFile /home/www/mysite/.staccess
|
SHOULD have read:
Code:
AuthUserFile /www/mysite/.staccess
|
Thanks a bunch sixonetonoffun! The clue was phpinfo which showed the proper path.  |
|
|
|
 |
|