Giter Site home page Giter Site logo

priestjim / chef-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sous-chefs/php

37.0 37.0 22.0 257 KB

Opscode Chef cookbook for PHP enhanced to support PHP-FPM (including LWRP) and various modules

Home Page: http://community.opscode.com/cookbooks/php

License: Apache License 2.0

Ruby 44.28% HTML 55.32% Shell 0.39%

chef-php's People

Contributors

chrisroberts avatar colby avatar danielsdeleo avatar dastergon avatar djoos avatar frizlab avatar goruha avatar j15e avatar leth avatar minicodemonkey avatar nathenharvey avatar patcon avatar priestjim avatar razor-x avatar schisamo avatar stephenking avatar thedoctor avatar willejs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chef-php's Issues

module* recipes fail because php5endmod not available on Ubuntu 12.04

php5enmod doesn't come on Ubuntu 12.04 official repos (5.3.10) so the execution of most module* recipes fail, for example:

==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/php/recipes/module_gd.rb:32:in `from_file'
==> default: 
==> default: execute("/usr/sbin/php5enmod gd") do
==> default:   action [:nothing]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   guard_interpreter :default
==> default:   command "/usr/sbin/php5enmod gd"
==> default:   backup 5
==> default:   returns 0
==> default:   cookbook_name :php
==> default:   recipe_name "module_gd"
==> default:   only_if { #code block }
==> default: end
==> default: 
==> default: 
==> default: 
==> default: [2014-07-01T02:10:06+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-07-01T02:10:06+00:00] ERROR: Running exception handlers
==> default: [2014-07-01T02:10:06+00:00] ERROR: Exception handlers complete
==> default: [2014-07-01T02:10:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-07-01T02:10:06+00:00] ERROR: execute[/usr/sbin/php5enmod gd] (php::module_gd line 32) had an error: Errno::ENOENT: No such file or directory - /usr/sbin/php5enmod gd
==> default: [2014-07-01T02:10:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the

Timezone defaults

I feel like 'Europe/Athens' is a poor default for date.timezone, please use 'UTC'.

PHP MCrypt module does not load on Ubuntu 14.04.

I noticed this issue when using the phpmyadmin cookbook (which includes the php::module_mcrypt recipe). When I tested it on Ubuntu 13.04 it worked fine, but on Ubuntu 14.04 it complained that mcrypt was missing.

On Ubuntu 13.04, the file /etc/php5/fpm/conf.d/mcrypt.ini:

-rw-r--r-- 1 root root 58 Sep 21  2012 mcrypt.ini

exists and contains

; configuration for php MCrypt module
extension=mcrypt.so

But on Ubuntu 14.04, this file is missing.

If I create this file on Ubuntu 14.04 and restart php5-fpm, the mcrypt module loads correctly.

Dependency problem on Ubuntu 15.04

Chef::Exceptions::ResourceNotFound
----------------------------------
Cannot find a resource matching execute[apt-get-update] (did you define it first?)

fpm service not enabled automatically

When using the fpm recipe on Ubuntu/Debian, the service php5-fpm is not being enabled. Log suggests that the resource on the fpm recipe is conflicting with the definition on providers/fpm.rb

[2014-06-21T08:12:48+00:00] INFO: *** Chef 11.12.8 ***
[2014-06-21T08:13:25+00:00] WARN: Cloning resource attributes for service[php5-fpm] from prior resource (CHEF-3694)
[2014-06-21T08:13:25+00:00] WARN: Previous service[php5-fpm]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/recipes/fpm.rb:70:in `from_file'
[2014-06-21T08:13:25+00:00] WARN: Current  service[php5-fpm]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/providers/fpm.rb:66:in `block in class_from_file'

fpm_log_dir is created with world writable permissions.

recipe/fpm.rb creates node['php']['fpm_log_dir'] with permissions 01733. As a result logrotate refuses to rotate any log files with following message:

/etc/cron.daily/logrotate:
error: skipping "/var/log/php5-fpm/fpm-master.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

Fix module_apc on dotdeb

On dotdeb repository package for the APC extension is called php5-apc, not php5-apc as in official Ubuntu/Debian repos.

service[php-fpm] cannot be found on Ubuntu 14.04

Running Ubuntu 14.04, managed through AWS OpsWorks, I receive this error on setup:

[2016-07-22T08:43:36+00:00] ERROR: resource template[/etc/php5/fpm/pool.d/servu.conf] is configured to notify resource service[php-fpm] with action restart, but service[php-fpm] cannot be found in the resource collection. template[/etc/php5/fpm/pool.d/servu.conf] is defined in /var/chef/runs/0b595625-9cf9-4820-80b0-be9f9d19acdb/local-mode-cache/cache/cookbooks/php/providers/fpm.rb:25:in 'block in class_from_file'

Could it be that the service should be php5-fpm under debian?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.