Gossamer Forum
Home : Products : Gossamer Links : Discussions :

problem moving links

Quote Reply
problem moving links
Hi, I havemoved my links installation to another server.
When I launch admin/admin.cgi
I have this message:

Error
Premature end of script headers: admin.cgi

I have tried this simple .cgi file

#!/usr/bin/perl
use strict;
use lib '/srv/www/cgi-bin/caseus/admin';
use Links qw/:objects/;
print "Content-type: text/html\n\n";
print "hello!!!!!!!";

Which first lines are identical to admin.cgi and I havethe same error.
If i cancel this line
use Links qw/:objects/;
There are no error.

Do I have a configuration problem? Is PERL settings not right?

Thanks for your answers
Quote Reply
Re: [vercyb] problem moving links In reply to
Did you make sure that you updated the admin paths in the use lib and Links::init() lines?

Adrian
Quote Reply
Re: [vercyb] problem moving links In reply to
Try running perl with -w option and see what you get.

#!/usr/bin/perl -w

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.
Quote Reply
Re: [rocco] problem moving links In reply to
In Reply To:
Try running perl with -w option and see what you get.

#!/usr/bin/perl -w

I get the same error!
Quote Reply
Re: [brewt] problem moving links In reply to
In Reply To:
Did you make sure that you updated the admin paths in the use lib and Links::init() lines?
use lib '/srv/www/cgi-bin/caseus/admin';
is the actual path of the admin folder
Is it right?

in admin.cgi I have
Links::init('/srv/www/cgi-bin/caseus/admin');
which is the actual path of the admin folder.
Is it right?

How should I update this line?
use Links qw/:objects/;
Quote Reply
Re: [vercyb] problem moving links In reply to
Is Links.pm located at /srv/www/cgi-bin/caseus/admin/Links.pm?

Adrian
Quote Reply
Re: [brewt] problem moving links In reply to
In Reply To:
Is Links.pm located at /srv/www/cgi-bin/caseus/admin/Links.pm?

Yes!!
Quote Reply
Re: [vercyb] problem moving links In reply to
Can you send me admin panel and shell access to take a look?

Adrian
Quote Reply
Re: [vercyb] problem moving links In reply to
Hi,

This is probably caused by your cgi file saved as 'pc' file or your perl is not at /usr/bin

If you can ssh/telnet, try this command first
#perl -p -i -e 's/\r*//g' *.cgi

Then

#chmod 755 *.cgi
#chmod 755 cgi-bin cgi-bin/admin

If the error is still, try this,

#whereis perl to see where is perl, then change the first line to that value.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] problem moving links In reply to
In Reply To:
Hi,

This is probably caused by your cgi file saved as 'pc' file or your perl is not at /usr/bin

If you can ssh/telnet, try this command first
#perl -p -i -e 's/\r*//g' *.cgi

Then

#chmod 755 *.cgi
#chmod 755 cgi-bin cgi-bin/admin

If the error is still, try this,

----------

I have tried this. I have still an error.

Path of perl is right asthis script works fine:

#!/usr/bin/perl
use strict;
use lib '/srv/www/cgi-bin/caseus/admin';

print "Content-type: text/html\n\n";
print "hello";






#whereis perl to see where is perl, then change the first line to that value.

Cheers,
Quote Reply
Re: [vercyb] problem moving links In reply to
Can you view the error_log to see what happen?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [brewt] problem moving links In reply to
For anyone who's wondering, the problem turned out to be that some files weren't transferred properly during the move.

Adrian