LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-06-2005, 12:42 PM   #1
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Rep: Reputation: 30
using perl (verbose?)


Hi,

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

-Me
 
Old 09-06-2005, 01:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-06-2005, 01:18 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It just looks like the perl script isn't being parsed. Check your webserver settings to make sure it is being executed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dd verbose mode? sausagejohnson Linux - General 10 06-20-2017 05:15 AM
How to turn off verbose on shutdown Khepri Linux - Newbie 4 08-11-2005 06:08 AM
how to shutdow n with verbose information ginda Fedora 1 07-19-2005 02:43 PM
making mpg321 more verbose? mikshaw Linux - Software 2 02-03-2004 12:45 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration