PDA

View Full Version : permissions problem?


ffurtado
09-24-2002, 10:35 AM
For some reason, I can not access my script for my .htacess Password Manager

http://www.example.org/cgi-bin/lockedarea/admin/home.cgi

It was uploaded in ascii and has 755 for permission.
I should be prompted for user id and pw but I get Browser Internal Server error.

I understand you do not provide help for scripts etc. but I thought this might be something simple that I have overlooked.

Background:
I had installed Locked Area Lite Password Manager and it worked fine.
I uninstalled all files for that version installed their Pro version.
All folders, files appear to have been created and the permissions look fine to me.
Other .cgi scripts within my /lockedarea directory work.

But, I can't call http://www.example.org/cgi-bin/lockedarea/admin/home.cgi

Any suggestions at all would be appreciated. Thank you.
Fred

Edited by Request - Bob

ffurtado
09-24-2002, 10:46 AM
I ran my Server Script Debugger on /admin/hom.cgi and this is the result:

Action: Result:
Opening File: Passed
Checking for zero file size: Passed
Checking for ASCII Upload: Passed
Checking for Interpretor Path (/usr/bin/perl): Passed
Checking File Permissions: Passed

Checking for Perl Module "config/details.cfg": Failed: Not Found Checking for Perl Module "$homepath/config/database.cfg": Failed: Not Found Checking for Perl Module "$homepath/config/fields.cfg": Failed: Not Found Checking for Perl Module "$homepath/config/version.cfg": Failed: Not Found Checking for Perl Module "$homepath/config/layout.cfg": Failed: Not Found Checking for Perl Module "$homepath/mail/suspend.pl": Failed: Not Found Checking for Perl Module "$homepath/mail/unsuspend.pl": Failed: Not Found Checking for Perl Module "$homepath/mail/signup_declined.pl": Failed: Not Found Checking for Perl Module "$homepath/mail/signup_complete.pl": Failed: Not Found ???

I checked anf found that these files are all present. Some have 777 permissions, others 755.

During install I specified the path to the /lockedarea folder as requested and that is where these files *are* actually located.

I am really at a loss to explain this!

skolnick
09-24-2002, 11:41 AM
It looks like $homepath is not being set properly to *find* the files that are there. The config subdirectory also appears not to be directly below the directory that the script is in (required, I infer, from the first error).

Check the configuration section of the script again, and be sure you have the difference between the path (/big/dom/xdomain/whatever) and the URL (www.domain.com/whatever) clear.

ffurtado
09-24-2002, 02:49 PM
Yes, I think you are correct. Something may be wrong with the authors' LockedArea script.

The home.cgi file "require" statement appears to be pointing to:

/config/details.cfg
instead of
/admin/config/details.cfg
where paths and things are stored.

I though that just calling:
/cgi-bin/lockedarea/admin/home.cgi
would look down and find the details.cfg in
/cgi-bin/lockedarea/admin/config

But I guess not.

I have been waiting days for a reply to my help request from LockedArea support people! I can not move on with my new web site untill I get this password manager script working.

Thanks again for your assistance.
Fred

ffurtado
09-24-2002, 08:18 PM
Support people asked me if my Host server had LWP installed.
If not, they suggested re-install without selecting LWP
????

In the home.cgi script it states:

use CGI qw(:standard);
$query = new CGI;
use LWP::Simple;
===============

Thanks,
Fred


TO: LockedArea Support
SUBJECT: Installation Problem

1. Installed the Lite version of LockedArea and it worked well.
2. Purchased the Pro version and I can not get it to work at all.
3. Removed all files associated with Lite version and ran the setup.cgi for the pro version
4. Call to admin/home.cgi will not work (Internal Server Error in Browser)

Here are the files as installed on my Host Server:

Index of: /big/dom/xdomain/cgi-bin/lockedarea
Filename: Size: Modified: Attributes:
admin - 09-24-2002 rwxr-xr-x (755)
activate.cgi 26.5 KB 09-24-2002 rwxr-xr-x (755)
announcements.cgi 1.9 KB 09-24-2002 rwxr-xr-x (755)
details.cgi 7.6 KB 09-24-2002 rwxr-xr-x (755)
locked.cgi 29.8 KB 09-24-2002 rwxr-xr-x (755)
login.cgi 3.3 KB 09-24-2002 rwxr-xr-x (755)
manage.cgi 49 KB 09-24-2002 rwxr-xr-x (755)
redirect.cgi 1.5 KB 09-24-2002 rwxr-xr-x (755)
setup.cgi 309.6 KB 09-24-2002 rw-r--r-- (644)


