Link to home
Start Free TrialLog in
Avatar of manunited
manunited

asked on

1and1.com - nph-proxy.cgi question

I am trying to incorporate that file (nph-proxy.cgi) to my site hosted at 1and1.com (can't go wrong with 3 free years:)).  I have set permissions to chmod 755 but I still keep getting the server error 500.  I know the syntax isn't bad on the cgi file since it was downloaded straight from the owners site.

Can anyone help me out here?  I really can't figure out what is wrong.  Perhaps it may be the file but I don't know perl so it might as well be arabic to me.

FYI, I have run the file through the CGI monitor with no parameters (as noted by developer) and I get the following result + CGI Check succeeded, which i guess is a good thing and which should also mean that the thing should run with no error.

Through the perl syntax checker, the result is - cgi: File has no correct script header (should be #! /usr/bin/perl) (no output)

Advice?
Avatar of JeffSergeant
JeffSergeant

Check that the file starts with #!/usr/bin/perl (or the location of your perl interpreter) it's common for script writers to use a dummy line such as
"#!/your/perl/location" which they expect you to change.

Jeff...
Hi:

Here you will find all the possible reasons for server error 500 in .cgi / perl file :

http://www.raingod.com/raingod/resources/Programming/Perl/Notes/CGIDebugging.html

rsdn
Avatar of manunited

ASKER

The script does start with the following - #!/usr/local/bin/perl

I also tried installing the file from here http://www.xav.com/cgi-sys/cgiwrap/xav/install.cgi?p=cgiproxy and it didn't wrk through that site either.

No idea where it has gone wrong...
When you upload the script to the server through ftp, did you choose the transfer type ASCII? If not, then try to transfer the file again to your server in ASCII mode. Let's see whether it fix the problem or not?

rsdn
Alright, will try that and update you
Nope, that didn't work either.
Well i got rid of the perl syntax error and both the CGI monitor and Perl syntax checker work...but I still get the error.
Anyone?
What package do you have with 1and1 ?

Have you run any cg's before from it, it seems that only certain packages allow user-created CGIs.

Jeff...
If you can access the linux command line, see if the script runs from there,  './nph-proxy.cgi' if this executes as expected it means that there is a problem with the server configuration, in which case, unless it's a dedicated server, you'll need to contact 1&1.


Jeff...
There was a problem with 1and1 itself.

And those fellas at 1and1 fixed the problem...works like a charm now.

Thanks for your help guys.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial