Hi all,<br>i've been trying to get typo running on my webhost (asmallorange), but not having much luck.<br><br>i can run standard rails apps that have their public directory linked into ~/www, so i know thats working.<br>i've linked the public dir from ~/typo into ~/www, and installed the database schema.
<br><br>trying to view the app in a browser returns a 400 error. i've also tried the following:<br><br>running dispatch.fcgi:<br>[code]<br>Status: 500 Internal Server Error<br>Content-Type: text/html<br><br>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 
4.01 Transitional//EN&quot;<br>&nbsp;&nbsp; &quot;<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&quot;&gt;<br>&lt;html&gt;<br>&lt;body&gt;<br>&nbsp; &lt;h1&gt;Application error (Apache)&lt;/h1&gt;
<br>&nbsp; &lt;p&gt;Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br>[/code]<br><br>also tried running &quot;rake migrate&quot; in the typo directory:
<br>[code]<br>rake aborted!<br>Mysql::Error: #HY000Can't find file: 'schema_info.MYI' (errno: 2): SELECT version FROM schema_info<br><br>(See full trace by running task with --trace)<br>[/code]<br><br>and finally, some output from the typo logs
<br>[code]<br># Logfile created on Tue Aug 15 02:46:50 EDT 2006 by logger.rb/1.5.2.7<br>allow_concurrency=true<br>Defined connections: {&quot;ActiveRecord::Base&quot;=&gt;#&lt;ActiveRecord::Base::ConnectionSpecification:0x2a96ec3768 @config={:password=&gt;&quot;passy&quot;, :database=&gt;&quot;mydatabase&quot;, :host=&gt;&quot;localhost&quot;, :username=&gt;&quot;myusername&quot;, :adapter=&gt;&quot;mysql&quot;}, @adapter_method=&quot;mysql_connection&quot;&gt;}
<br>Active connections: {}<br>Active connection name: ActiveRecord::Base<br>You have a nil object when you didn't expect it!<br>The error occured while evaluating nil.downcase<br>/usr/local/lib/ruby/gems/1.8/gems/actionpack-
1.12.5/lib/action_controller/request.rb:18:in `method'<br>/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:933:in `log_processing'<br>/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:407:in `process_without_filters'
<br>/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
<br>/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'<br>/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request'<br>/usr/local/lib/ruby/gems/1.8/gems/rails-
1.1.6/lib/fcgi_handler.rb:54:in `process!'<br>/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:606:in `each_cgi'<br>/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in `process!'<br>/usr/local/lib/ruby/gems/1.8/gems/rails-
1.1.6/lib/fcgi_handler.rb:23:in `process!'<br>public/dispatch.fcgi:24<br>allow_concurrency=true<br>Defined connections: {&quot;ActiveRecord::Base&quot;=&gt;#&lt;ActiveRecord::Base::ConnectionSpecification:0x2a96f771a0 @config={:password=&gt;&quot;passy&quot;, :database=&gt;&quot;mydatabase&quot;, :host=&gt;&quot;localhost&quot;, :adapter=&gt;&quot;mysql&quot;, :username=&gt;&quot;myusername&quot;}, @adapter_method=&quot;mysql_connection&quot;&gt;}
<br>Active connections: {}<br>Active connection name: ActiveRecord::Base<br>&nbsp; SQL (0.000000)&nbsp;&nbsp; Mysql::Error: #42S01Table 'schema_info' already exists: CREATE TABLE schema_info (version int(11))<br>&nbsp; SQL (0.000000)&nbsp;&nbsp; Mysql::Error: #42S01Table 'schema_info' already exists: CREATE TABLE schema_info (version int(11))
<br>&nbsp; SQL (0.000000)&nbsp;&nbsp; Mysql::Error: #HY000Can't find file: 'schema_info.MYI' (errno: 2): SELECT version FROM schema_info<br>[/code]<br>it looks as though it isn't initialising the database connection properly, but my database.yml
 looks ok:<br>[code]<br>login: &amp;login<br>&nbsp; adapter: mysql<br>&nbsp; host: localhost<br>&nbsp; username: myusername<br>&nbsp; password: passy<br><br><br>development:<br>&nbsp; database: mydatabase<br>&nbsp; &lt;&lt;: *login<br><br>test:<br>&nbsp; database: mydatabase
<br>&nbsp; &lt;&lt;: *login<br><br>production:<br>&nbsp; database: mydatabase<br>&nbsp; &lt;&lt;: *login<br><br>[/code]<br><br>and i can connect to the mysql database with<br><br>[code]<br>mysql -u myusername -p mydatabase<br>[/code]<br>
<br>-----<br><br>i'm pretty much stumped - any thoughts?<br>thanks for reading.<br>