Welcome to WebmasterWorld Guest from 22.214.171.124
I have searched around the forums but cannot find an answer to my mod_perl troubles.
Basically i finally got mod_perl working where it will interpret the script BUT when i view the script on this server via a browser i get a complete dump of the page's HTML source code.
All perl code is interpreted correctly, but it's like the page's header is not being sent over correctly?
On a different server that has mod_perl working correctly, i can access the exact same script/source code and the page renders correctly.
Any pointers on where i can look?
This is an ubuntu/apache2 setup.
PS: Here is the start of the script im running if it helps?
print "Content-type: text/html\n\n";
###Find where we are
$pwd = join('',<PWD>);
$pwd =~ s/\n//gi;
### Find the system date
open(DT, 'date "+DATE: %Y-%m-%d%n<br>TIME: %H:%M:%S"¦');
$dt = join('', <DT>);
$dt =~ s/\n//gi;
print "<HEAD><TITLE>Advanced Whereami.cgi</TITLE></HEAD>\n";
print "<body bgcolor='#CC3399' text='#000000'>\n";
[edited by: phranque at 8:17 am (utc) on Oct. 6, 2008]
[edit reason] disabled smileys ;) [/edit]