All right finally go this all working with aapache and the passenger mod. And it was a pain. But now im feeling nice so here is how you get it running on a centos-5.5 server that you have never altered.
yum groupinstall "Developer Tools" yum install zlib-devel readline-devel openssl-devel mysql mysql-devel mysql-server httpd-devel libxml2 libxml2-devel libxslt libxslt-devel ruby sudo /sbin/chkconfig mysqld on sudo /sbin/chkconfig httpd on sudo service mysqld start sudo service httpd start
unzip FreeImage3141.zip
cd FreeImage3141
make
sudo su -c "make install"
1. Find the appropriate release from rubyforge.org and download REE $ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz 2. Unpack and run installer remember the path to where you installed it $ tar xzvf enterprise-1.8.7-2010.02.tar.gz $ sudo ./ruby-enterprise-1.8.7-2010.02/installer 3. Update the path If you are installing REE for all users then add the following to the /etc/profile then add the path to the front of the search path $ sudo echo "export PATH=/path/to/REE:$PATH" >> /etc /profile If the installation is for a single user only then $ sudo echo "export PATH=/path/to/REE:$PATH" >> /home/user/.bashrc 4. Remove the old ruby, don't worry i know it feels weird so you don't have to because step 4, but if you want $ yum remove ruby
This is the one step that im not sure about but this is what I think I added by hand:
sudo gem install cucumber json webrat uuid timecop remail nokogiri image_science RubyInline passenger
follow the directions in the passenger script
git clone git://github.com/wagn/wagn.git
gem install rspec
cd wagn
git-submodule init
git-submodule update
cd config
cp sample_database.yml database.yml
cp sample_wagn.rb wagn.rb
# edit database.yml as needed
#edit the first line of the wagn.rb file to point to your website
cd ..
#I needed the follwoing steps you might not or you might need them later or you might know a better way.
#sudo chmod a+wr logs/ -R
#sudo chmod a+wr public/ -R
#sudo chmod a+wr tmp/ -R
rake gems:install
rake wagn:create
rake db:create:all
rake db:migrate RAILS_ENV=production
rake RAILS_ENV=production asset:packager:build_all
#finally you need to unmess up ruby_inline this is how i did it i would like to know the righter way if it exists
sudo echo "ENV['HOME'] = "~pathtowagn/wagn/tmp/deploy" if ENV['RAILS_ENV'] == 'production'" > ~pathtowagn/srv/wagn/config/initializers/ruby_inline.rb
#now just point the root directoty at public in apache and you should be good to go.
Good luck guys that all I know,
Booginga
even after all that sign in is impossible-->
Processing AccountController#signup (for 192.168.1.191 at 2010-08-17 14:35:50) [GET]
Rendering template within layouts/application
Rendering account/signup
ActionView::TemplateError (No public key specified.) on line #43 of app/views/account/signup.rhtml:
40: <div class="open-content">
41: <%= slot.render :edit %>
42: </div>
43: <%= slot.full_captcha %>
44: <div class="submit-tag">
45: <%= submit_tag 'Submit' %>
46: </div>
app/helpers/slot.rb:579:in `send'
app/helpers/slot.rb:579:in `method_missing'
app/helpers/slot.rb:579:in `method_missing'
app/helpers/slot.rb:854:in `full_captcha'
app/views/account/signup.rhtml:43:in `_run_rhtml_app47views47account47signup46rhtml'
app/views/account/signup.rhtml:23:in `_run_rhtml_app47views47account47signup46rhtml'
app/helpers/slot.rb:154:in `wrap'
app/views/account/signup.rhtml:9:in `_run_rhtml_app47views47account47signup46rhtml'
/opt/ree/lib/ruby/gems/1.8/gems/hoptoad_notifier-2.3.4/lib/hoptoad_notifier/rack.rb:27:in `call'
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
** [Hoptoad] Failure: Net::HTTPClientError
** [Hoptoad] Environment Info: [Ruby: 1.8.7] [Rails: 2.3.5] [Env: production]
** [Hoptoad] Response from Hoptoad:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>No project exists with the given API key.</error>
</errors>
Rendering /srv/wagn/public/500.html (500 Internal Server Error)
Help some one totaly stumped
This is quite easy ;) Comment out the hoptoad gem in config/wagn_initializer.rb. It seems like it is not configurable, yet.
--xenji (Not signed in).....Tue Mar 15 23:15:50 -0700 2011
Yeah, this has caught other people too, so very soon we will stop requiring hoptoad.
--John Abbe.....Tue Mar 15 23:36:37 -0700 2011