Installing Mephisto 0.8 on Rails 2
0
Finally I'm done with installing and running mephisto for my personal website. However, it was not that easy, so I thought documenting it may help me in the future and may save someone else's time. Actually, a lot of time.
Well, if you don't know, mephisto is a simple, elegant and free Ruby on Rails blogging system that can run fantastic websites. Unfortunately, due to the lack of documentation, especially after mephisto releasing mephisto 0.8, which supports Rails 2, it took me a long time to get it installed and running. The good news is that I will show you how I did it. So, to the tutorial...
- 1.First of all, you should know that mephisto 0.8 has some issues with Ruby 1.8.7. You will have to downgrade to Ruby 1.8.6 if already upgraded. Actually, Rails itself recommends Ruby 1.8.6.
2.To download mephisto 0.8, I tried github, but it did not install successfully. Finally, I found a working version at RailsPlayground. So, go to your hosting shell and download it: 3.Now, extract the file you downloaded:
unzip mephisto-0.8-railsplayground.zipThen, rename the folder:
mv mephisto-0.8 mephisto4.Log in to your hosting control panel and create a database, say mephisto_db, and a database user, say mephisto_dbuser. Then, make sure to assign the user to the database with all privileges.
5.Change the file named database.example.yml to database.yml: 6.Edit the config/database.yml and update the production database definition to match the database and the database user you created:
vi mephisto/config/database.yml
production:
adapter: mysql
database: mephisto_db
username: mephisto_dbuser
password: yourpassword
host: localhost
7.Update your application with the latest Rails:
cd mephisto
rake rails:update
8.Create mephisto's database tables:
rake db:bootstrap RAILS_ENV=production9.To install mephisto on your main domain, yoursite.com for example, you will need to create a symbolic link from your public_html direcotry to mephisto’s public directory. Remember to backup your public_html first:
mv public_html public_html_backup
ln -s ~/mephisto/public ~/public_html
Congratulations! You can access your blog using this URL (the slash at the end is a MUST): yoursite.com/mephisto/
And the admin site is:
yoursite.com/mephisto/admin/
10.To install mephisto on a subdomain, blog.yoursite.com for example, just login to your hosting control panel and create a new subdomain that points to mephisto/public. Now, you can access your blog using this URL (the slash at the end is a MUST):
blog.yoursite.com/
And the admin site is:
blog.yoursite.com/admin/
11.To access the admin site, use the username:admin and password:test
Now, click the "Create new article" at the top to create your first article. You may get an error of Invalid encoding.
Don't worry, I've made the search for you. The solution is to edit the vendor/plugins/permalink_fu/lib/permalink_fu.rb as follows:
s = Iconv.iconv(translation_to, translation_from, str).to_s
PermalinkFu.translation_to = 'ascii//ignore//translit'
Define INLINEDIR or HOME in your environment and try againThe solution is to edit the mephisto/config/initializers/custom.rb to add this:
ASSET_IMAGE_PROCESSOR = :noneNow, the third trial should work.
Congratulations! You've just created your first article on mephisto. Now, you should change your password. And I recommend you also change your login name as it will appear as the author name for your articles.
Next time, I may talk about some useful plugins that you can install on your mephisto.
Written by:
Hatem Mahmoud (www.expressionlab.com)
Post a Comment
eSpace podcast Prodcast
Archive
- September 2011
- April 2011
- March 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- April 2007
- March 2007
Latest Comments
- SpectraMind Commented on Egypt Wins UK's National Outsourcing Association Award
- Rofaida Awad Commented on Go Egypt Go!
- Different Mike Commented on Only idiots change their iPhone root password!
- Mike Commented on Only idiots change their iPhone root password!
- smile Commented on Only idiots change their iPhone root password!

