Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
gollum65
New Member
New Member


Joined: Jan 24, 2005
Posts: 7

PostPosted: Mon Jan 24, 2005 12:58 am Reply with quote

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
 
View user's profile Send private message
muzzy
New Member
New Member


Joined: Jan 22, 2005
Posts: 7

PostPosted: Mon Jan 24, 2005 1:23 am Reply with quote

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.
 
View user's profile Send private message
gollum65
PostPosted: Tue Jan 25, 2005 6:23 pm Reply with quote

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 Only registered users can see links on this board! Get registered or login! 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

PostPosted: Tue Jan 25, 2005 6:39 pm Reply with quote

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:
Code:


<? phpinfo(); ?>

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 
View user's profile Send private message
gollum65
PostPosted: Tue Jan 25, 2005 6:57 pm Reply with quote

Ok. Server info is Apache (I think that's what you were asking for), and register globals is on.
 
gollum65
PostPosted: Tue Jan 25, 2005 7:13 pm Reply with quote

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. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©