Upgrading to Typo 5.3 (on Dreamhost) 50

Posted by Peter Burkholder Wed, 22 Apr 2009 02:20:00 GMT

Upgrading from Typo 4.0.3 to Typo 5.3 on Dreamhost Rail

I’ve been slacking lately on my blogging, which is a shame because I have much to write about. So much going on, no time to write about it. To help rectify that, I intend to start devoting Tuesday evenings to technology blogging, and to start things off, let’s upgrade this dumpy old Typo 4.0.3 to shiny new Typo 5.3.

I’m on Dreamhost, and they suck, but not bad enough for me to pick up and go elsewhere, so I guess that actually counts as good service. So here are one set of correct steps to upgrade a Typo 4.X installation to Typo 5.3. These are based on the Upgrading to Typo5.3 instructions, but differ at a few points for Dreamhost specifics, and to accomodate my own mistakes.

  • login to the Typo web interface and uninstall all your sidebars (see note below)
  • use mysqldump to dump the mysql database
    mysqldump -u typo -p -h mysql.typo.pburkholder.com typo > ~/backup/typo.mysql
  • use tar to copy the typo installation

tar -czf backup/typo.4.0.3.tgz ./typo.pburkholder.com/

  • install the ‘typo’ gem. I’ve been using ~/.rubygems as my local gem install, so export GEM_PATH=/usr/lib/ruby/gems:/home/pburkholder/.rubygems
    gem install -i ~/.rubygems typo
  • now do the install:

~/.rubygems/bin/typo install ~/typo.pburkholder.com

  • move some of my old files over (the upgrade instructions suggest copying over old themes, don’t)

