Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Enabling a custom php module on ubuntu 14.04 #105

Open

Description

@meecect

I have compiled a custom php module on ubuntu and am having trouble getting it to be enabled instead of just installed.

The module package includes the file /etc/php5/mods-available/${name}.ini , and puppet is able to find the right package to install from the repo at php5-${name}, but I do not automatically get a link in /etc/php5/apache/conf.d so that the module will be enabled.

I was wondering if this behavior is expected? I looked at a few other php modules apt packages and it looks like they do typically have the ${name}.ini included in the package. I assume the typical manual way of doing this is to issue a php5enmod on ubuntu.

It appears that the rest of the php modules i have installed via puppet do get a symlink in the relevant conf.d directory. Is that because their postist script is doing the equivalent of php5enmod, or am I missing some puppet option?

Activity

  1. meecect commented on Oct 28, 2015

    @meecect
    Author

    some more info...

    I exploded some deb packages for some common php5 modules on ubuntu, and indeed, the 3 I looked at so far all had almost identical postinst scripts to enable said module(s). So, it looks like I may just need to add a postinst script to my custom package.

    If anyone can confirm this direction, that would be great.

  2. alvagante commented on Oct 29, 2015

    @alvagante
    Member

    Yes, I'd follow the patterns used in other packages, the php::module define just installs the package and does not creates links to enabled them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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