-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deletes /etc/httpd/conf.d/passenger.conf when including apache::mod::passenger on Centos 6 #119
Comments
Ah, then the Have you checked this on CentOS 5? Debian? |
From what I remember. Debian would use the The solution you posted isn't ideal. If the passenger package is updated the the location of PassengerRoot changes. Thus an upgrade could cause passenger to fail. This file should only exist not be templated or else we risk causing upgrades to fail. What are your thoughts? Spenser On Fri, Nov 16, 2012 at 2:01 PM, Hunter Haugen [email protected]:
Spenser Gilliland |
Please see the following commit. Do you think this is a good way of doing it? The gemroot/rubyroot could even be overrideable to allow for from source installs. |
Am I understanding this right, in CentOS/RHEL the same directory, Anyway, your idea is not going to work on Debian/Ubuntu. First of all, on Debian/Ubuntu, Second, Third, why use a horrible exec to do At the very least your proposed changes should be limited to In Debian/Ubuntu when using either the regular packages or the ones from https://www.phusionpassenger.com/native_packages a working passenger configuration is put in |
Am I understanding this right, in CentOS/RHEL the same directory,
I can there's two directions that could be gone from here.
Option one seems like a fairly simple solution whereas any patch I come up I'll try to come up with something in the direction of 1 and post a commit.
Spenser Gilliland |
This maybe a better way to fix this. |
I had this same issue this evening when I converted over from an older home grown apache module to puppetlabs-apache. I solved this by:
tmclaugh/puppetlabs-apache@515e574cce827d04db1ef70b68ab2235f44c3fa1 I haven't tested this on Ubuntu but appears to be working fine on my CentOS host. The only issue right now is a warning on apache start because modules are loaded twice. The module config files that ship for RHEL load the module which makes creating a file in mod.d unnecessary. In a related vein, there's also an issue where this module doesn't properly support both RHEL 5.x and 6.x. The default modules in the apache versions shipped with both OS major versions are different. I still haven't figured out how I want to handle this. In my fork I may get rid of mod.d all together but I'm not sure yet. |
tmclaugh, I like your approach with the vhost.d directory and with removing mod.d but why not leave conf as the confd directory. That way if an rpm package drops a file in there it can be overridden or left alone. |
On RHEL based systems Apache has two different locations for config files. The httpd.conf file lives in /etc/httpd/conf. It then includes the files in /etc/httpd/conf.d which is the location where packages drop their config files. The module needs to know about both directories. |
Spencer, if you're interested I created another issue where I list all the CentOS related issues I found. I also created a fork where I implemented the changes I proposed.
(Apologies that my fork is a little messy with lots of "Fix last commit" commits. I'm still new to git and don't have a way yet to get changes from my workstation to my puppetmaster without checking changes into git first. :) |
I'd like to +1 the suggestion to not perform the purge on RHEL-alike systems. I had a config file being removed from /etc/httpd/conf.d and it took me quite a long time to figure out what was actually doing the removal. Even if this doesn't completely solve the problem, the current default configuration will break things and I think that's a bad state for HEAD to be in. |
The topic of this issue appears to be covered by https://github.com/puppetlabs/puppetlabs-apache/blob/master/templates/mod/passenger.conf.erb and the linked issues are discussed elsewhere. Thanks for your input! |
By default Centos 6, there is file named passenger.conf created in the /etc/httpd/conf.d/ directory. This sets the value of PassengerRoot and PassengerRuby for all configurations. When a vhost is instantiated this file is removed from the directory.
The text was updated successfully, but these errors were encountered: