Installing Radiant on shared host

Hi,
I have follwed the steps from the Radiant setup on HostingRails.com

http://www.hostingrails.com/forums/wiki_thread/18

I have created the database
edited database.yml
edited environment.rb
changed rights for dispactch.fcgi to 755
.htaccess uses .fcgi
and changed the symlinks.

I ran the command:
[~]# ruby script/setup_database production
and everything runs smoothly.No errors thrown and it says its created a
admin user with password as radiant.

Now when i try to access radiant, i get no error.My browser window is
blank.
I tried playing around with .htaccess by changing the dispatch.fcgi
entry to make sure it was using it.Now the problem could be somwhere
with the dispatch.fcgi
maybe i have got the #!/usr/bin/env ruby wrong …
any idea how i could verify?

Also, how do i restart the server? (it says i need to restart the server
when i change environment.rb or database.yml)

Any clue where i could be missing the point…

the problem i have above is that my browser window has a blank display
with no errors thrown.

where can i check the logs?

Gautam wrote:

the problem i have above is that my browser window has a blank display
with no errors thrown.

where can i check the logs?

Logs are in the standard logs directory in the root of your Radiant
install.

You might also check the apache logs. Your hosting provider would be
able to tell you how you can access those.


John L.
http://wiseheartdesign.com

I have checked the radiant logs.nothing in there.

Does it seem i might have missed something, as i am not getting any
errors.
When i fire up the link to my /radiant/public, it does take some time to
process but the browser window is blank.

Thanks,
Gautam

what does your database.yml look like?

what does your database.yml look like?
database.yml =>
production:
adapter: mysql
database: gautam_radgeekprod
username: gautam_geek
password: abcde
socket: /tmp/mysql.sock

$script/setup_database production
runs fine and i get no errors for that.so i do not suspect a database
problem.

environment.rb => ENV[‘RAILS_ENV’] ||= ‘production’
.htaccess => points to dispatch.fcgi
dispatch.fcgi => #!/usr/bin/env ruby

These are the key areas(as i have went thru prev posts).Error could be
due to one of these.

1.How to i know that the app has started? How can i stop and restart it?
2.When i submit the link to my radiant/public folder, it does seem to
process my request.But nothing is displayed on the browser :frowning:

Have been going thru all files and ruby code.
Its a great learning experence :slight_smile:

On IE, its giving a “page cannot be displayed error”

ok which option did you select in the setup database? if it is option 1
(someone correct me if Im wrong) but there will be no page data to show
so
it could potentially be doing what youre experiencing.

is the error happening when you go to yourwebsite.com or
Fastest Web Hosting Services | Buy High Quality Hosting?

lemme complete the scenario a little more:
my website:www.gautam.com
addon domain:geek.gautam.com redirected to /public_html/geek/public
radiant is installed at /public_html/geek/
I have edited:
database.yml (for production)
environment.rb (for production)
dispatch.fcgi (made no change here)
.htaccess (made no change here)

when i keep an index.html in /public_html/geek/public.It works fine.
when i remove that, i get just a blank page(Firefox) or page cannot be
displayed(IE).

Thanks,
Gautam

Josh Stockwell wrote:

ok which option did you select in the setup database? if it is option 1
(someone correct me if Im wrong) but there will be no page data to show
so
it could potentially be doing what youre experiencing.
I chose option 3, the Full Weblog.

is the error happening when you go to yourwebsite.com or
Fastest Web Hosting Services | Buy High Quality Hosting?
The error is one i go to both www.mywebsite.com and
mywebsite.com is available for purchase - Sedo.com
I had installed Typo following such steps before, so i cant seem to
figure out why this aint workin.

Thanks for the help.
I am also available on the #radiant channel on irc.freenode.net

to start with…#radiantcms rocks!
its pretty active, and i got tons of help!

the problem was that in database.yml, i had removed entries for
development and test and kept only production.

I added entries for all 3: development,test and production and filled
them with the same entry as above.
This followed by:

ruby script/setup_database production

ruby script/server

This succesfully started my webbrick server on 3000.

So now my site is up and running.

Thanks,
Gautam

Congratulations, Gautam. What you ran into are typical problems when
setting up any Rails application. Unfortunately, without a little
experience and knowing the tricks, it can seem impossible. Nowadays, I
don’t even bat an eye when deploying one, but I’ve deployed many of
them, so I know all the pitfalls. Best of luck to you on your website!

Sean C.
seancribbs.com

Thanks to some help on #radiantcms
i fired

ruby script/server OR # ruby script/server production and i got this

error log:

gautamsa@server [~/public_html/gforgeek]# ruby script/server
=> Booting WEBrick…
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:194:in
establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified) from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:185:inestablish_connection’
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:182:in
initialize_database' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:84:inprocess’
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in
run' from ./script/../config/../config/environment.rb:15 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:52 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’
from script/server:3

The error seems to be as the development database is not configured.But
in environment.rb i has uncommented the line:
ENV[‘RAILS_ENV’] ||= ‘production’

Also, my databsae.yml has no entry for development, as i am setting this
up in poduction mode.

Thanks.

If you have shell access to your server, you can just ssh into it and
move
away the public_html (or www) directory and link radiant/public to
public_html (or www).

2006/9/17, Gautam [email protected]:

Thanks :slight_smile:
There were many time when my friends were askin me to quit trying this
and go for a simpler PHP CMS setup, but i knew that you have to get it
done once and then it starts becomin easier (hopefully)

But the battle is far from over.
Though Radiant is workin fine on Webrick(port 3000) but i want it to be
working on the default webserver of my host(apache 1.3)

The CMS is running on Webrick means that all settings are fine, except
those of server.
I just need to figure it out how to get it working at the default
webserver.

Any tips?

Thanks,
Gautam

Here are the following steps I did …

My host had given me a mongrel port of 4021 … so went info config/
lighttpd.conf and changed 3000 -> 4021

Switched the symlink (like noted below) … and that was pretty much
it …

Im running off RailsPlayground w/ 1 mongrel instance. Everything
looks fine, just looking how/if to port Typo entries to Radiant and
if Im suppose to be able to modify CSS directly from the admin tool …

  • Jon

I usually have the same problem when trying to run my apps on apache
fcgi
the first time. I don’t understand why it happens, but you have to
reload
often the page in the first 5 minutes or so, and then it works.

There has to be a reason for this but I don’t know it and I’m happy it
works
:slight_smile:

2006/9/17, Gautam [email protected]:

@ Giovanni I.:
Yes i tried that.But doesnt work.All i get is a blank window on my
browser.It seems to be processing something and then displays nothing.
Where as when i run webrick it runs fine.so problem seems to be with
setting up the apache-fastcgi.But i cud b wrong…

Jon B. wrote:

Here are the following steps I did …

My host had given me a mongrel port of 4021 … so went info config/
lighttpd.conf and changed 3000 -> 4021

Switched the symlink (like noted below) … and that was pretty much
it …

Im running off RailsPlayground w/ 1 mongrel instance. Everything
looks fine, just looking how/if to port Typo entries to Radiant and
if Im suppose to be able to modify CSS directly from the admin tool …

  • Jon

My host has given me apache-fastcgi.And as radiant seems to be workin
well on webrick, i wonder why it is not with apache.

Thanks,
Gautam

On 9/17/06, Gautam [email protected] wrote:

There were many time when my friends were askin me to quit trying this
and go for a simpler PHP CMS setup, but i knew that you have to get it
done once and then it starts becomin easier (hopefully)

OMG, you have friends who care about what CMS you use? Lucky guy!

Erik M.

I sense an oxymoron in “simpler PHP CMS”. Most PHP CMS systems I’ve
used or
evalutated were a bloody mess. Radiant has been extremely refreshing,
and
fun, thanks to John’s beautiful code and the power of Ruby.

Sean C.
seancribbs.com