From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 17:59:29 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3848E942 for ; Tue, 20 Jan 2015 17:59:29 +0000 (UTC) Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEC8D21E for ; Tue, 20 Jan 2015 17:59:28 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id x3so12999412wes.1 for ; Tue, 20 Jan 2015 09:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:content-type:mime-version :content-transfer-encoding; bh=0moTa0KvspvrAzSizckoT3/vkeutdF8IsOLcpzBFMks=; b=Gtou9uc5jf0lS9yObKlfuXNvpIKddkUJU894m6+E4bSdFUI2e/qmbKjojpDkCDWM6R gJaS/fnKHk/C1sO3WCCBTiBY61TbS3cl1NBgHrs3DQJFDhjIcOteL1DhcClOdCp7+GCd PEYnY65N6ljhQnycFV/LdCvloZz2aY8ASn6O9Gh5cuvH6GVYF+z963DUggUJeJ+JkUfz l6BOSq1qm2UH3tcwCPXF1M0I7gePFBNn6m30SOmZ7MRXiySBy+G4M4WytbMhgoGH6bqq MQV0QfgQzGriPV118ElVzQUiTqO9GH1wd06XQsKSzv/wB2lAjq93p1nYl9+hopWKFN9w k9jw== X-Received: by 10.194.110.69 with SMTP id hy5mr74970990wjb.121.1421776766922; Tue, 20 Jan 2015 09:59:26 -0800 (PST) Received: from x220.optiplex-networks.com (optiplexnetworks.plus.com. [212.159.80.17]) by mx.google.com with ESMTPSA id ep9sm3974728wid.3.2015.01.20.09.59.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 09:59:26 -0800 (PST) Message-ID: <1421776765.3146.22.camel@gmail.com> Subject: Anyone running phpBB3 with oauth for Google and Facebook? From: Kaya Saman To: freebsd-questions Date: Tue, 20 Jan 2015 17:59:25 +0000 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 17:59:29 -0000 Hi, I'm wondering if anyone has setup phpBB3.1 on FreeBSD and authentication with Facebook and Google? Currently I am attempting to test on both Apache24 and Nginx but not having any luck with any of them. The basic forum and authentication works fine without any issues however the issue begins with external based oauth. It simply returns a white screen after going through login procedures from FB/Google. I have setup both FB/Google backends and have client ID's and Secrets for each. Php version being run is 56 built from ports and am using a Postgresql backend. With Nginx I have php-fpm and of course Apache24 has a module for php. Both logs suggest a similar issue and taking the Apache24 log as an example it is showing me this: [Tue Jan 20 17:05:05.791147 2015] [:error] [pid 10133] [client :13630] PHP Fatal error: Uncaught exception 'OAuth\\Common\\Http\ \Exception\\TokenResponseException' with message 'Failed to request resource.' in /usr/local/www/phpBB3/vendor/lusitanian/oauth/src/OAuth/Common/Http/Clie= nt/StreamClient.php:54\nStack trace:\n#0 /usr/local/www/phpBB3/vendor/lusit= anian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(97): OAuth\\Common= \\Http\\Client\\StreamClient->retrieveResponse(Object(OAuth\\Common\\Http\\= Uri\\Uri), Array, Array)\n#1 /usr/local/www/phpBB3/phpbb/auth/provider/oaut= h/service/facebook.php(69): OAuth\\OAuth2\\Service\\AbstractService->reques= tAccessToken('AQBuYcGxf76_8oa...')\n#2 /usr/local/www/phpBB3/phpbb/auth/pro= vider/oauth/oauth.php(198): phpbb\\auth\\provider\\oauth\\service\\facebook= ->perform_auth_login()\n#3 /usr/local/www/phpBB3/phpbb/auth/auth.php(937): = phpbb\\auth\\provider\\oauth\\oauth->login('', '')\n#4 /usr/local/www/phpBB= 3/includes/functions.php(2831): phpbb\\auth\\auth->login('', '', false, 1, = 0)\n#5 /usr/local/www/phpBB3/ucp.php(84): login_box('index.php')\n#6 {main}= \n thrown in /usr/local/www/phpBB3/vendor/lusitanian/oauth/src/OAuth/Commo= n/Http/Client/StreamClient.php on line 54, referer: http://:85/ucp.p= hp?mode=3Dlogin [Tue Jan 20 17:06:05.795329 2015] [:error] [pid 10135] [client 192.168.0.119:47111] PHP Fatal error: Uncaught exception 'OAuth\\Common \\Http\\Exception\\TokenResponseException' with message 'Failed to request resource.' in /usr/local/www/phpBB3/vendor/lusitanian/oauth/src/OAuth/Common/Http/Clie= nt/StreamClient.php:54\nStack trace:\n#0 /usr/local/www/phpBB3/vendor/lusit= anian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(97): OAuth\\Common= \\Http\\Client\\StreamClient->retrieveResponse(Object(OAuth\\Common\\Http\\= Uri\\Uri), Array, Array)\n#1 /usr/local/www/phpBB3/phpbb/auth/provider/oaut= h/service/facebook.php(69): OAuth\\OAuth2\\Service\\AbstractService->reques= tAccessToken('AQDazjJE3srAEf_...')\n#2 /usr/local/www/phpBB3/phpbb/auth/pro= vider/oauth/oauth.php(198): phpbb\\auth\\provider\\oauth\\service\\facebook= ->perform_auth_login()\n#3 /usr/local/www/phpBB3/phpbb/auth/auth.php(937): = phpbb\\auth\\provider\\oauth\\oauth->login('', '')\n#4 /usr/local/www/phpBB= 3/includes/functions.php(2831): phpbb\\auth\\auth->login('', '', false, 1, = 0)\n#5 /usr/local/www/phpBB3/ucp.php(84): login_box('index.php')\n#6 {main}= \n thrown in /usr/local/www/phpBB3/vendor/lusitanian/oauth/src/OAuth/Commo= n/Http/Client/StreamClient.php on line 54, referer: http://:85/ucp.p= hp?mode=3Dlogin&sid=3D7447624df297b6f14e910e7531a5521e The general config file for Apache vhost is this: DocumentRoot /usr/local/www/phpBB3 ServerName AddHandler application/x-httpd-php .php DirectoryIndex index.php Options +FollowSymLinks Require all granted AllowOverride None Originally I installed phpbb3 from @ports however, the version there is 3.0.x so I grabbed the latest version directly from the phpbb site which is 3.1.x. Would anyone be able to suggest what might be wrong or even better a fix?? Btw it is intentional for the site to be running on port 85 as it's only a throw-away demo test instance. Thanks. Kaya