Comparing version 2 and version 1
You've signed up for aPrimeHosting"PrimeHosting":http://www.primehosting.co.uk/ Personal Shared account and paypal'd your first year's subscription, and just got the email with subject "Prime Hosting Limited :: Your Login Information" wherein all your login details are listed. You need to email support@primehosting.co.uk and and ask them to install Radiant as a GEM and enable shell access. When support email you back to confirm this has been done,Now switch to a web browser (dont close the session as we'll come back to that in a moment) and visit http://your.server.ip.address/cpanel and login with the usual details. Click 'MySQL Databases', 3rd row and 3rd colomn, and in the first section, 'Current Databases', enter to the right of "New Database:" radiantdev and click 'Create Database' Then click 'Go Back' and repeat for two more databases: radianttest radiantlive Now in the 2nd section, 'Current Users', add the user rdb with a simple password that will only be used to access these databases. Then click 'Go Back' and in the 3rd section, 'Add Users To Your Databases', click 'Add User to Database'. Then click 'Go back' and on the drop down menu to the right of 'Database:' select 'username_radiantlive' and click 'Add User to Database' Then click 'Go back' and on the drop down menu to the right of 'Database:' select 'username_radianttest' and click 'Add User to Database' Now go back to the command prompt and:radiant --unpack radiantsiteNow edit this file:cd radiantsite/ cp config/database.mysql.yml config/database.ymlTo be as follows, replaceing username with your username and yourpassword with the mysql password you created a moment ago:nano config/database.ymlNow we can initialise the database:development: adapter: mysql database: username_radiantdev username: username_rdb password: yourpassword socket: /tmp/mysql.sock test: adapter: mysql database: username_radianttest username: username_rdb password: yourpassword socket: /tmp/mysql.sock production: adapter: mysql database: username_radiantlive username: username_rdb password: yourpassword socket: /tmp/mysql.sockAt the end of this you will be asked to select a database template. You can pick any of these, but 3 is best if you've never used Radiant before as the Styled Blog shows off its features and best practices. Now we link Radiant to Apache with these three commands:script/setup_database productionFinally, we add some directives to Radiant's .htaccess that are specific to PrimeHosting:cd ~ rm -rf public_html ln -s radiant/public public_htmlAdd these two lines to the top to make sure UTF8 XHTML validates:nano public_html/.htaccessAnd Radiant is now installed. The cost of it being that easy is that you'll have to wait up to an hour for PrimeHosting to kickstart the Rails process for you. When its started, you can see the ruby process by:# PrimeHosting AddDefaultCharset UTF-8Which will show output similar to:ps aux | grep lesb | grep rubyusername 16333 0.3 1.2 29740 25268 ? S 15:13 0:01 ruby dispatch.fcgi username 21834 0.0 0.0 3492 480 ? S+ 15:20 0:00 grep ruby
