-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
reload not working centOs 6.x and apache 2.4 #423
Comments
The apache package generally assumes you are using the standard package provided by the operating system. The attributes such as |
I don't think so. I do install the repo prior to kicking the coobook off:
without that, the cookbook cannot find httpd24. Then there are various failures of the cookbook driving me to use the package name, and then subsequent failures about locations that make things fail without me overriding those attributes. For example - the install defaults to /etc/httpd for a lot of things, but httpd24 isn't getting installed by the package. My wrapper cookbook currently is:
So I don't know - let me rerun withbout the folder defaults. For example without specifying the conf_dir i end up with this error:
|
Well I tried to install httpd24 by hand on a fresh VM (centOS 6):
And it worked to the same degree as the cookbok. Then running:
It doesn't look to be associated with the cookbook at all. It looks tobe completely associated with the httpd24 install. I wonder if a solution is to remove the graceful section of the cookbook and defer to a restart for now? |
I posted on serverfault.com trying to chase this down from a non-cookbook basis (linux/apache) here. Unfortunately this is their reply:
The offending lines of code come from: https://github.com/svanzoest-cookbooks/apache2/blob/master/recipes/default.rb
I think the recommendation is to change this line - since garceful and http24 on centos6 doesn't work:
or maybe just remove it (i am not a chef expert)? Any thoughts on how to proceed here - I am happy to do what is recommended (including fork -> fix -> pull). The code looks like it was intended for RHEL 6 derivatives - but not properly matched to the http24 code base (or at least no longer properly matched). |
I created a fork/pull to address this: #424 seems to be working for me... |
So it looks like you are using a custom backport package that we currently do not support. The cookbook is developed to support the native httpd, which currently is apache 2.2 on centos 6. However, via https://www.softwarecollections.org/en/scls/rhscl/httpd24/ you can install the httpd24 package, which looks to be a backport of the centos 7 version. The changes you are making in #424 seem to mostly revolve around using systemd and httpd24. To enable apache 2.4 behavior you would set The only thing is that there are still guards that are specific to what version of the It seems to me that would get you the behavior you are looking for based on the PR you provided. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am trying to install onto centOs 6.4 and apache 2.4 version. I have the following attributes:
and it looks like everything is going on ok. service enable fizzles out. running this I see the folowing in the console:
Further all the service commands work except graceful:
I dont know where esle to poke around... Any hints appreciated
The text was updated successfully, but these errors were encountered: