[chef] cookbook conflict: httpd/php/mysql


Chronological Thread 
  • From: Kevin Keane Subscription < >
  • To: < >
  • Subject: [chef] cookbook conflict: httpd/php/mysql
  • Date: Thu, 18 Dec 2014 11:02:28 -0800

Title: cookbook conflict: httpd/php/mysql

I came across a problem with a combination of three supermarket cookbooks, and am wondering if this is a bug or I am doing something wrong. I am using the httpd cookbook (0.1.5) and the php cookbook (1.5.0). The php cookbook also includes mysql (6.0.3). I actually don't need that mysql cookbook directly. All this is on CentOS 6.5, although I suspect the problem will affect all OS.

When I just install httpd without php, Apache starts up flawlessly. When I add the php cookbook (and thus indirectly the mysql cookbook), /etc/httpd/conf/http.conf uses an invalid PidFile location; it uses a location that would be valid for mysql, but not for httpd. Since I'm not installing mysql, that directory doesn't exist.

My suspicion is that both the mysql and httpd cookbooks use the same name "pid_file" at some point, and thus clash. Either that, or I'm making a mistake that I'm just not seeing.

Here is the generated httpd.conf


ServerName nctc-accounting-berkshelf.vagrant
ServerRoot /etc/httpd
PidFile /var/run/mysql-default/mysqld.pid
User apache
Group apache
Timeout 400
ErrorLog /var/log/httpd/error_log
LogLevel warn
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
DefaultType None
HostnameLookups off

Listen 0.0.0.0:80
Listen 0.0.0.0:443

Include conf.d/*.conf
Include conf.d/*.load



Kevin Keane

The NetTech

http://www.4nettech.com

Our values: Privacy, Liberty, Justice

See https://www.4nettech.com/corp/the-nettech-values.html





Archive powered by MHonArc 2.6.16.

§