除了在本地机器上实现Google Glass mirror-api快速入门项目之外,还有没有其他人遇到过问题?该页完全空白,并在移动到远程服务器时返回500错误。已安装全灯堆栈。
如果有人想了解更多信息,请让我知道。我完全遵循了Google的指示,就像我说的,它在本地工作。
在apache2日志中找到以下内容:
PHP Fatal error: Uncaught exception 'Exception' with message 'Google CurlIO client requires the CURL PHP extension' in /var/www/playground/glass/google-api-php-client/src/io/Google_CurlIO.php:47\nStack trace:\n#0 /var/www/playground/glass/google-api-php-client/src/Google_Client.php(106): Google_CurlIO->__construct()\n#1 /var/www/playground/glass/mirror-client.php(35): Google_Client->__construct()\n#2 /var/www/playground/glass/index.php(25): get_google_api_client()\n#3 {main}\n thrown in /var/www/playground/glass/google-api-php-client/src/io/Google_CurlIO.php on line 47发布于 2013-11-13 13:45:24
我尝试将其迁移到DigitalOcean droplet,但立即收到了500个错误。查看PHP错误日志(奇怪的是,没有Apache2错误),我发现抛出了一个PHP错误:
Google CurlIO client requires the CURL PHP extension由于某种原因,默认情况下,DigitalOcean的LAMP堆栈上没有安装PHP-curl扩展,我的任何其他虚拟服务器上也没有安装PHP-curl扩展(我花了两天时间在多个环境中尝试)。对于任何处于同一条船上的人来说,这都可以通过sudo apt-get install php5-curl轻松解决。
https://stackoverflow.com/questions/19945572
复制相似问题