passenger

Gitlab in a subdirectory with apache and passenger

你说的曾经没有我的故事 提交于 2019-12-02 20:55:43
I'm attempting to set up gitlab so that it is accessible through a subdirectory of an existing apache server, example.com/gitlab , for example. I am trying to use passenger, as this seems to be the easiest to set up, but other solutions would also be acceptable. Using a separate virtual host for gitlab is unfortunately not an option for me. My Setup In setting this up, I have followed the gitlab setup guide and the passenger documentation . I believe the most relevant parts of /etc/httpd/conf/httpd.conf are the following: DocumentRoot "/home/.www" # gitlab config RackBaseURI /gitlab <Directory

How to start passenger in production environment?

こ雲淡風輕ζ 提交于 2019-12-02 18:50:57
I'm starting the Rails 3 application with the following command: passenger start -a 0.0.0.0 -p 3000 -d but how do I tell passenger to start the application in production environment? passenger start -a 0.0.0.0 -p 3000 -d -e production Side note: always check the help, passenger start --help would have told you the same. 来源: https://stackoverflow.com/questions/7260961/how-to-start-passenger-in-production-environment

When to restart and not reload Nginx?

江枫思渺然 提交于 2019-12-02 18:43:23
When is it necessary to restart nginx and reload will not suffice? Does it make a difference if an extension like passenger is used? Should the service be restarted if it consumes too much memory. Any other reasons for restarting Nginx, particularly after a configuration change either in an extension or a Nginx core config? After making a configuration change, one can either restart or reload nginx, via the binary itself or the init.d script "/etc/init.d/nginx -h" on Ubuntu. Which method should be preferred? Reloading nginx is safer than restarting because before old process will be terminated

Run two different Rails application on one dedicated server

痞子三分冷 提交于 2019-12-02 18:11:32
I have one dedicated server with below configurations i3 - Dual Core - 3.06Ghz H/T 16GB RAM 500GB SATA2 Now I want to execute two different Rails application on one dedicated server. A both application are different but they are using common database. Is it possible to do that? If yes – How can I do that? Is Phusion Passenger with Apache a good approach? If yes - How can I configure two application with one Phusion Passenger server? I will describe how I run multiple Rails applications on one Linux server, using Apache, Phusion Passenger, and some version of Ruby. You have many choices, but

How to avoid nginx “upstream sent too big header” errors?

戏子无情 提交于 2019-12-02 17:30:49
I'm running nginx, Phusion Passenger and Rails. I am running up against the following error: upstream sent too big header while reading response header from upstream, client: 87.194.2.18, server: xyz.com, request: "POST /user_session HTTP/1.1", upstream: "passenger://unix:/tmp/passenger.3322/master/helper_server.sock It is occuring on the callback from an authentication call to Facebook Connect. After googling, and trying to change nginx settings including proxy_buffer_size and large_client_header_buffers is having no effect. How can I debug this? Came across this error recently. Since

Recommendations (and Differences) between different Ruby on Rails Production Web Servers

大城市里の小女人 提交于 2019-12-02 16:49:35
Very soon I plan on deploying my first Ruby on Rails application to a production environment and I've even picked a webhost with all the managed server and Capistrano goodness you'd expect from a RoR provider. The provider allows for Mongrel, Thin, Passenger & FastCGI web servers, which seems very flexible, but I honestly don't know the differences between them. I have looked into them some, but it all gets a bit much when they start talking about features and maximum simultaneous requests - and that this data seems to vary depending on who's publishing it. I have looked at Passenger (on the

libmysqlclient.so.15: cannot open shared object file: No such file or directory

别等时光非礼了梦想. 提交于 2019-12-02 16:09:48
问题 All Rails applications are working just fine until today. I am not sure if someone changes the settings on this machine. However does anyone know what could be the fix for this? Details: Centos 5.5 Apache Passenger Rails 3.0.x MySql 5.0.77 Error details: 回答1: Okay this saves the day. wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 chmod 755 /usr/lib64/libmysqlclient.so.15 ldconfig 回答2: You can try to find the right package by the

Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration

≡放荡痞女 提交于 2019-12-02 15:37:43
问题 I have followed every step for installation given in Installing Passenger + Apache on a Linux/Unix production server for Node.js apps + Red Hat 6 / CentOS 6 (with RPM) and everything worked but when I am trying to configure my subdomain in virtualhost on my centos 6 server using WHM to host my botkit bot, I get this error : The “/usr/local/apache/bin/httpd” command (process 27088) reported error number 1 when it ended. Configuration problem detected on line 9 of file /usr/local/apache/conf

Relationships between Rubygems, Bundler, and RVM

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 14:08:37
Following current best practices, what is the proper role for each of these? Based on my limited understanding of Bundler and RVM, it seems that they--like Rubygems--have their own install locations for gems. Plus, for each one, there's the option of installing to system paths using sudo or to your home directory. And then there's the ability to vendor gems with Bundler (where applicable, e.g. with Rails). So it looks to me like there are at least seven places to install gems now: Rubygems system path Rubygems user path RVM system path RVM user path Bundler system path Bundler user path Vendor

Nginx worker process cant access config.ru

二次信任 提交于 2019-12-02 12:41:54
问题 I have set up my RoR app on DO Ubuntu x64. On Nginx port 8080 . My config: server { listen 8080; # server_name www.mydomain.com; passenger_enabled on; passenger_app_env development; root /home/edgars/Proj/public; } In Nginx log file error: Cannot stat '/home/edgars/Proj/config.ru; This error means that the Nginx worker process (PID 18065, running as UID 33) does not have permission to access this file. As my research from this question shows I need to ensure that Nginx user can access that