We are going to use Subversion to install radiant. At this present time it is at version 0.6.4, so be sure to check that you are using the latest version when you come to follow this tutorial.
Open up your command line client and type at your root:
[~]# svn co http://dev.radiantcms.org/svn/radiant/tags/rel_0-6-4
Replace yourapp with the name / path of your choice.
[~]# ~/radiant/radiant/bin/radiant ~/yourapp/
Alternatively, you can install the Radient GEM without the use of SVN.
1. # cd ~/yourapp
2. # gem install radiant
3. # radiant --database [database adapter] [path] -- Example: 'radiant --database mysql ~/yourapp'
4. Where `database adapter` is the name of the name of the database driver that you are using (“mysql”, “postgresql”, “sqlite3” or “sqlserver”) and `path` is the path to a directory where you would like to create your new project. If the directory doesn’t exist, the `radiant` command will create it for you.
Back up your public_html and symlink to yourapp/public
[~]# mv ~/public_html ~/public_html_backup
[~]# ln -s ~/yourapp/public ~/public_html
Using your ftp client locate config/environment.rb and uncomment the below line:
RAILS[ENV] ||= 'production'
Set up your mysql databases in cPanel and change config/dabase.yml
cp config/database.mysql.yml config/database.yml
Back in your command line, use chmod to alter the rights of dispatch.fcgi
[~]# cd yourapp
[~/yourapp]# chmod 755 public/dispatch.fcgi
Now check the shebang line of the dispatchers (refer this link )
Also your .htaccess file (refer this link )
Finally, run the run the database bootstrap rake task:
[~]# rake production db:bootstrap
You can now direct your browser to your website.com/admin and change the default login details as they are currently set to:
Name : Administrator
Username : admin
Password : radiant