PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
chaos_coa
Regular
Regular


Joined: Oct 11, 2007
Posts: 50

PostPosted: Mon Dec 10, 2007 8:28 pm Reply with quote Back to top

Hi - I have attempted to do this but so far was unsuccessful.

I have a few questions.

Do I rename the sample files to the 2 files I need:
sample.htaccess and sample.staccess to .htaccess and .staccess ?

That is what I did. (I am testing this locally - I setup ravennuke on a local box using Fedora 7 Linux from scratch - boy - now that was fun )

Ran this on the 2 files listed above:

chmod 777 .htaccess
chmod 777 .staccess

Put the paths in:

/var/www/html/.htaccess

and

/var/www/html/.staccess

Selected Admin CGIAuth from Admin Auth Auth

scanned for new admins

admin auth list

build CGIAuth file

Back to NS ACP in .staccess box clicked link = CGI Auth Setup

I get this:

# -------------------------------------------
# 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 /var/www/html/.staccess
</Files>
# -------------------------------------------
# End of NukeSentinel(tm) admin.php Auth
# -------------------------------------------


I understand that I need to type that Admin name in here? Can you tell me where it goes? I am really bad at looking at an code examples and figuring where something should go?

Then I understand that I open the .htaccess file that I created using the sample.htaccess file and paste the text created by clicking on the CGI Auth Setup into the .htaccess file - chmod .htaccess and .staccess back to 666

Correct?

If you can help me with where the username goes I think I may just have it done !

Whew !
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Mon Dec 10, 2007 8:43 pm Reply with quote Back to top

chaos_coa wrote:

Do I rename the sample files to the 2 files I need:
sample.htaccess and sample.staccess to .htaccess and .staccess ?


Yes, that will work.

chaos_coa wrote:

I get this:

# -------------------------------------------
# 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 /var/www/html/.staccess
</Files>
# -------------------------------------------
# End of NukeSentinel(tm) admin.php Auth
# -------------------------------------------

I understand that I need to type that Admin name in here? Can you tell me where it goes? I am really bad at looking at an code examples and figuring where something should go?


No, you need to put the admin login and hashed password in the .staccess file. You don't have to monkey with the above generated text at all. You just paste it over what is already there from the sample .htacess file.

chaos_coa wrote:

Then I understand that I open the .htaccess file that I created using the sample.htaccess file and paste the text created by clicking on the CGI Auth Setup into the .htaccess file - chmod .htaccess and .staccess back to 666

Correct?


Yes.

Just to amplify, your .staccess file should look like this:

Code:

your_admin_login:<hashed password goes here>


There are posts elsewhere in the forum on how to generate the hashed password that goes after the colon in the .staccess file.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum