Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two linux boxes. one fedora core 2 and the other SuSE 9.3
Fedora has apache 2.0.51, Perl 5.8.3
SuSE has apache 2.0.53, and Perl 5.8.6
I set up an identical website on both systems, however, the fedora box fails to display the information correctly. I have tested this using firefox on linux/mac/xp and ie on mac/xp. They all produce the same issue.
When served off the fedora box the entire perl script is shown including commented lines.
When served off the SuSE box the page is displayed correctly.
Example: The output displayed by a web browser...
Server1
SuSE:
Hello, world!
Server2
Fedora:
#!/usr/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print <<"EOF";
Hello, world!
EOF
The actual script:
#!/usr/bin/perl
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print <<"EOF";
<HTML>
<HEAD>
<TITLE>Hello, world!</TITLE>
</HEAD>
<BODY>
<H1>Hello, world!</H1>
</BODY>
</HTML>
EOF
Is it possible that is an effect of a verbose setting? Could this be caused by apache or perl or is there a scripting error? Thanks for any info
this just looks like you are not actually interpretting the script through cgi at all. it's not verbose or anything, it's just showing the entire contents of the file. this will be down to your apache config, but i know very little about cgi execution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.