Perl/Python/Ruby in your account
Now you have the opportunity to use full Perl/Python/Ruby in your account!
You can run it in httpdocs too, just create .htaccess file and put in:
AddHandler cgi-script .cgi .pl .py .rb
or in cgi-bin dir (right click on your filetree and ‘Toggle System files’ )
After you do that, you will be able to create scripts with these sha-bangs
for perl:
#!/usr/bin/perl
for ruby:
#!/usr/bin/ruby
for python
#!/usr/bin/python
Don’t forget to set execute permissions on your script
Happy coding!
—
Aleksey Mykhailov
SysAdmin
Mar 12, 2010 @ 16:29:49
Great news! :)
Does Rails still work? If so, could you share a little bit more info on how it is set up? Because I really want to get Sinatra running..
Mar 12, 2010 @ 16:40:55
Unfortunately , no :( we are working on it… It doesn’t work with fcgi dispatcher for some reason.
and about cgi .. I am still on it… but you can try and let me know! Thx!
Aug 18, 2010 @ 03:21:45
Hi,
it seems a little confusing… i created a file called test.rb in my cgi-bin folder, and when i try to access it it says ‘ lscgid: execve():/var/www/vhosts/sppericat.kodingen.com/cgi-bin/test.rb: Exec format error ‘
Anything I’m doing wrong ?
Cheers,
Stephane.
Aug 26, 2010 @ 05:27:02
Stéphane, me too, I’ve this message :(
Apr 01, 2011 @ 14:03:56
You should give execute permission to the file
Apr 16, 2011 @ 21:18:31
no rails.
this is for php hackers, not programmers.
Switching to Google App Engine.
Apr 23, 2011 @ 13:32:59
I’m trying to run Python script, but I still get “Internal Server Error”.
May 15, 2011 @ 12:46:51
give me link to your python script
May 15, 2011 @ 16:04:53
I got the same error as J. A., here is the link
http://mordigante.kodingen.com/test/python/test.html
N.B. I have added the line
#!/usr/bin/python
to the original script to remove the one reported by Stéfane P. Péricat.
May 15, 2011 @ 16:29:19
Solved. There was a wrong indentation at line 113 (continue statement) of your original script httpdocs/test/python/test.py.
May 23, 2011 @ 04:13:59
How we can install Perl CPAN modules?
May 27, 2011 @ 14:32:53
how can I use tomcat? or jetty?
Jun 08, 2011 @ 01:03:26
My python script isn’t working either. I placed the .htaccess file in the test/python folder and I get a server error like the others. The url is http://odezealotc.kodingen.com/test/python/index.py
Jun 08, 2011 @ 01:05:43
To clarify my earlier post, I did apply chmod 755 to the python file and made sure to include #!/usr/bin/python at the beginning of the script. Should also change the permission on the python folder?
Jun 08, 2011 @ 08:12:31
Hello!
you have to add this line to your script
print(“Content-type: text/htmlnn”)
so full code should be like this:
#!/usr/bin/python
print(“Content-type: text/htmlnn”)
print(“Hello world!”)
Jun 08, 2011 @ 09:00:53
Thank you, Aleksey! The page works perfectly now.
When I initially followed your example I had removed the newline characters (‘n’). Removing the newline characters caused the server error I mentioned yesterday to persist. Seems that there needs to be at least 1 newline for it to function; lesson learned.
Thanks again, Aleksey
Jun 22, 2011 @ 20:53:58
Handy tip:
Add a “DirectoryIndex” line to your .htaccess file so that you don’t have to put the filename in the url to get to the home page.
For example, I have index.py and .htaccess in the httpdocs directory. This is the contents of the .htaccess file:
DirectoryIndex index.py
AddHandler cgi-script .py
Now my index.py file renders the home page without having to type “/index.py” at the end of the url.
Jul 01, 2011 @ 09:37:32
Any news about rails?
Jul 12, 2011 @ 01:04:07
Any update about RubyOnRails?
Aug 19, 2011 @ 20:10:56
awesomeee!!
Sep 20, 2011 @ 12:45:48
My python script says that I have an internal server error when trying to run it.
The URL is: http://axtscz.kodingen.com/python.py
Nov 02, 2011 @ 17:41:26
Here is my script it will not work keeps giving a internal server error 500
http://axtscz.kodingen.com/sound.py
Any Suggestions
Nov 24, 2011 @ 09:28:32
Too school for school. Been daydreaming about something like this since ’97. Great to see it in motion. I’m sure the work around for Rails will read it’s head soon. Красиво сделано. You’ve made the old weird grandpa with the goatee and black t-shirt in the last cubicle very happy.
Nov 25, 2011 @ 20:47:13
Just getting starting learning perl, but it will not run on site. I get the internal server error. The htaccess file has the appropriate line, it just won’t run the code.
Nov 29, 2011 @ 08:56:46
Need help how to run django
Nov 30, 2011 @ 03:39:50
Jason
>Just getting starting learning perl, but it will not run on site. I get the internal server error. The htaccess file has the appropriate line, it just won’t run the code.
can you show your code?
Nov 30, 2011 @ 03:42:32
> Need help how to run django
unfortunately django is not available in the current kodingen version
Dec 21, 2011 @ 23:26:28
use warnings;
print “Hi Mom.nThis is my second program.n”;
Dec 21, 2011 @ 23:28:20
Also, I’ve got to ask; what is up with kodingen in firefox? The file headers race back and forth in the bar at the top of the editor screen when you try to click on them to move between files. I’m using the latest version of ff on a mac. Very nerve-wracking.
Jan 17, 2012 @ 07:02:36
I’m new to rails and lacking some info on how to use rails in Kodingen…
Jan 31, 2012 @ 06:27:03
could we have a screencast for setting up django and say some related libraries like PIL SOLR South ??
Mar 09, 2012 @ 17:45:09
lscgid: execve():/var/www/vhosts/alhex.kodingen.com/httpdocs/prueba.py: Permission denied
I have a problem with python; help me.