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?
manunitedAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JeffSergeantCommented:
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...
0
Sohel RanaCommented:
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
0
manunitedAuthor Commented:
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...
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Sohel RanaCommented:
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
0
manunitedAuthor Commented:
Alright, will try that and update you
0
manunitedAuthor Commented:
Nope, that didn't work either.
0
manunitedAuthor Commented:
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.
0
manunitedAuthor Commented:
Anyone?
0
JeffSergeantCommented:
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...
0
JeffSergeantCommented:
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...
0
manunitedAuthor Commented:
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.
0
moduloCommented:
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.