Upgrading to Typo 5.3 (on Dreamhost) 50
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 to the Dreamhost panel and enable passenger support
- Disable FastCGI
- 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:
Comments
-
Typo 5.3 by default really screws up Textile markup, which is a huge bummer, but can't fix that tonight. Be warned!
-
Turns out that the Textile issue is fixed in Admin, under user preferences. Choose the simple editor instead of the rich text editor.
-
http://typo.influous.com/2009/05/11/hello-world
-
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.
-
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.
-
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.
-
amazing content, attractive enough, what else I can say, I will come over often.
-
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.
-
This is the greatest topic I have read today
-
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.
-
Just came on this website, and actually observed numerous useful tips!
-
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.
-
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.
-
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.
-
I’m rather new to blogging and truly respect your written information. The publish has actually peaked my curiosity.
-
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
-
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!
-
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
-
I have been meaning to write something like this on my website and you have given me an idea. Cheers.
-
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
-
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.
-
came throguh an error when used port 3000...what would be the issue.
-
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!
-
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!
-
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!
-
Oh dear Blog God... I love this blog so much!
-
Oh dear Blog God... I love this blog so much!
-
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.
-
Thanks for the code detail..hope typo 5.3 works for me as well.
-
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.
-
jou jae akoei oaowe hae aeh aueiyr da, jahe sheu daowu sdi osders dafh akhf druiyu lodif dharu aklhjok .
-
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.
-
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.
-
Typo 5.3 is a good upgraded version and have some good functions as compare to the 4.0.3.
-
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.
-
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.
-
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.
-
Thanks for typo 5.3 update...Older version was also good and hope this is much better.
-
In order to be motivated you've got to reward ourselves on something that we achieve either small or big. Amazing indeed. thanks!
-
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
-
A truly a great page. Thanks for sharing what you've got in here. thanks for sharing.
-
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
-
We'd got to keep things moving for something better. Pretty much amazing indeed. thanks!
-
A little change creates a new level of excitement. Truly amazing indeed. thanks for the share.
-
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.
-
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.
-
Interesting. Thanks!
-
Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing.
-
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
-
Typo new version is really awesome...some good features and additions which are pleasure to work on.