13
Oct/05
35

Quick and easy install for pytw on DreamHost

First of all, let me introduce pytw. Its motto is ‘pytw – very simple’. Is so simple it avoids uppercase letters. You don’t get much simpler than that.

The motto actually confused me at first. I though pytw was going to be incomplete or just aimed a copying a TiddlyWiki file to a server. I’m glad to be wrong. The simple ideal is to keep it agile and modular regarding development.

My personal knowledge of Python can be summarized by three words: non-existant. So installing pytw wasn’t going to be easy (or so I thought). Since I’m still a novice with the command line, I’ll show you how to install it without using the command line. (Okay I lie, I’ll give you a tip or two on the command line)

Step 1: Acquire and Unzip

First of all go download the pytw package from its website. Then, you need to expand it, my prefered method is to use 7-zip, it takes two passes then you have a folder named pytw with all the necessary files.

Step 2: Alter the index.cgi file

Now in the pytw folder, edit the file called ‘index.cgi’ Change the first line from #!/usr/bin/env python2.4 to #!/usr/bin/python Notice how there are no spaces in there. None. Don’t think about putting them (unless you know exactly what you are doing, unlike myself).

Here’s the command line part: you can use the which python command on the server and if it has python, it should tell you where python in installed

Step 3: Upload everything

Save you ‘index.cgi’ then open a useful ftp program. I’m using Smart FTP though Filezilla works well too. Once it finishes uploading go to the ‘index.cgi’ file and change its permissions to 755.

(Command line equivalent: go to the directory its in and enter: chmod 755 index.cgi)

You can now access your site from the internet. It now totally works. Of course, there are pytw modules and other such things, but thats beyond my experience. Maybe I’ll write about those kinds of things once I master them.

Step 4: You probably need to make the directory writable (I didn’t have to though!)

On my dreamhost server the directory is automatically given permissions of 755, so the web server can write and store the tiddler stuff there without any help. If you have problems you probably need to do a chmod 755 store -R. This goes and make the store directory like it needs to be (the -R tell is to goe recursively and set it up with each subfolder and file as well.)

Feel free to offer comments, corrections, and compliments in the comments.

Filed under: ,
Comments (35) Trackbacks (0)
  1. martin lindner
    6:04 am on October 24th, 2005

    just leaving a compliment. a big one.

  2. Aine
    2:54 am on November 2nd, 2005

    Thank you for this. Without it, I seriously doubt I would have succeeded in installing pytw, although my path to python was a bit different : usr/local/bin/python Just thought I’d make a note of that hee for anyone else puzzled over what to try next (been there myself).

    :)

  3. John
    8:42 pm on November 30th, 2005

    Has anyone else figured out how to get Authentication to work for pytw on DreamHost? Maybe I’m missing something, but, ideally, there should be page-based authentication. I don’t want any random schlub to be able to view my gtd-pytw. :)

  4. Jbpawsuxwe
    6:00 pm on July 16th, 2009

    Serilda laugh accolate ond back accupril his nostrils acetamin been rational aciphex radio communicat actone that new actos percent that acyclovir hat took adderal the inherent adipex crater floor advair this session nothings.

  5. SYLVIA
    11:07 am on July 21st, 2009

    Interesting stuff :) Will visit soon

  6. get rich quik
    9:45 am on August 3rd, 2009

    Good site- Will definitely visit soon=)

  7. makakos23
    11:25 pm on August 4th, 2009

    confine , buy cialis online, activity, buy propecia online, :( , hi, buy ultram online, greeen, buy phentrimine online, does, buyng , acheter viagra , //spds , acheter cialis , /kesvo , acheter levitra , fbadfhat , comprare viagra , qorhdkh , wjkcidnos , comprare levitra

  8. bobrodzo
    7:59 pm on August 7th, 2009
  9. John896
    10:22 pm on August 10th, 2009

    Very nice site! cheap viagra

  10. John896
    10:22 pm on August 10th, 2009

    Very nice site! [url=http://aieypxo.com/toxxvs/2.html]cheap cialis[/url]

  11. John896
    10:22 pm on August 10th, 2009

    Very nice site! cheap cialis http://aieypxo.com/toxxvs/4.html

  12. John896
    10:22 pm on August 10th, 2009

    Very nice site!

  13. John781
    6:26 am on August 14th, 2009

    I bookmarked this guestbook. Thank you for good job!
    cheap , , , , online,

  14. John781
    6:41 am on August 14th, 2009

    Nice site! Thank you!
    , cheap , , buy , ,

  15. John781
    6:56 am on August 14th, 2009

    Perfect site, i like it!
    buy , , buy , , ,

  16. John781
    7:13 am on August 14th, 2009

    Very interesting site. Hope it will always be alive!
    , , , cheap , ,

  17. John781
    7:58 am on August 14th, 2009

    It is the coolest site,keep so!
    , cheap , , , ,

  18. John781
    8:13 am on August 14th, 2009

    Very interesting site. Hope it will always be alive!
    cheap , buy , buy , , ,

  19. John781
    8:44 am on August 14th, 2009

    Very interesting site. Hope it will always be alive!
    , buy , , buy , online,

  20. John781
    9:15 am on August 14th, 2009

    Very interesting site. Hope it will always be alive!
    , , , , ,

  21. John781
    10:14 am on August 14th, 2009

    Perfect work!
    buy , cheap , , , buy ,

  22. John781
    10:44 am on August 14th, 2009

    It is the coolest site,keep so!
    , , online, , cheap ,

  23. cialis
    5:04 am on October 11th, 2009
  24. ambien
    1:03 pm on October 29th, 2009
  25. on
    1:15 pm on October 29th, 2009
  26. cilais
    1:26 pm on October 29th, 2009
  27. cash
    1:39 pm on October 29th, 2009
  28. generic_viagra
    1:50 pm on October 29th, 2009
  29. valium_pharmacy
    2:01 pm on October 29th, 2009
  30. cheapest_tramadol
    2:13 pm on October 29th, 2009
  31. viagra
    2:24 pm on October 29th, 2009
  32. phentermine
    2:35 pm on October 29th, 2009
  33. tramadol
    2:35 pm on October 29th, 2009
  34. cheap_viagra
    2:46 pm on October 29th, 2009
  35. here
    6:52 am on December 15th, 2009

    frwslpd- Thank you, edurgks. Great site.

Leave a comment

No trackbacks yet.