[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

1and1.com - nph-proxy.cgi question

Posted on 2004-11-13
13
Medium Priority
?
1,648 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:manunited
  • 6
  • 3
  • 2
  • +1
12 Comments
 

Expert Comment

by:JeffSergeant
ID: 12573393
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
 
LVL 16

Expert Comment

by:Sohel Rana
ID: 12573615
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
 

Author Comment

by:manunited
ID: 12574187
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 16

Expert Comment

by:Sohel Rana
ID: 12574238
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
 

Author Comment

by:manunited
ID: 12574245
Alright, will try that and update you
0
 

Author Comment

by:manunited
ID: 12574282
Nope, that didn't work either.
0
 

Author Comment

by:manunited
ID: 12574406
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
 

Author Comment

by:manunited
ID: 12608404
Anyone?
0
 

Expert Comment

by:JeffSergeant
ID: 12614169
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
 

Expert Comment

by:JeffSergeant
ID: 12614193
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
 

Author Comment

by:manunited
ID: 12765443
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12938700
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question