It is currently Fri Mar 29, 2024 12:40 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: SSI "exec" directive doesn't work
PostPosted: Fri Jun 27, 2008 4:38 pm 
Newbie
Newbie

Joined: Fri Jun 27, 2008 4:23 pm
Posts: 6
I can't get the SSI exec directive to work. I have the following line in my .shtml file:

<!--#exec cgi="/rb2.pl" -->

When I try to access the webpage that contains that line in the browser I get the following error:

[an error occurred while processing this directive]

My rb2.pl is a very short simple perl script. The script runs fine when run directly from the browser command line. The problem only occurs when using SSI to try to run the script. I tried it with other perl scripts and got the same error. Is the SSI exec command allowed here at freehostia? Are there limitations on using it? Also I have the free account for now.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 3:01 pm 
Newbie
Newbie

Joined: Sat Aug 11, 2007 5:30 pm
Posts: 20
guessin they have exec's turned off as it would be a major security risk

_________________
Ethical Hacker
http://encription.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 20, 2008 1:33 am 
Newbie
Newbie

Joined: Fri Jun 27, 2008 4:23 pm
Posts: 6
Well I found a workaround, I can "exec" in php. It works if I do the following:

<?php
exec("perl rb2.pl");
?>

Why would this be any less of a security risk than what I was trying to do before?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 21, 2008 10:33 am 
Site Admin

Joined: Sat May 31, 2008 1:56 am
Posts: 497
The reason for the problem could be some misconfiguration of your scripts that has caused the problem. I would advise you to use the PHP version of your script so you will not experience any problems with site.

_________________
Best Regards,
Miles
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 22, 2008 1:49 am 
Newbie
Newbie

Joined: Fri Jun 27, 2008 4:23 pm
Posts: 6
The script it simple, its just a test script:

#!/usr/bin/perl -w
print "hello";
exit;

As I said before it runs fine from the address bar directly and from php. It just wont run when called from shtml using the ssi exec directive. I think you folks have that directive disabled and your just not telling anyone.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 22, 2008 5:40 am 
Site Admin

Joined: Sat May 31, 2008 1:56 am
Posts: 497
I have consulted with our system administrators and it appears that the directive is disabled due to security reasons. I am afraid that you will not be able to use it via SSI but only via a custom PHP script.

_________________
Best Regards,
Miles
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011