Index of: /big/dom/xdomain/cgi-bin/lockedarea/admin
Filename: Size: Modified: Attributes:
backup - 09-24-2002 rwxr-xr-x (755)
config - 09-24-2002 rwxr-xr-x (755)
dbs - 09-24-2002 rwxr-xr-x (755)
include - 09-24-2002 rwxr-xr-x (755)
logs - 09-24-2002 rwxr-xr-x (755)
mail - 09-24-2002 rwxr-xr-x (755)
.htaccess 1 KB 09-24-2002 rw-r--r-- (644)
.htpasswd 1 KB 09-24-2002 rw-r--r-- (644)
home.cgi 137.6 KB 09-24-2002 rwxr-xr-x (755)
nph-backupdbs.cgi 3 KB 09-24-2002 rwxr-xr-x (755)
nph-backuplogs.cgi 2.2 KB 09-24-2002 rwxr-xr-x (755)
search.cgi 4.8 KB 09-24-2002 rwxr-xr-x (755)

Index of: /big/dom/xdomain/cgi-bin/lockedarea/admin/config
Filename: Size: Modified: Attributes:
database.cfg 1.1 KB 09-24-2002 rwxrwxrwx (777)
details.cfg 1 KB 09-24-2002 rwxrwxrwx (777)
fields.cfg 1 KB 09-24-2002 rwxrwxrwx (777)
layout.cfg 1 KB 09-24-2002 rwxrwxrwx (777)
version.cfg 1 KB 09-24-2002 rwxrwxrwx (777)


Contents of /lockedarea/admin/details.cfg
$homepath = '/big/dom/xdomain/cgi-bin/lockedarea/admin';
$username = 'ffurtado';
$sitename = 'Refcom Members Area';
$siteurl = 'http://www.yourdomain.com/cgi-bin';
$membersurl = 'www.yourdomain.com/members';
$emailurl = 'no';
$mailprog = '/usr/sbin/sendmail';
$adminmail = 'your@email.address';
$adminname = 'Administrator';
$signup_validation = 'No';
$random_password_generation = 'Yes';
$signup_status = 'Online';
$new_signup_email_notification = 'Yes';
$ibill_check = 'no';

Contents of home.cgi:
#!/usr/bin/perl
#######################################################
# Locked Area Pro Version 2.0 Stable by Web ScriptsUK
# http://www.locked-area.com/
# Originally Released: 1st August 2000 (v1.0)
# Latest Release: 22nd October 2001(v2.0)
#######################################################

>>> Snipped <<<<<

#######################################################
use CGI qw(:standard);
$query = new CGI;
use LWP::Simple;
require "/config/details.cfg";
require "$homepath/config/database.cfg";
require "$homepath/config/fields.cfg";
require "$homepath/config/version.cfg";
require "$homepath/config/layout.cfg";
print "Content-type: text/html\n\n";


CALLING:
http://www.example.org/cgi-bin/lockedarea/admin/home.cgi

Does not work.
Internal Server error in browser.

It appears that home.cgi can not find:
require "/config/details.cfg";
require "$homepath

I ran my Server Script Debugger on /admin/home.cgi and this is the result:

Action: Result:
Opening File: Passed
Checking for zero file size: Passed
Checking for ASCII Upload: Passed
Checking for Interpretor Path (/usr/bin/perl): Passed
Checking File Permissions: Passed
Checking for Perl Module "config/details.cfg": Failed: Not Found
Checking for Perl Module "$homepath/config/database.cfg": Failed: Not Found
Checking for Perl Module "$homepath/config/fields.cfg": Failed: Not Found
Checking for Perl Module "$homepath/config/version.cfg": Failed: Not Found
Checking for Perl Module "$homepath/config/layout.cfg": Failed: Not Found
Checking for Perl Module "$homepath/mail/suspend.pl": Failed: Not Found
Checking for Perl Module "$homepath/mail/unsuspend.pl": Failed: Not Found
Checking for Perl Module "$homepath/mail/signup_declined.pl": Failed: Not Found
Checking for Perl Module "$homepath/mail/signup_complete.pl": Failed: Not Found

???
These files are all present as shown above.

Please help.


Edited by Request - Bob

sheila
09-24-2002, 09:09 PM
LWP is installed on all the servers. You can always check which Perl modules are installed on your server, by visiting your CNC and clicking the "Server Info" link, and then scrolling down the screen until you find the "Perl Modules" link. Click on that and it will list all the Perl modules installed on your server.

I would suggest looking at the CGI error logs to see what error messages are being generated by the script. This should be more useful than the "500 Internal Server Error" which could have a number of different causes. You can view your CGI error logs by clicking on the Troubleshooting link in your CNC.

Hope this helps,

Sheila

ffurtado
03-07-2003, 09:27 AM
Bob,
Will you please remove reference to my domain in these messages as well?
Thank you.
Fred

Bob
03-07-2003, 09:31 AM
I think I got em all :D

Enjoy,
Bob

Rich
03-07-2003, 12:39 PM
require "/config/details.cfg";

This is not correct. This would need to be something like /big/dom/xdomain/...