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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Script Output in text? (w3c validator)

Status
Not open for further replies.

Kriekie

Technical User
Nov 21, 2004
10
ZA
Hi

I've just installed the w3c validator on my server (and triple checked the installation instructions). But when the form is submitted to the "check" form, the entire perl script is outputed to the screen instead of executed.

Anyone know how I should fix this?

Thanks!
 
What webserver? Did you overwrite your configuration file for the webserver?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
To cause the "check" form (script) to execute rather than get echoed you need to either change where it lives (e.g. move it to cgi-bin folder) or alter your webserver config file to see this file (and maybe folder) as (an) executable script(s).


Trojan.
 
Hi,

Yes:

I've created a virtualhost in the apache httpd.conf ::

<VirtualHost ***IP Adress***>
ServerAlias w3c.myserverhere.com ServerAdmin email@w3c.myserverhere.com
DocumentRoot /usr/local/validator/htdocs/
ServerName w3c.myserverhere.com
BytesLog domlogs/w3c.myserverhere.com-bytes_log
ScriptAlias /w3c-validator/check /usr/local/validator/htdocs/check
ScriptAliasMatch /w3c-validator/feedback(\.html)? /usr/local/validator/htdocs/sendfeedback.pl
Alias /w3c-validator/ /usr/local/validator/htdocs/
<Directory /usr/local/validator/htdocs/>
Options IncludesNOEXEC Indexes MultiViews
AllowOverride None
AddHandler server-parsed .html
AddCharset utf-8 .html
</Directory>

<IfModule mod_headers.c>
<Directory /usr/local/validator/htdocs/images/>
Header set Cache-Control "max-age=604800"
</Directory>
</IfModule>
</VirtualHost>

I also restarted apache after replacing the file...

Thanks
 
Probably better answered on the Apache forum since this is an apache problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top