From fdf39a9cb1cb43d284efd5fd87dba49dde2d212c Mon Sep 17 00:00:00 2001 From: Aizat Faiz Date: Sat, 28 May 2011 02:13:53 +0800 Subject: [PATCH] Add PHP openssl extension as a dependency Summary: After successfully installing phabricator on my Mac OS X 10.6.7, I was unable to link my accounts to either Facebook or GitHub. I diagnosed that file_get_contents() and fopen() were not working properly. After installing the php openssl package I was able to get it linking successfully. Test Plan: With php's openssl extension disabled, and phabricator installed. Try linking to Facebook and GitHub and observe that it fails. You can visit the Auth Diagnostics page and "Facebook Graph" and "App Login" should fail. With php's openssl extension enabled, linking to Facebook and GitHub should be successful. Change the configuration to add "phabricator.setup = false". Disable php's openssl extension. Visit the phabricator site and observe that it requires you to install php's openssl extension. Enable php's openssl extension. Visit the phabricator site and observe that it installs fine. Reviewed By: epriestley Reviewers: epriestley CC: aran, epriestley Differential Revision: 352 --- src/infrastructure/setup/PhabricatorSetup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/setup/PhabricatorSetup.php b/src/infrastructure/setup/PhabricatorSetup.php index 60b148cb08..2dee932764 100644 --- a/src/infrastructure/setup/PhabricatorSetup.php +++ b/src/infrastructure/setup/PhabricatorSetup.php @@ -36,7 +36,8 @@ class PhabricatorSetup { 'mysql', 'hash', 'json', - 'pcntl' + 'pcntl', + 'openssl', ); foreach ($extensions as $extension) { $ok = self::requireExtension($extension);