mkdir ~/typo.pburkholder.com/public/files/
cp typo4.pburkholder.com/public/files/* typo.pburkholder.com/public/files/
cp typo4.pburkholder.com/config/database.yml typo.pburkholder.com/config/database.yml

  • run the database migration cd ~/typo.pburkholder.com
    rake RAILS_ENV=production db:migrate
    rake gems:refresh_specs
    (The last step may not be necessary, but worked for me)
  • your old theme won’t work. Period. Simplest solution I came up with was to symlink a 5.3 theme to my old theme name. E.g., I had ‘azure’ as my theme, and ‘scribbish’ came with 5.3, so:

cd ~/typo.pburkholder.com/themes; ln -s scribbish azure

  • start a single instance on port 3000 and see how things are on http://typo.pburkholder.com:3000

script/server -e production (Ctrl-C to kill)

  • set up Passenger. I had been running the blog using FastCGI back before Dreamhost had any real Rails support. Now they support Passenger, which is promising. I had been running Typo using FastCGI suppor and an .htaccess file that called dispatcher.fcgi, and it was a dog. So..
  • Go have fun!!

What if I skipped step 1?

I misread the upgrade instructions, and moved the sidebar code instead of ‘removing’ them from the web UI. My new Typo instance complained bitterly about missing sidebars. To remove the sidebars manually is just a matter of connecting the production MySQL database and seeing what’s in the sidebars, then removing them:


select * from sidebars\G
delete from sidebars where id>1;

Now I need to replace my old sidebar links, such as:

*My (out-of-date) resume *LinkedIn Profile

Comments

Leave a comment

  1. Peter Burkholder 13 minutes later:
    Typo 5.3 by default really screws up Textile markup, which is a huge bummer, but can't fix that tonight. Be warned!
  2. Peter Burkholder 2 days later:
    Turns out that the Textile issue is fixed in Admin, under user preferences. Choose the simple editor instead of the rich text editor.
  3. http://www.smithmonitoring.com/houston-security/ about 1 year later:
  4. smart battery charger about 1 year later:
    Instead, the degree at which you manage to broadcast information as speedily as possible. And I’m not referring to article distribution, but to the fluency of your writing.
  5. Houston home security about 1 year later:
    I finally decided to post a thought, and let me tell you this is another very strong post. I have been checking some of your earlier articles and have been viewing your web site often.
  6. Los Angeles Alarm Companies about 1 year later:
    I feel delighted to read such a good post, I would like to thank the Author for this marvelous efforts. This post is good in regards of both knowledge as well as information. Thanks for the post.
  7. Smith Security about 1 year later:
    amazing content, attractive enough, what else I can say, I will come over often.
  8. Atlanta alarm company about 1 year later:
    I agree with you . In it something is. Now all became clear, I thank for the help and I hope to see more such articles.
  9. krzyzowki about 1 year later:
    This is the greatest topic I have read today
  10. pozycjonowanie about 1 year later:
    I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.
  11. Home security Atlanta over 2 years later:
    Just came on this website, and actually observed numerous useful tips!
  12. Houston home security over 2 years later:
    I must explain, your publish will go to the nerve of the subject. Your pellucidity leaves me seeking to know much more. Just so you already, i will instantly seize your feed to keep up thus along with your web website. Sounding Out thank you is just my little way declaring bravo for a good resource. Take on my sweetest wishes for your next publication.
  13. custom essay papers over 2 years later:
    On the site met a couple of days ago and has already enjoy the detailed and very easy to understand information. Now I will regularly visit your wonderful site, especially topics such as databases and web.
  14. Dallas Alarm Companies over 2 years later:
    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
  15. Home Security San Antonio over 2 years later:
    I’m rather new to blogging and truly respect your written information. The publish has actually peaked my curiosity.
  16. Dallas Home Security over 2 years later:
    Hey this was a great post. I really liked what you had to say Now I know it and will tell to my friends about this blog
  17. Dallas Alarm Companies over 2 years later:
    I’m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i’m always look for people to check out my site. Please stop by and leave a comment sometime!
  18. Home Security Dallas over 2 years later:
    Hey this was a great post. I really liked what you had to say Now I know it and will tell to my friends about this blogHome Security Dallas
  19. Dallas Home Security over 2 years later:
    I have been meaning to write something like this on my website and you have given me an idea. Cheers.
  20. Home Alarm Companies over 2 years later:
    This is the perfect blog for anyone who wants to know about this topic. You know so much its almost hard to argue with you (not that I really would want&Ha Ha). You definitely put a new spin on a subject that's been written about for years. Great stuff, just great! Home Alarm Companies
  21. Fort Worth Alarm Companies over 2 years later:
    If family health is your number one concern, finding healthy family recipes and identifying new activities for you to enjoy can be the best way of ensuring your children stay fit and healthy.
  22. home security systems Columbus over 2 years later:
    came throguh an error when used port 3000...what would be the issue.
  23. That is very helpful. It provided me a few ideas and I'll be posting them on my web site eventually. I'm bookmarking your site and I'll be back again. Thank you again!
  24. Alarms Fort Worth TX over 2 years later:
    That is very helpful. It provided me a few ideas and I'll be posting them on my web site eventually. I'm bookmarking your site and I'll be back again. Thank you again!
  25. Alarms Fort Worth TX over 2 years later:
    That is very helpful. It provided me a few ideas and I'll be posting them on my web site eventually. I'm bookmarking your site and I'll be back again. Thank you again!
  26. Oh dear Blog God... I love this blog so much!
  27. Alarms San Antonio TX over 2 years later:
    Oh dear Blog God... I love this blog so much!
  28. Fort Worth Alarms over 2 years later:
    I'm impressed. You're truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. I'm saving this for future use.
  29. Denver home security over 2 years later:
    Thanks for the code detail..hope typo 5.3 works for me as well.
  30. Home Security Monitoring over 2 years later:
    I think that your perspective is deep, its just well thought out and really fantastic to see someone who knows how to put these thoughts down so well. Great job on this.
  31. San Antonio Alarm over 2 years later:
    jou jae akoei oaowe hae aeh aueiyr da, jahe sheu daowu sdi osders dafh akhf druiyu lodif dharu aklhjok .
  32. Fort Worth Alarms over 2 years later:
    I'm impressed. You're truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. I'm saving this for future use.
  33. new ark cleaning service over 2 years later:
    It was just a matter of time that I managed to come to read your article and got this vital information. You are really a good writer who needs to be followed curiously.
  34. discount shutters Atlanta over 2 years later:
    Typo 5.3 is a good upgraded version and have some good functions as compare to the 4.0.3.
  35. home cleaning over 2 years later:
    It was just a matter of time that I managed to come to read your article and got this vital information. You are really a good writer who needs to be followed curiously.
  36. Home Security over 2 years later:
    Dude.. I am not much into reading, but somehow I got to read lots of articles on your blog. Its amazing how interesting it is for me to visit you very often.
  37. Home Security over 2 years later:
    I'm impressed. You're truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. I'm saving this for future use.
  38. Alpharetta plantation shutters over 2 years later:
    Thanks for typo 5.3 update...Older version was also good and hope this is much better.
  39. average insurance over 2 years later:
    In order to be motivated you've got to reward ourselves on something that we achieve either small or big. Amazing indeed. thanks!
  40. Android app developer over 2 years later:
    It was very well authored and easy to understand. Unlike additional blogs I have read which are really not that good. I also found your posts very interesting.this was actually what i was looking for,and i am glad to came here. Android app developer
  41. home equity mortgage over 2 years later:
    A truly a great page. Thanks for sharing what you've got in here. thanks for sharing.
  42. Home Security over 2 years later:
    I think you’ve made some truly interesting points. Not too many people would actually think about this the way you just did. I’m really impressed that there’s so much about this subject that’s been uncovered and you did it so well, with so much class. Good one you, man! Home Security
  43. Boise carpet cleaners over 2 years later:
    We'd got to keep things moving for something better. Pretty much amazing indeed. thanks!
  44. California divorce lawyer over 2 years later:
    A little change creates a new level of excitement. Truly amazing indeed. thanks for the share.
  45. website outsourcing companies over 2 years later:
    Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck.
  46. Christmas Flowers usa over 2 years later:
    Great post! your website is fantastic! I just can’t stop reading this. Its so fresh, so filled with updates that I just didn’t know.
  47. travel cebu over 2 years later:
    Interesting. Thanks!
  48. Gayatri Microsystems over 2 years later:
    Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing.
  49. Home Security Houston over 2 years later:
    I want to show my admiration of your writing skill and ability to make audience, browse the whole thing to the end. I'd really like to read more of your blogs and to talk about my views with you. I'll be your frequent website visitor, that’s for sure.Home Security Houston
  50. orlando, florida home security over 2 years later:
    Typo new version is really awesome...some good features and additions which are pleasure to work on.
Comments