Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues
Author Message
erick08
Regular
Regular



Joined: Apr 20, 2008
Posts: 56

PostPosted: Fri Mar 27, 2009 1:44 am Reply with quote

Hello ravenscript staff,

I'm going to setup the nuke sentinel. I click to the "CGIAuth Setup" then the code below ask me to paste in .htaccess file. When I try to access to administration I can't, but it say:
"Internal Server Error
Hint: Check the .htaccess file for syntax/configuration errors"

This code I paste in .htaccess file:
#-------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
#-------------------------------------------
<Files http://www.gembala.890m.com/****/public_html/.staccess>
deny from all
</Files>

<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted by NukeSentinel(tm)"
AuthType Basic
AuthUserFile http://www.gembala.890m.com/****/public_html/.staccess
</Files>
#-------------------------------------------
# End of NukeSentinel(tm) admin.php Auth
#-----------------------------------

what wrong?

TQ
 
View user's profile Send private message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Fri Mar 27, 2009 12:45 pm Reply with quote

Do you have your user/pass included in the .staccess file?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Mar 28, 2009 12:50 am Reply with quote

You are not following the instructions in the HowToInstall manual. That's why you are getting the errors. Review the setup instructions but first restore your original .htaccess file that cane with the distro.
 
View user's profile Send private message
erick08







PostPosted: Sat Mar 28, 2009 10:50 am Reply with quote

dad7732 wrote:
Do you have your user/pass included in the .staccess file?

Yes I have user/pass but I dont know how to put in .staccess . Also I lose here;
"Normally: /home/****/public_html/.htaccess"

What exactly: /home/****/public_html/.htaccess or add "http://www" like,
http://www.home/****/public_html/.htaccess

Yes Raven I folow the instruction, but maybe have a mistake.

By now I leave the staccess Path and ftaccess Path blank. htaccess Path:I fill ".htaccess" can I leave the two path blank?



TQ Question
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Mar 28, 2009 6:56 pm Reply with quote

You cannot use the URL. You will need to ask your host what the home path is for your site.

Again, it's probably something in the form
/home/****/public_html/.htaccess
but you will have to ask your host.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
erick08







PostPosted: Sun Mar 29, 2009 3:58 am Reply with quote

Sentinel setting look like all OK for me now.
But I'am confuse are the HTTPAuth similar to CGIAuth... I want to protect my forum from hack, where can I begin..

TQ Embarassed
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Mar 29, 2009 6:09 am Reply with quote

If you have the httpAuth setting use that and you won't have to do the CGIAuth settings.
 
View user's profile Send private message
erick08







PostPosted: Sun Mar 29, 2009 8:25 am Reply with quote

Yes I use httpAuth setting. So, how can I setting the Sentinel to protect my Forum.

TQ Wink
 
jakec







PostPosted: Sun Mar 29, 2009 8:39 am Reply with quote

You mean forum admin?

My host uses cPanel so if I have any other directories I want to protect then I do it through cPanel, which is much easier and quicker.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Mar 29, 2009 9:01 am Reply with quote

erick08, just so you know, there haven't been any known exploits of the forum admin in a very long time. RN 2.3.x is fully patched.

Also, what you have been talking about is "admin" protection. But, do you really mean regular forum protection? The same blockers are used throughout RN, so there isn't anything "extra" that is specific to the forums.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Sun Mar 29, 2009 3:04 pm Reply with quote

To protect your forum admin, please refer to the RavenNuke(tm) How To Install manual. See http://www.ravennuke.com/HowToInstall/ . Then select NukeSentinel(tm) from the menu to the left. Read through the setup instructions and about 40 lines or so down the page you will see this line of text:

Once the above is working for you, be sure to read the section on Protecting Your Forums Admin Folder at the bottom of this page.. Click the link and it will take you down to the section Protecting Your Forums Admin Folder.
 
erick08







PostPosted: Mon Mar 30, 2009 5:02 am Reply with quote

Raven wrote:
To protect your forum admin, please refer to the RavenNuke(tm) How To Install manual. See http://www.ravennuke.com/HowToInstall/ . Then select NukeSentinel(tm) from the menu to the left. Read through the setup instructions and about 40 lines or so down the page you will see this line of text:

