Reads only parts of the code instead of the program

When I moved my cgi files to another server, instead of running the program correctly, they just show part of the code. It looks like it is just reading html. Is there a server configuration which I need to tell the ISP about?
budginAsked:
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.

mgoergenCommented:
Which system do they use?

Perhaps you have just rename your scripts?
From xxx.cgi to xxx.pl or the other way round.

Are you sure that it allowed to use perl?
0
dougisCommented:
also make sure the perl declaration at the top of the script is still pointing to where perl is
ie #!/usr/local/bin/perl instead of #!/usr/bin/perl etc...
0
powerinternetCommented:

Typically web servers are setup to do one of two things:

i) Serve cgi's only from a "cgi-bin" directory.

ii) Serve cgi's only with a specific extension.

You are most likely falling into one of the two traps.  Depending on wether its an NT or UNIX system will depend on the what needs changing... Ensure your files are set to executable if you are on a UNIX system.... If you have not renamed your files then you most likely suffer from i) and need to contact your ISP.

But whatever,  the web server no longer accepts your file is a script and is simply processing the html.... it is 95% likely the server config. must change....
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
budginAuthor Commented:
It was (i). You mean you don't have to chmod on NT
0
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
Perl

From novice to tech pro — start learning today.