Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All I see is the source code...

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
OK, this is probably a really basic error...

I am trying to install twiki.

When I try to run testenv:


all i see is the source code (the beginning of which is shown below).

What am I doing wrong?

Code:
GENERAL SERVER INFORMATION
Operating system 	Linux
Service Status 	Click to View
Kernel version 	2.6.12-1.1378_FC3
Machine Type 	i686
Apache version 	1.3.34 (Unix)
PERL version 	5.8.5
Path to PERL 	/usr/bin/perl
Path to sendmail 	/usr/sbin/sendmail
Installed Perl Modules 	Click to View
PHP version 	4.4.1
MySQL version 	4.1.14-standard
cPanel Build 	10.8.1-CURRENT 69
Theme 	cPanel X v2.5.0
Documentation 	Click to View


Code:
#!/usr/bin/perl -w
#
# TWiki Collaboration Platform, [URL unfurl="true"]http://TWiki.org/[/URL]
#
# Copyright (C) 2000-2004 Peter Thoeny, peter@thoeny.com
#
# For licensing info read license.txt file in the TWiki root.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details, published at
# [URL unfurl="true"]http://www.gnu.org/copyleft/gpl.html[/URL]
#
# DESCRIPTION: Test utility to see if CGI is running and enabled
# for the bin directory, and check a variety of TWiki, Perl and RCS
# setup.

# NOTE: Testenv should always run on older TWiki versions, as far as
# possible - so any dependency on TWiki modules should be carefully 
# handled and error checked.  If a newer feature or subroutine is not
# there, it's OK to fail silently and not do the associated tests.
# This is more painful to code, but it means that testenv can be downloaded
# from CVS and used on older TWiki versions to diagnose problems.

package TWiki;

ETCETERA  >>>>>>>>>>>>>>
 
Sounds like you have it in the wrong place or you have not configured your server to handle CGI properly.
The webserver should process the CGI and that should generate your html output. In your case it does not see the code as CGI, merely as text which it is outputting.
Read the docs and see if your script is running from the wrong place. If not, start a thread in the forum that relates to your webserver to get help configuring it for CGI.


Trojan.
 
your server must be told what folders you are running your cgi based code out of , and of course you must call you code from within that folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top