Once the above is working for you, be sure to read the section on Protecting Your Forums Admin Folder at the bottom of this page.. Click the link and it will take you down to the section Protecting Your Forums Admin Folder.


Hi Raven,
Yes I do. At the botom I found of NukeSentinel(tm) config:
If you using "HTTPAuth", see the Only registered users can see links on this board! Get registered or login!thread in the RavenPHPScripts support forums.
Are this link setup the HTTPAuth? Embarassed

TQ
 
Raven







PostPosted: Mon Mar 30, 2009 5:38 am Reply with quote

That link should detail how to set it up Smile
 
erick08







PostPosted: Mon Mar 30, 2009 6:33 am Reply with quote

Ok Raven I already set it up. Now how I know it work?

TQ Laughing
 
Raven







PostPosted: Mon Mar 30, 2009 8:47 am Reply with quote

Log out as admin and then try to log in again as admin. It should prompt you.
 
erick08







PostPosted: Tue Mar 31, 2009 1:36 am Reply with quote

I mean in forum admin..... but wait. How do I put the code "username:password" in .staccess in Forum admin?

Like this...
<Files .staccess>
username:password
</Files>

or something.....

Bcause when I click the icon of the forum in Control Panel dministrator I recieve this:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."


TQ Confused
 
dad7732







PostPosted: Tue Mar 31, 2009 6:38 am Reply with quote

That is not the way .staccess works. Depending on the OS that your server runs on, ie., FreeBSD, Linux, IIS, etc. you have to generate a username:password using the server control syntax, etc. Your ISP will help you with this function.

After that is accomplished, you then copy the information generated to your .staccess file, for example:

Quote:
Username:$ape1$ffjQf/..$eFRhzMqftcZULhj8B7k5m.


That is ALL that is included in the .staccess file, one line only. The username is plain english or whatever your language is and the password is encrypted. There is no .staccess specific to just the forum that I am aware of.

Cheers
 
erick08







PostPosted: Tue Mar 31, 2009 6:51 am Reply with quote

Cheers........ that is.....tq. Now how do I test? Can I test it? Just want to know......

TQ dad7732.
 
dad7732







PostPosted: Tue Mar 31, 2009 7:00 am Reply with quote

First of all, in your Sentinel administration, Admin Auth has to be OFF. The path to the .staccess file must be correct. Also, the .staccess file permission must be set to 666.

With all that done, access your site's administrator acccount, eg.,:

http://www.yoursite.com/admin.php

If set correctly you will be presented with a login box, "Authentication Required". Enter the username and password that is included in your .staccess file and if correct you will then be presented with another login box where you enter your admin username and password that you entered when you initially set up RN.

Note:

In your .htaccess file, you must uncomment the following lines and include the path to the .staccess file, such as:

Quote:
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted"
AuthType Basic
AuthUserFile /home/directory/directory/.staccess
</Files>


Note the last line, that should be the path to the .staccess file starting from /root/ on your server and NOT a URL.
 
erick08







PostPosted: Tue Mar 31, 2009 8:25 am Reply with quote

Hello dad7732,

First at all TQ,
Are the Admin HTTPAuth never turn it back?
What I mean to test is, test the protection admin in the forum? If I'm the hacker, how can I do this?

What u mean "entered when you initially set up RN" and how to setup?

TQ Embarassed
 
dad7732







PostPosted: Tue Mar 31, 2009 8:46 am Reply with quote

If your site is protected as mentioned, then the ENTIRE site, including the forum is under the same protection. The protection is site-wide, not just a specific module, etc. You can't get into the forum administration unless you're logged in as "Admin" from the beginning using the suggested method.
 
erick08







PostPosted: Wed Apr 01, 2009 1:38 am Reply with quote

OK dad7732 the best...... Tq

But one more. I want to change my security cod to 8 digit. By now its 6 digit. How can I do it? Crying or Very sad

TQ
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Apr 01, 2009 10:11 am Reply with quote

Please start a new topic for that.
 
View user's profile Send private message Send e-mail
Raven







PostPosted: Wed Apr 01, 2009 10:16 am Reply with quote

erick08,

Actually if you search the forums we have already answered that Smile
 
erick08







PostPosted: Thu Apr 02, 2009 2:36 am Reply with quote

A... au... Yop Bos... Embarassed
TQ
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues

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 ©