i'm pretty new ruby on rails, , new amazon ec2. able setup ror, passenger, , apache on linode centos 6.5 using directions found here: https://www.rosehosting.com/blog/install-ruby-on-rails-with-apache-and-passenger-on-centos-6/
everything worked fine, able , running no problem. client uses amazon ec2, have set on server. when trying on amazon ec2, once rvmsudo passenger-install-apache2-module part, following error:
it looks on red hat or centos operating system, selinux enabled. selinux security mechanism special passenger-specific configuration required. supply configuration part of our passenger rpms. however, passenger installed through gem or tarball , not include selinux configuration. therefore, recommend you: 1. uninstall current passenger install. 2. reinstall passenger through rpms provide: https://www.phusionpassenger.com/documentation/users%20guide%20apache.html#installing_or_upgrading_on_red_hat i followed steps @ url provided, still gives me same error. disabled selinux, , running above command again error saying there not enough swap space. run following commands, says to:
sudo dd if=/dev/zero of=/swap bs=1m count=1024 sudo mkswap /swap sudo swapon /swap after running that, i'm able run rvmsudo passenger-install-apache2-module, , installs successfully. added lines httpd.conf said, , restarted apache. have following virtual host in httpd.conf:
<virtualhost *> documentroot /home/user/appname/public <directory /home/user/appname/public> allowoverride options -multiviews </directory> errorlog /var/log/httpd/appname_error.log customlog /var/log/httpd/appname_access.log common </virtualhost> but whenever try go public ip address or public dns, timeout error. have idea went wrong? using nginx better? can point me in right direction appreciated!
passenger author here.
there don't understand. mentioned followed steps in rpm installation instructions, later mentioned creating swap file. our rpm installation process should never ask create swap file. nor should rpm installation process involve passenger-install-apache2-module. did part of rpm installation process? can tell me exact steps took after reading message mentioning rpms?
but if server doesn't have important on right now, recommend start on scratch, using new , empty server, , follow the official passenger deployment walkthrough. walkthrough new (written month ago) , end-to-end. teaches how launch server, how install ruby, how install passenger in way best suits operating system, how deploy app, etc.
Comments
Post a Comment