Forum: Rails-ES virtual host ayudaaaaaaaaa

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-07 21:30
Auxilio he tratado de balancear la carga con apache y no he podido
lograr que se vea por : http://redmine:3001 y http:3002. Ayuda!!!
tengo esta configuracion en httpd-vhosts.conf

    <VirtualHost *>

    ServerName redmine

    DocumentRoot /redmine-0.8

    <Directory "/redmine-0.8/public">

    FollowSymLinks

    AllowOverride

    Orden allow, deny

     allow from all

    </ Directory>

    <Proxy Balancer://mongrel_cluster>

    Orden allow, deny

    allow from all

    BalancerMember http://127.0.0.1:3000

    BalancerMember http://127.0.0.1:3001

    BalancerMember http://127.0.0.1:3002

    </ Proxy>

    RewriteEngine On

    RewriteCond% (DOCUMENT_ROOT) /% (REQUEST_FILENAME)!-F

    RewriteRule ^/(.*)$ balanceador: / / redmine_cluster% (REQUEST_URI)
[P, QSA, L]

    </ VirtualHost>
B8eb6140a480852282b1deb8f7987a24?d=identicon&s=25 Silvio Quadri (Guest)
on 2009-04-07 21:33
(Received via mailing list)
2009/4/7 Kim Kim <ruby-forum-incoming@andreas-s.net>:
>    <Directory "/redmine-0.8/public">
>
>    BalancerMember http://127.0.0.1:3002
>    </ VirtualHost>
¿Iniciaste los servicios en esos puertos?

script/server -p 3001
script/server -p 3002
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-07 21:43
Si mira lo que me sale

 script/server  -p 3002
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.2 application starting on http://0.0.0.0:3002
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:57:in
`initialize': Permission denied -
/home/jhony/Escritorio/redmine-0.8/log/development.log (Errno::EACCES)
  from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:57:in
`open'
  from
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:57
  from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
  from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in
`require'
  from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in
`new_constants_in'
  from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in
`require'
  from /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39
  from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
  from script/server:3


que pasa??
D25f44314542c75e511e806a6d1a5777?d=identicon&s=25 Agustin Viñao (agustinvinao)
on 2009-04-07 21:47
(Received via mailing list)
Me parece que por el mensaje que te sale en las primeras lineas tenes un
problema de permisos.

"/usr/lib/ruby/gems/1.8/gems/
>
> rails-2.1.2/lib/commands/servers/mongrel.rb:57:in
> `initialize': Permission denied -

"

Fijate si podes correr esa linea con algun superusuario.-
___________________
      Agustin Viñao
www.agustinvinao.com
 agustinvinao (Skype)


On Tue, Apr 7, 2009 at 4:43 PM, Kim Kim
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-07 21:53
Muchas gracias no sabia que tocaba hacerlo por cada puerto :D. Pero
ahora me sale este error

Mysql::Error in WelcomeController#index

Access denied for user 'root'@'localhost' (using password: NO)

RAILS_ROOT: /home/jhony/Escritorio/redmine-0.8


Request

Parameters:

None

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}


Response

Headers:

{"cookie"=>[],
 "Cache-Control"=>"no-cache"}
D25f44314542c75e511e806a6d1a5777?d=identicon&s=25 Agustin Viñao (agustinvinao)
on 2009-04-07 21:56
(Received via mailing list)
Si no me equivoco tenes que revisar el database.yml para setear un
usuario
valido con la BD, creo que tenes seteado un usr: root sin pass que por
supuesto no es valido, confirma que tengas bien el usuario.
___________________
      Agustin Viñao
www.agustinvinao.com
 agustinvinao (Skype)


On Tue, Apr 7, 2009 at 4:53 PM, Kim Kim
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-07 22:09
yo lo veo bien. que mas podria ser???

 MySQL (default setup).  Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
#   gem install mysql
#   (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password: root
  encoding: utf8
  socket: /var/run/mysqld/mysqld.sock

development:
  adapter: mysql
  database: redmine_development
  host: localhost
  username: root
  password: root
  encoding: utf8

test:
  adapter: mysql
  database: redmine_test
  host: localhost
  username: root
  password: root
  encoding: utf8

test_pgsql:
  adapter: postgresql
  database: redmine_test
  host: localhost
  username: postgres
  password: "postgres"

test_sqlite3:
  adapter: sqlite3
  dbfile: db/test.db

demo:
  adapter: sqlite3
  dbfile: db/demo.db
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-07 23:14
YAAAAAAAAAA funciona que felicidad!!

GRACIAS!! MUCHAS GRACIAS!!
E97a5b6bf09ba9c99f2f203c576fa900?d=identicon&s=25 Juan martin Fernandez szutner (martinszutner)
on 2009-04-08 00:05
(Received via mailing list)
seria muy bueno que explicaras brevemente como solucionaste el problema,
o
mas o menos como quedo la situacion que te llevo a solucionar el
problema.


On Tue, Apr 7, 2009 at 2:14 PM, Kim Kim
1e0fce0b6a4bc9b682b67b4d7b43b17b?d=identicon&s=25 Rafael García (rafa)
on 2009-04-08 00:34
(Received via mailing list)
Attachment: rgo.vcf (242 Bytes)
Kim Kim wrote:
> YAAAAAAAAAA funciona que felicidad!!
>
> GRACIAS!! MUCHAS GRACIAS!!
>
Y para no tener que arrancar/parar todos los mongrels 1 por 1 te
recomiendo mongrel_cluster.
F625b891618be8ec32547a07b3192bb0?d=identicon&s=25 Francesc Esplugas (fesplugas)
on 2009-04-08 00:47
(Received via mailing list)
On Apr 8, 2009, at 12:34 AM, Rafael G. wrote:

> Y para no tener que arrancar/parar todos los mongrels 1 por 1 te
> recomiendo mongrel_cluster.

Si existe la posibilidad, utiliza Phusion Passenger. Mano de santo!
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-08 15:02
Pues la verdad hice lo que me dijiste, y ya el error de mysql no se que
era pero parecia que estaba corriendo el mysql del xampp pero no se.

Ahora estoy con el problemita de hacer los scripts para ejecutar el
mysql,mongrel y el apache. Si sabes de algo muchas gracias
2fb1a1c3732606f25146caa1bbdf9eb1?d=identicon&s=25 Kim Kim (kimmarq)
on 2009-04-08 22:30
Antes configure el apache de xampp para la instalacion pero este
modifica /etc/httpd/extra/httpd-vhost.conf para el apache 2 es ese
mismo??? es que no lo encuentro. que diferencias debo hacer para el
apache2 a comparacion del xampp
This topic is locked and can not be replied to.