{"action":"created","issue":{"url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/146","repository_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration","labels_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/146/comments","events_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/146/events","html_url":"https://github.com/jeff1evesque/drupal-demonstration/issues/146","id":99960730,"number":146,"title":"Upgrade default Centos to PHP 5.6.xx","user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-10T03:14:52Z","updated_at":"2016-02-11T20:40:16Z","closed_at":"2016-02-11T20:40:16Z","body":"We will upgrade the default PHP that comes with Centos (6.6 is 5.3.3, 7.2 is 5.4.16), to PHP 5.6.xx in our puppet manifest, `default.pp`:\r\n\r\n**Centos 6.6:**\r\n\r\n```bash\r\n$ php -v\r\nPHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00)\r\nCopyright (c) 1997-2015 The PHP Group\r\nZend Engine v2.3.0, Copyright (c) 1998-2015 Zend Technologies\r\n$ cd ~\r\n$ wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm\r\n$ wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm\r\n$ sudo rpm -Uvh epel-release-6*.rpm\r\n$ sudo rpm -Uvh remi-release-6*.rpm\r\n$ sudo nano /etc/yum.repos.d/remi.repo\r\n```\r\n\r\nThen, we need to ensure the following is present in `remi.repo`:\r\n\r\n```\r\n...\r\n[remi]\r\nname=Les RPM de remi pour Enterprise Linux 6 - $basearch\r\n#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/\r\nmirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi\r\n...\r\n[remi-php56]\r\nname=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch\r\n#baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/\r\nmirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror\r\n# WARNING: If you enable this repository, you must also enable \"remi\"\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi\r\n...\r\n```\r\n\r\nThen, we can upgrade PHP:\r\n\r\n```bash\r\n$ sudo yum update -y\r\n```\r\n\r\nFinally, we will see that our original PHP 5.3.3 has been upgraded: \r\n\r\n```bash\r\n$ php -v\r\nPHP 5.6.12 (cli) (built: Aug  6 2015 08:53:05)\r\nCopyright (c) 1997-2015 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies\r\n```\r\n\r\n**Note:** to update to PHP 5.5.xx, we need to ensure `enabled=1` within the `[remi-php55]` section (instead of `[remi-php56]`) of `/etc/yum.repos.d/remi.repo`.\r\n\r\n**Note:** if we want to downgrade, we will need to remove PHP, via `sudo yum remove php*`, then reinstall the PHP modules we want."},"comment":{"url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/comments/183052671","html_url":"https://github.com/jeff1evesque/drupal-demonstration/issues/146#issuecomment-183052671","issue_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/146","id":183052671,"user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T20:40:16Z","updated_at":"2016-02-11T20:40:16Z","body":"This issue has been resolve for the interim via:\r\n\r\n- https://github.com/jeff1evesque/drupal-demonstration/blob/258b5559757a10658c681b51e1c0e0ecc91e2c18/puppet/environment/development/manifests/configure_php.pp#L53"}}