Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

- - - - -

Python installed


  • This topic is locked This topic is locked
28 replies to this topic

#21 Jan J

Jan J

    Advanced Member

  • VlexoFree Support
  • 960 posts

Posted 27 May 2008 - 07:42 AM

lsproc said:

If you would rather have your python scripts ending in .py, you could change the cgi-hander to .py instead of .cgi :)

Thank you ! I forgot about that :D

I also have some more information you may want to add for your tutorial :D

First instead of python you can also use perl
 #!/usr/local/bin/perl
print "Content-type: text/html

Hello World! In Perl";

or ruby
 #!/usr/bin/ruby
print "Content-type: text/htmlnn";
print ?Ruby is working fine!";

Regards,
Jan J

Ad Bot


      #22 tyeth

      tyeth

        Newbie

      • Pre-Members
      • 8 posts

      Posted 28 May 2008 - 05:38 AM

      just for confirmation, I equally had these issues, as i had a folder with my scripts in the root folder [/public_html/] and when i moved it to cgi-bin [resulting in /public_html/cgi-bin/] and set permissions of folder and files to 755 it worked straight away, but when moved back to root folder, it hasnt worked, so I'll try the .htaccess and see what happens :)

      -on a side note: whats the deal with using passwords on websites as u say its not allowed, but what if registration is free?

      #23 tyeth

      tyeth

        Newbie

      • Pre-Members
      • 8 posts

      Posted 28 May 2008 - 05:56 AM

      tyeth said:

      just for confirmation, I equally had these issues, as i had a folder with my scripts in the root folder [/public_html/] and when i moved it to cgi-bin [resulting in /public_html/cgi-bin/] and set permissions of folder and files to 755 it worked straight away, but when moved back to root folder, it hasnt worked, so I'll try the .htaccess and see what happens :)

      -on a side note: whats the deal with using passwords on websites as u say its not allowed, but what if registration is free?

      AddHandler cgi-script .cgi .py

      that in .htaccess and the permissions of files to 755 solved it all :D

      Thanks everyone,

      Tye.

      #24 Jonathan J

      Jonathan J

        Advanced Member

      • Pre-Members
      • 3,212 posts

      Posted 28 May 2008 - 06:04 AM

      Good job there Tye! :)


      ;) Can you moo like a cow? ;)

      MOOOOO!

      Posted Image

      Current project: Armour.ws, ImageMoo.com Vlexo.com


      #25 maurobio

      maurobio

        Newbie

      • Pre-Members
      • 8 posts

      Posted 29 May 2008 - 05:58 PM

      Dear ALL,

      As promised, here is the quick "tutorial" on running Python scripts in Vlexo I have sketched. Use it at will. The suggestions of other users may be added to it for completion.

      With best  regards,

      Attached Files

      • Attached File  CGI.txt   2.25K   15 downloads


      #26 Jonathan J

      Jonathan J

        Advanced Member

      • Pre-Members
      • 3,212 posts

      Posted 30 May 2008 - 02:49 AM

      maurobio said:

      Dear ALL,

      As promised, here is the quick "tutorial" on running Python scripts in Vlexo I have sketched. Use it at will. The suggestions of other users may be added to it for completion.

      With best  regards,

      Good job!

      Maybe post it in the tutorials forum? :)


      ;) Can you moo like a cow? ;)

      MOOOOO!

      Posted Image

      Current project: Armour.ws, ImageMoo.com Vlexo.com


      #27 Jan J

      Jan J

        Advanced Member

      • VlexoFree Support
      • 960 posts

      Posted 01 June 2008 - 11:33 AM

      yes, I like it as well, please post it to the tutorial section
      Regards,
      Jan J

      #28 maurobio

      maurobio

        Newbie

      • Pre-Members
      • 8 posts

      Posted 04 June 2008 - 07:12 PM

      Dear ALL,

      As requested, I just posted the tutorial in the "Tutorials" thread of the forum (I just haven't figured out that there is one, sorry).

      Hope this helps!

      With best regards,

      Mauro Cavalcanti, from Rio de Janeiro, Brazil

      #29 Jan J

      Jan J

        Advanced Member

      • VlexoFree Support
      • 960 posts

      Posted 05 June 2008 - 08:13 AM

      Thank you !

      So I guess there are no further questions, therefore I suggest to close this thread !

      Regrades Snoop1990
      Regards,
      Jan J




      0 user(s) are reading this topic

      0 members, 0 guests, 0 anonymous users