View Single Post
  #4  
Old 10th September 2012, 11:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

Quote:
I dont know if is same issue i got, but the extra features arent working on debian 6 too.
It is unlikely that its related as debian and opensuse are very different.

Regarding your tests, perl ruby and python are working fine here on a debian perfect setup, I downloaded the original vmware image from howtoforge without any modifications which is the exact copy & paste install of the published guide.

Reagarding your tests:

1) Perl: Did you put the perl code into the cgi-bin directory as required and accessed it trough cgi-bin?

2) Thats "ruby on rails" code for a rails application server and nothing to be executed in a apache webserver.

3) Do you have mod_pythoin installed and did the file had the correct .py ending?

How to test perl, ruby and python on a ispconfig server:

Here are the instructions on how to test perl, python and ruby:

Perl: Ensure that cgi is enabled in the site settings, then create a file "hello.pl in the cgi-bin folder of the website with this content:

Code:
#!/usr/bin/perl -w

     # Tell perl to send a html header.
     # So your browser gets the output
     # rather then <stdout>(command line
     # on the server.)
print "Content-type: text/html\n\n";

     # print your basic html tags.
     # and the content of them.
print "<html><head><title>Hello World!! </title></head>\n";
print "<body><h1>Hello world</h1></body></html>\n";
then run:

chmod +x hellp.pl
chown web1:client0 hello.pl

(change user and group to match the user and group of the website) on the file and enter:

http://www.yourdomain.com/cgi-bin/hello.pl

in the browser. You will see the output "Hello World!"

Ruby: Create a file "hello.rbx" in the web folder with this content:

Code:
puts "Hello world"
set correct user and permissions:

chmod +x hellp.rbx
chown web1:client0 hello.rbx

and open the url http://www.yourdomain.com/hello.rbx in your browser and you will see the test "Hello World" in the browser.

Python:

Python support was not implemented in ispconfig at the time the debian 6 setup was written, so it is included in newer guides like the ubuntu ones only. To enable python on a debian 6 server run:

install libapache2-mod-python
/etc/init.d/apache2 restart

To test it, create a file "hello py" in the web folder of the site

Code:
def index(req):
  return "Hello World";
and open the url http://www.yourdomain.com/hello.py in your browser and you will see the test "Hello World" in the browser.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote