LoadModule passenger_module /usr/local/opt/passenger/libexec/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/opt/passenger/libexec/lib/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
then try to add RailsBaseURI /most (most is my rail project) in the .conf inside /etc/apache2/sites/,--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4a5bc228-cde2-48fa-80a2-69be1a7405a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
and couldn't display http://localhost/most/rannumgenerator/index (rannumgenerator is controller I generated in most project).
Wonder if something that I should do for Mac Mavericks or some setting for Apache that I am not aware?
I followed your advice, still couldn't get my site running. Do you set up your rails project in
Mac OSX Mavericks? It seems from its instruction, /etc/apache2/httpd.conf is
/Library/Server/Web/Config/apache2/httpd_server_app.conf
Yes, but I don't use the built-in apache and its configs. Honestly, if you want readily available help, probably best to turn off the "personal web sharing" and install & configure your own web server, in the "standard" unix-y location. I expect that would be easier than starting with Apple's built-in Apache config, which is configured for VERY basic personal use and then try to figure out to tweak their config. Also, if you install your own, it's less likely that OS updates will fubar your config and force you to go exploring again trying to figure out what to fix.
On Jun 28, 2014, at 7:20 AM, Jim <jim...@gmail.com> wrote:
> In fact, the reason I started using the built-in apache was because I got tired of MacPorts blowing away all my config files seemingly at random.
Ugh, shudder, no, I *NEVER* use MacPorts.
Yes, server.app comes with Mavericks, so I use it to host Rails web apps and have tried to create
passenger.conf under other folder etc. I set up everything in snow leopard under directory "/etc/apache2",
and sites folder was also inside /etc/apache2, it is quite straightfoward and easy, but when I try
to do the samething with server.app under folder /Library/Server/Web/Config/apache2. I couldn't
make it work, the steps seem to be quite simple, but not easy to find out what might go wrong.
I used brew to install passenger.
It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:
bundle install
....
I did "bundle install" after I create the rails project, I did "gem uninstall passenger"
afterwards as the developer of passenger told me that I installed passenger by homebrew, I don't
need gem install passenger, o.w. I would have trouble...
Liz
integer 4294967294 too big to convert to `int' (RangeError) /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in `chown' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in `block in remove_entry_secure' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:718:in `open' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:718:in `remove_entry_secure' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/utils/tmpio.rb:72:in `ensure in mktmpdir' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/utils/tmpio.rb:72:in `mktmpdir' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/native_support.rb:147:in `download_binary_and_load' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/native_support.rb:49:in `start' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/native_support.rb:405:in `<top (required)>' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger.rb:237:in `require_passenger_lib' /usr/local/Cellar/passenger/4.0.45/libexec/helper-scripts/rack-preloader.rb:75:in `init_passenger' /usr/local/Cellar/passenger/4.0.45/libexec/helper-scripts/rack-preloader.rb:157:in `<module:App>' /usr/local/Cellar/passenger/4.0.45/libexec/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/local/Cellar/passenger/4.0.45/libexec/helper-scripts/rack-preloader.rb:28:in `<main>'
/usr/local/var/rbenv/versions/2.1.0/bin/ruby
uid=4294967294(nobody) gid=4294967294(nobody) groups=4294967294(nobody),12(everyone),61(localaccounts),
404(com.apple.sharepoint.group.4),403(com.apple.sharepoint.group.3),100(_lpoperator),401(com.apple.sharepoint.group.1),
402(com.apple.sharepoint.group.2)
Great, it seems that I got further, now I got error messageIt looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:
bundle install
....
integer 4294967294 too big to convert to `int' (RangeError) /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in `chown' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:724:in `block in remove_entry_secure' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:718:in `open' /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb:718:in `remove_entry_secure' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/utils/tmpio.rb:72:in `ensure in mktmpdir' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/utils/tmpio.rb:72:in `mktmpdir' /usr/local/Cellar/passenger/4.0.45/libexec/lib/phusion_passenger/native_support.rb:147:in
....
uid=4294967294(nobody) gid=4294967294(nobody) groups=4294967294(nobody),12(everyone),61(localaccounts),
404(com.apple.sharepoint.group.4),403(com.apple.sharepoint.group.3),100(_lpoperator),
401(com.apple.sharepoint.group.1),402(com.apple.sharepoint.group.2)
4294967294 is actually "-2", default uid and gid for nobody in Mac OS X.Not sure how to get around this, change ownership of some files will help?
the error I got now seem to be something different...
integer 4294967294 too big to convert to `int' (RangeError) /usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/
fileutils.rb:724:in `chown' ...
Hi,
I just upgrade a few apps from Rails 2.3.18 to Rails 4.0.4 and make sure
the apps are running on WEBrick. I follow the steps I have done to set up
apps by Apache on Snow Leopard, first install passenger and add the following to /etc/apache2/httpd.conf
LoadModule passenger_module /usr/local/opt/passenger/libexec/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/opt/passenger/libexec/lib/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
then try to add RailsBaseURI /most (most is my rail project) in the .conf inside /etc/apache2/sites/,
but no .conf file there anymore for Mac Marvericks, rather I find the .conf in folder
/Library/Server/Web/Config/apache2/sites, so I add the "RailsBaseURI /most" in the
file
Then I add a symlink as following:
ln -s /Library/WebServer/most/public /Library/WebServer/Documents/mostsudo apachectl stop
sudo apachectl start
Page http://localhost/most is like following:Index of /most
Apache/2.2.26 (Unix) Phusion_Passenger/4.0.41 mod_ssl/2.2.26 OpenSSL/0.9.8y DAV/2 mod_wsgi/3.3 Python/2.7.5 Server at localhost Port 80
and couldn't display http://localhost/most/rannumgenerator/index (rannumgenerator is controller I generated in most project).
Wonder if something that I should do for Mac Mavericks or some setting for Apache that I am not aware?
Thanks!
Liz Huang