View Single Post
  #3  
Old 10th September 2012, 11:34
Wisdown Wisdown is offline
Member
 
Join Date: Aug 2012
Posts: 82
Thanks: 7
Thanked 2 Times in 2 Posts
Default

I dont know if is same issue i got, but the extra features arent working on debian 6 too.
Tried on 2 setups:

1 - 1 Dedicated Server with all stuff
2 - Multiserver Scenario

I tried test using this:

Perl (save as test.pl)
Quote:
$url = "http://$ENV{SERVER_NAME}$ENV{URL}";
$ip = "$ENV{REMOTE_ADDR}";
print <<ENDOFTEXT;
HTTP/1.0 200 OK
Content-Type: text/html

<HTML>
<HEAD><TITLE>Perl Funcionando!</TITLE></HEAD>
<BODY>
<H4>TESTE!</H4>
<P>Tudo OK <a href="$url">$url</a></P>
<P>IP da Conexao $ip</P>
<H5>;-p!</H5>
</BODY>
</HTML>
ENDOFTEXT
exit(0);
Ruby (save as test.rb)
Quote:
class TestController < ApplicationController
def index
render :text=>"The index action"
end
def about
render :text=>"Testing app v1.0"
end
end
Python (save as test.py)
Quote:
print ('Content-type: text/html\r\n\r\n' )

print ('<HTML><HEAD><TITLE>Python Sample CGI</TITLE></HEAD>')
print ('<BODY>')
print ("<H1>Python 3 Funcionando</H1>")

print ('</BODY></html>')
Reading around the internet, seems is like ZendFramework, need have an shared space for all users grab the libraries and get this working, but not sure, i stoped reasearch about this for focus in other problems.
Get this features will be my last researchs, i will try get the tomcat up too, but not sure if gonna get all working like i wish.

Last edited by Wisdown; 10th September 2012 at 12:32.
Reply With Quote