I''m getting 403 forbidden errors "You don''t have permission to access / on this server." when trying to access my typo installation. It''s set up under a subdomain, but I''m not sure what additional steps I need to take to allow Apache to allow access to the dispatch.cgi script. If I put an index.html file in the public/ directory it gets served as normal, but without it I get the 403 forbidden error. -- Craig Beck http://luckybonza.com AIM: Kreiggers
On May 11, 2005, at 12:18 AM, Craig Beck wrote:> I''m getting 403 forbidden errors "You don''t have permission to > access / on this server." when trying to access my typo > installation. It''s set up under a subdomain, but I''m not sure what > additional steps I need to take to allow Apache to allow access to > the dispatch.cgi script. > > If I put an index.html file in the public/ directory it gets served > as normal, but without it I get the 403 forbidden error.Sorry, already fixed this problem. Rails couldn''t find /tmp/ mysql.sock until I symlinked the systems mysql.sock to /tmp/mysql.sock Now I don''t get the 403/forbidden error. I get new errors.... $ script/server --port=3333 => Rails application started on http://0.0.0.0:3333 [2005-05-11 02:10:07] INFO WEBrick 1.3.1 [2005-05-11 02:10:07] INFO ruby 1.8.2 (2004-12-25) [i686-linux] [2005-05-11 02:10:07] INFO WEBrick::HTTPServer#start: pid=31681 port=3333 #<ActiveRecord::StatementInvalid: Packets out of order: 1<>35: SHOW FIELDS FROM sessions> ... (snipped the rest of the error) ... [2005-05-11 02:10:13] ERROR `/'' not found. 24.17.78.120 - - [11/May/2005:02:10:13 MDT] "GET / HTTP/1.1" 404 277 any ideas? I can get instiki working no problem, but I''m trying to get typo installed. I just want to be able to get it started via .cgi until I can get the lighttpd setup sorted out. -- Craig Beck http://luckybonza.com AIM: Kreiggers
> #<ActiveRecord::StatementInvalid: Packets out of order: 1<>35: SHOW > FIELDS FROM sessions>Your copy of Ruby is out of date. Update to the latest, and rebuild the MySQL drivers while you''re at it. -- Phillip Hutchings http://www.sitharus.com/ sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org / sitharus-QrR4M9swfipWk0Htik3J/w@public.gmane.org
On May 11, 2005, at 2:35 PM, Phillip Hutchings wrote:>> #<ActiveRecord::StatementInvalid: Packets out of order: 1<>35: SHOW >> FIELDS FROM sessions> >> > > Your copy of Ruby is out of date. Update to the latest, and rebuild > the MySQL drivers while you''re at it.I''m on Ruby 1.8.2, Rubygems 0.8.10, and Rails 0.12.1, and I have some other questions floating around out there about building native extensions.... as in I can''t, they all fail -- ''gem install whatever'' works fine if it doesn''t have to build a native extension, but otherwise fails. -- Craig Beck http://luckybonza.com AIM: Kreiggers
> I''m on Ruby 1.8.2, Rubygems 0.8.10, and Rails 0.12.1, and I have some > other questions floating around out there about building native > extensions.... as in I can''t, they all fail -- ''gem install whatever'' > works fine if it doesn''t have to build a native extension, but > otherwise fails.Well, that should be a big clue. Something is seriously broken. What OS? What happens when you try to build a native extension? How did you install Ruby? -- Phillip Hutchings http://www.sitharus.com/ sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org / sitharus-QrR4M9swfipWk0Htik3J/w@public.gmane.org
On May 12, 2005, at 11:47 AM, Craig Beck wrote:> > On May 11, 2005, at 2:35 PM, Phillip Hutchings wrote: > > >>> #<ActiveRecord::StatementInvalid: Packets out of order: 1<>35: SHOW >>> FIELDS FROM sessions> >>> >>> >> >> Your copy of Ruby is out of date. Update to the latest, and rebuild >> the MySQL drivers while you''re at it. >> > > I''m on Ruby 1.8.2, Rubygems 0.8.10, and Rails 0.12.1, and I have > some other questions floating around out there about building > native extensions.... as in I can''t, they all fail -- ''gem install > whatever'' works fine if it doesn''t have to build a native > extension, but otherwise fails.here''s what I get when I try to build the mysql driver manually: $ ruby extconf.rb checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... yes checking for mysql_query() in -lmysqlclient... no And that''s it, no Makefile is written, so no build takes place.. I''ve tried it with --with-mysql-config (which gives the same result as above) --with-mysql-include=/usr/local/mysql/include/ --with-mysql-dir=/usr/ to no avail. Any ideas as to the problem? I''ve solved the original problem by resetting my mysql password, but I''m curious as to the solution to building the mysql drivers. mysqladmin -u username -h localhost -p password "newpassword" -- > or like I did, just use your current password for no change, although it does reset things and it does solve the original problem. -- Craig Beck http://luckybonza.com AIM: Kreiggers
> here''s what I get when I try to build the mysql driver manually: > > $ ruby extconf.rb > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lm... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lz... yes > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lsocket... no > checking for mysql_query() in -lmysqlclient... no > checking for main() in -lnsl... yes > checking for mysql_query() in -lmysqlclient... no > > And that''s it, no Makefile is written, so no build takes place.. > > I''ve tried it with > > --with-mysql-config (which gives the same result as above) > --with-mysql-include=/usr/local/mysql/include/ > --with-mysql-dir=/usr/ > > to no avail. > > Any ideas as to the problem? I''ve solved the original problem by > resetting my mysql password, but I''m curious as to the solution to > building the mysql drivers. > > mysqladmin -u username -h localhost -p password "newpassword" -- > > or like I did, just use your current password for no change, > although it does reset things and it does solve the original problem.Your system''s linker can''t find libmysql. You need to add /usr/local/mysql/lib to /etc/ld.so.conf and run ldconfig, or use --with-mysql-libs=/usr/local/mysql/lib if that''s an option. -- Phillip Hutchings http://www.sitharus.com/ sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org / sitharus-QrR4M9swfipWk0Htik3J/w@public.gmane.org
This is false, Ruby 1.8.2 25-12-04 is the proper 1.8.2 release. The problem is that you use mysql bigger then 4.1 but use the old password style. The pure ruby mysql driver cannot deal with that, you need the C based mysql extension or remove the password / set the account to new style password. The C based mysql adapter is faster then the pure ruby one... On 5/11/05, Phillip Hutchings <sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > #<ActiveRecord::StatementInvalid: Packets out of order: 1<>35: SHOW > > FIELDS FROM sessions> > > Your copy of Ruby is out of date. Update to the latest, and rebuild > the MySQL drivers while you''re at it. > -- > Phillip Hutchings > http://www.sitharus.com/ > sitharus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org / sitharus-QrR4M9swfipWk0Htik3J/w@public.gmane.org > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog