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
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Tue Feb 22, 2005 3:14 am Reply with quote Back to top

i've uploaded all files and when i'm trying to login to admin.php i'm getting a 401 error
Code:
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


and it doesn't appear the common admin.php login block but the pop up window that i use to login into the cpanel my server uses. any suggestions ?
View user's profile Send private message Visit poster's website
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Tue Feb 22, 2005 12:07 pm Reply with quote Back to top

i haven't install sentinel yet because i can't login to admin.php if this is helpful
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Tue Feb 22, 2005 12:18 pm Reply with quote Back to top

Start over but don't upload the htaccess changes until you have the install completed.
View user's profile Send private message
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Tue Feb 22, 2005 12:30 pm Reply with quote Back to top

only the htaccess or should i recover mainfile too ?
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Tue Feb 22, 2005 2:51 pm Reply with quote Back to top

The htaccess is probably the only issue. Once you have the rest running smoothly setup the admin Auth protection.
View user's profile Send private message
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 2:47 am Reply with quote Back to top

well, i replaced htaccess , installed sentinel , didn't make any changes to the default settings just activated the scrolling sentinel block. when i'm trying to log in as administrator i face the same problem again. would it be vulnerable to have htaccess to default ?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Feb 23, 2005 2:53 am Reply with quote Back to top

Did it work before you installed NukeSentinel?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 3:03 am Reply with quote Back to top

yes when i brought htaccess to default i could log in as administrator and do anything.
View user's profile Send private message Visit poster's website
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 3:07 am Reply with quote Back to top

toyotaTRD wrote:
yes when i brought htaccess to default i could log in as administrator and do anything.


i mean that when i uploaded the modified htaccess for the first time i had that problem. after the replacement with the default everything was fine. but when i uploaded again the modified htaccess the problem appeared again
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Feb 23, 2005 7:36 am Reply with quote Back to top

Please posy the .htaccess here. Thanks.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 8:26 am Reply with quote Back to top

well here it is :

Code:
Options All -Indexes
DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# 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"
   AuthType Basic
   AuthUserFile /path/to/your/.staccess
</Files>

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Feb 23, 2005 8:40 am Reply with quote Back to top

You have to change this:
AuthUserFile /path/to/your/.staccess

To a real address. You only need to use this sample.htaccess IF you have to use CGIAuth . If not, delete it and use HTTPAuth.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 8:47 am Reply with quote Back to top

mmm.. my server uses apache. so you are telling me touse my original .htaccess and enable httpauth from sentinel admin ?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Feb 23, 2005 8:56 am Reply with quote Back to top

Yep. Apache is the only Web Server that uses .htaccess so that's a given Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Wed Feb 23, 2005 8:59 am Reply with quote Back to top

thanks for the help man!
View user's profile Send private message Visit poster's website
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Thu Feb 24, 2005 4:24 am Reply with quote Back to top

i've fixed that but i cannot edit my admins, in fact i cannot click that selection. the same is happening with httpauth
View user's profile Send private message Visit poster's website
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Thu Feb 24, 2005 9:40 am Reply with quote Back to top

the link admin.php?op=ABAuthList leads me to the default sentinel administration. how can i edit my admins ?
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Thu Feb 24, 2005 11:15 am Reply with quote Back to top

Try this in your includes/sentinel.php find: function is_god($admin) {
Look for:
Code:

    //if((strtolower($admrow['name']) == "god" OR $admrow['radminsuper'] == 1) AND $admrow['pwd']==$apwd) { return 1; }
    if(strtolower($admrow['name']) == "god" AND $admrow['pwd']==$apwd) { return 1; }

Change it to:
Code:

    if((strtolower($admrow['name']) == "god" OR $admrow['radminsuper'] == 1) AND $admrow['pwd']==$apwd) { return 1; }
    //if(strtolower($admrow['name']) == "god" AND $admrow['pwd']==$apwd) { return 1; }
View user's profile Send private message
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Fri Feb 25, 2005 8:54 am Reply with quote Back to top

it gives me an error :

Code:
Warning: main(defaults/config.php): failed to open stream: No such file or directory in /home/toyotatr/public_html/includes/sentinel.php on line 46

Fatal error: main(): Failed opening required 'defaults/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/toyotatr/public_html/includes/sentinel.php on line 46
View user's profile Send private message Visit poster's website
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Mon Feb 28, 2005 3:00 am Reply with quote Back to top

if i activate all protections will i face any problems? i mean without doing the above changes
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Mon Feb 28, 2005 8:01 am Reply with quote Back to top

Really its the most important of all the protections. So yes I'd keep working to find the problem.

Are you getting errors now?
View user's profile Send private message
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Mon Feb 28, 2005 8:23 am Reply with quote Back to top

always. in fact my site doesn't load to index.php i get only the error.
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Mon Feb 28, 2005 8:58 am Reply with quote Back to top

Ok first get the includes/sentinel.php out of the install package you downloaded and upload it over the one you edited. (I think there may be some error originating there)

Then lets see where you are after that again.
View user's profile Send private message
toyotaTRD
Hangin' Around


Joined: Feb 08, 2005
Posts: 35
Location: Greece

PostPosted: Mon Feb 28, 2005 9:11 am Reply with quote Back to top

without the changes ? i'll try
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Mon Feb 28, 2005 9:17 am Reply with quote Back to top

Yes we will treat the admin problem as a seperate issue. You are not the only one who is experiencing this so there must be some underlying problem with your admin table or function. The other person is using a fairly out of date phpnuke version. What version are you using?
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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum