{"action":"opened","issue":{"url":"https://api.github.com/repos/svanzoest-cookbooks/apache2/issues/348","labels_url":"https://api.github.com/repos/svanzoest-cookbooks/apache2/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/svanzoest-cookbooks/apache2/issues/348/comments","events_url":"https://api.github.com/repos/svanzoest-cookbooks/apache2/issues/348/events","html_url":"https://github.com/svanzoest-cookbooks/apache2/issues/348","id":73100903,"number":348,"title":"Amazon Linux + mod_php5 recipe","user":{"login":"yoshiwaan","id":9516822,"avatar_url":"https://avatars.githubusercontent.com/u/9516822?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshiwaan","html_url":"https://github.com/yoshiwaan","followers_url":"https://api.github.com/users/yoshiwaan/followers","following_url":"https://api.github.com/users/yoshiwaan/following{/other_user}","gists_url":"https://api.github.com/users/yoshiwaan/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshiwaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshiwaan/subscriptions","organizations_url":"https://api.github.com/users/yoshiwaan/orgs","repos_url":"https://api.github.com/users/yoshiwaan/repos","events_url":"https://api.github.com/users/yoshiwaan/events{/privacy}","received_events_url":"https://api.github.com/users/yoshiwaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-04T19:07:24Z","updated_at":"2015-05-04T19:07:24Z","closed_at":null,"body":"Hi,\r\nAmazon linux supports installing different version of PHP via package. This creates different versions of the .so apache module in /usr/lib64/httpd/modules.\r\n\r\nAmazon linux then uses a couple of symlinks to set a default php version as it were, which is probably easier to just see than describe:\r\n\r\n    [ec2-user@php55 ~]$ ls -l /usr/lib64/httpd/modules/libphp*\r\n    -rwxr-xr-x 1 root root 4253400 Apr 17 18:08 /usr/lib64/httpd/modules/libphp-5.5.so\r\n    lrwxrwxrwx 1 root root      27 Apr 20 20:55 /usr/lib64/httpd/modules/libphp.so -> /etc/alternatives/libphp.so\r\n    -rwxr-xr-x 1 root root 4470216 Apr 17 18:08 /usr/lib64/httpd/modules/libphp-zts-5.5.so\r\n    lrwxrwxrwx 1 root root      31 Apr 20 20:55 /usr/lib64/httpd/modules/libphp-zts.so -> /etc/alternatives/libphp-zts.so\r\n    [ec2-user@php55 ~]$ ls -l /etc/alternatives/libphp*\r\n    lrwxrwxrwx 1 root root 38 Apr 20 20:55 /etc/alternatives/libphp.so -> /usr/lib64/httpd/modules/libphp-5.5.so\r\n    lrwxrwxrwx 1 root root 42 Apr 20 20:55 /etc/alternatives/libphp-zts.so -> /usr/lib64/httpd/modules/libphp-zts-5.5.so\r\n\r\nThe long and the short of it is that Amazon linux had to be different and decided to make the module file link as libphp.so instead of libphp5.so, which is hard coded in the mod_php5 recipe, so that recipe doesn't work in this cookbook.\r\nNow I've only tested this on php5.5, so I'm guessing php5.6 does the same but I'm not sure about php5.4 or php5.3. I wouldn't be surprised if php5.3 acted like the default php package in other EL distros...\r\n\r\nWhile I'm at it, is there an ETA for the next release of this cookbook? All the extra code added to allow Amazon Linux to work easily would be nice to have right now but I don't want to use the master branch of github as a source."}}