yevgenko / cookbook-magento

Collection of recipes to build app stack for the Magento deployments with Chef

Home Page:http://cookbooks.opscode.com/cookbooks/magento

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Presumed apc.ini location is incorrect for Ubuntu 14.04

ltcdnunez opened this issue · comments

When attempting to run this recipe on Ubuntu 14.04, I encountered an error regarding the location of the apc.ini file. The recipe installs PHP 5.5 (with which I do not believe Magento is even technically compatible). Part of the issue seems to be that PHP 5.5 uses the new Zend OpCache and APC is now replaced by APCu in the package php-apc. Thus, the location /etc/php5/conf.d being used in the recipe does not exist: https://github.com/yevgenko/cookbook-magento/blob/master/recipes/default.rb#L23. The error was: No such file or directory - /etc/php5/conf.d.

I think the possible fix here might be either specifying that PHP is installed with a specific version (that is less than 5.5) or fixing the portion of the recipe that deals with APC to search in the correct location, which appears to be /etc/php5/fpm/conf.d/20-apcu.ini. Any thoughts on this?

I realized after creating this issue that this probably boils down to this cookbook not yet supporting Ubuntu 14.04. Perhaps the question/issue should really be about whether support for that OS version is eventually intended, seeing as it's the new LTS release.

Hi @ltcdnunez, support for 14.04 will be added at some point. I don't think any of us have had a chance to make that happen yet.

Gotcha. Thanks for the update.