XFileSharing Pro - api.cgi error on adding new file server

Message
Author
Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

api.cgi error on adding new file server

#1 Postby Nick » Aug 15, 2008 11:24 pm

Hello,

It is me again! :)

New issue for me:

server specs -> apache 2.2 on Windows server 2008, mysql and Perl

I've set up a fileserver and I have 2 errors:

1)Upon executing install_fs.cgi I have these permissions even though the server allows full access to both files and folders

Code: Select all

XFSConfig.pm : 0666 : OK
logs.txt : 0666 : OK
api.cgi : 0666 : ERROR: should be 0755
*:/*********/***** : 0777 : OK
uploads : 0777 : OK
upload_status.cgi : 0666 : ERROR: should be 0755
temp : 0777 : OK
dl.cgi : 0666 : ERROR: should be 0755
upload.cgi : 0666 : ERROR: should be 0755
It seems all folders are viewed as 777 and all files as 666.

2) Upon adding the new server I've got this

Code: Select all

File Server tests:
api.cgi: ERROR
upload.cgi: OK
upload_status.cgi: OK
htdocs URL accessibility: OK
I know I've kindda abused you Pilgrim but I need your help one more time please :)

Thanks a lot,

Nick

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Aug 18, 2008 6:16 am

Hmmm...plz check error_log first.
Then try to comment these lines in api.cgi:

Code: Select all

die"Error1" unless $ENV{REQUEST_METHOD} eq 'POST';
die"Error2" unless $ENV{HTTP_USER_AGENT} eq 'XFS-FSServer';

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#3 Postby Nick » Aug 18, 2008 7:21 am

No errors in the log.

If I'm inserting the same fs key and dl key that I have on the main server into the XFSConfig.pm on the file server then it I have api.cgi OK but I've got a different error saying that the fs_key field is not empty.

I've commented out the two suggested lines but the result is the same:

api.cgi ERROR

Nick

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Aug 18, 2008 8:03 am

When adding FileServer fs_key should be empty, that's correct. Read INSTALL.txt for details.

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#5 Postby Nick » Aug 18, 2008 8:35 am

I did and followed all steps. I've told you about the fs_key just to let you know that I'm not getting the api.cgi error if the XFSConfig.pm has a key in it on the file server side.

Any idea on what I should do?

Thank you,

Nick

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#6 Postby PilgrimX182 » Aug 18, 2008 8:51 am

If you still can't add new fileserver, you can PM me FTP access to Main server and I'll add some more debug.