谷歌驱动器在本地工作,但不在生产服务器上


Google drive working locally but not on production server

我正试图将谷歌驱动器与我的web应用程序使用reddit与php集成。当我在本地测试Google的php脚本时,我能够进入身份验证页面。但是,当我将脚本上传到生产服务器时,我得到了错误:

PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed
opening required 'lib/apiclient/contrib/Google_OAuth2Service.php' 
(include_path='/home/my_username/public_html/google_drive/lib/apiclient:.:/usr/lib/php:/usr/local/lib/php')
in /home/my_username/public_html/google_drive/index.php on line 24

是否有任何额外的配置必须做,可能是服务器相关的?我已经三次确认我已经上传google_oauth2service。php到服务器了

您是否生成并设置了一个新的API密钥(其域名特定)?

OK…事实证明,gitHub上的文件名是"Google_Oauth2Service.php",而它应该是"Google_Oauth2Service.php"(注意大写"A");由于我的本地服务器对文件名不区分大小写,所以没有问题。我已经把问题提交到github.