Skip to content

Apache::Params is incorrectly changing httpd config directory on CentOS-7 #293

@cappetta

Description

@cappetta

Reference Link: https://bugzilla.redhat.com/show_bug.cgi?id=1276277

httpd is failing to come up and the error in /var/log/messages:

Feb 29 22:18:41 localhost httpd: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:

According to: http://serverfault.com/questions/515417/error-start-apache-php-value this is caused by a missing libphp5.so file.

At first I thought there was a missing "Load Module" line not getting inserted into the config yet after looking closer I see that logic one line 65 of https://github.com/redhat-openstack/openstack-puppet-modules/blob/master/apache/manifests/params.pp changes the module config directory for RHEL/Centos-7.

I'm not sure this is 100% correct but I watched this multiple times by removing packstack then performing a first 'failed' install where I saw both conf.d and conf.modules.d get created and populated. Once the keystone.pp failed I copied the files from /etc/httpd/conf.modules.d into /etc/httpd/conf.d and the httpd service started right up.

I then executed another packstack install on top of the system/failure and all completed as expected.

Not sure the best way to resolve comment 5 ( https://bugzilla.redhat.com/show_bug.cgi?id=1276277#c5 ) recommends an update to httpd.conf which seems feasible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions