Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/255.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Glass PHP快速启动项目仅适用于本地主机_Php_Apache_Google Mirror Api_Google Glass - Fatal编程技术网

Glass PHP快速启动项目仅适用于本地主机

Glass PHP快速启动项目仅适用于本地主机,php,apache,google-mirror-api,google-glass,Php,Apache,Google Mirror Api,Google Glass,在本地机器以外的任何机器上实现Google Glass mirror api快速启动项目时,是否有其他人遇到过问题?该页面完全为空,在移动到远程服务器时返回500错误。安装了完整的灯组 如果有人想了解更多信息,请告诉我。我完全按照谷歌的指示去做,就像我说的,它在本地工作 在apache2日志中找到: PHP Fatal error: Uncaught exception 'Exception' with message 'Google CurlIO client requires the CU

在本地机器以外的任何机器上实现Google Glass mirror api快速启动项目时,是否有其他人遇到过问题?该页面完全为空,在移动到远程服务器时返回500错误。安装了完整的灯组

如果有人想了解更多信息,请告诉我。我完全按照谷歌的指示去做,就像我说的,它在本地工作

在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

我试图将其迁移到一个DigitalOcean水滴上,但我立即遇到了500个错误。查看Apache2错误日志(奇怪的是,没有PHP错误),我发现抛出了一个PHP错误:

Google CurlIO client requires the CURL PHP extension

出于某种原因,PHP curl扩展默认情况下没有安装在DigitalOcean的LAMP堆栈上,也没有安装在我的任何其他虚拟服务器上(我花了两天时间在多个环境中尝试)。这一问题很容易通过
sudo apt get install php5 curl解决。

我试图将其迁移到DigitalOcean droplet,但立即遇到500个错误。查看Apache2错误日志(奇怪的是,没有PHP错误),我发现抛出了一个PHP错误:

Google CurlIO client requires the CURL PHP extension
出于某种原因,PHP curl扩展默认情况下没有安装在DigitalOcean的LAMP堆栈上,也没有安装在我的任何其他虚拟服务器上(我花了两天时间在多个环境中尝试)。这很容易通过一个
sudo-apt-get-install php5-curl
为同一条船上的任何人解决