Mephisto 0.8 (Drax) Quick Install
If you are not a programmer, I recommend you use a different blogging engine, because even after the install is a success. You’ll still need to edit the template of your choice to get it just right. I am still not done editing this template. Installing Mephisto 0.8 (Drax) is not exactly the easiest thing to do. However, I have managed to do it twice in the last month. So here is the process to save hackers out there some time. There are a couple of requirements that you will need before proceeding with the install.
- Rails 2.0.2
- tzinfo (I have 0.3.9)
- At least rake 0.8.1
Installing Rails 2.0.2
This should also install rake for you. Just in case I have the command below.
sudo gem install rails -v=2.0.2
Installing tzinfo
sudo gem install tzinfo
Installing Rake
sudo gem install rake
From here change directory to the home of your rail applications.
Now run the command:
sudo wget http://github.com/technoweenie/mephisto/tarball/master.tar.gz sudo tar -xvf technoweenie-mephisto-90e2cc253d94e2e544bc8b21f361c7360c1e9baa.tar.gz sudo mv technoweenie-mephisto-90e2cc253d94e2e544bc8b21f361c7360c1e9baa blog
The last command simply renames the directory to something more readable. Here I renamed it to “blog”. This will be the mephisto root directory. OK! You now have all the things to need to start the installation. From here on is where I ran into all the trouble. Not to worry, I ironed out all the kinks so you should be OK!
Installation in 8 easy steps
- Create a database named mephisto (or one of your choosing).If you are running mysql, you can do this at the command prompt. This assumes your localhost root does not have a password.
- Copy config/database.example.yml to config/database.yml
Just copy and past the following command from the config directory. - Edit database.yml and set your database credentials.
- This step is important. Edit config/environment.rb
and append the following line. This step will save you trouble when running the rake db:bootstrap command two steps down. - Time to update your boot.rb file. From your mephisto root directory, run the following command.
- OK! Time for the big moment! Are you ready? It’s time to bootstrap your database. Run the following command from your mephisto root directory.
- If you got to this step without troubles, then consider this a big win! The next step is to deploy mephisto, I recommend mod_rails.
- Last step! Login to your administration at http://domain.com/admin with the username: admin and password: test
mysql -u root mysql> create database mephisto;
sudo mv database.example.yml database.yml
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
rake rails:update
rake db:bootstrap RAILS_ENV=production
That is all there is to it. I hope everything went OK for you. Any questions or comments are welcomed.
