0

https://simplesamlphp.org/docs/stable/simplesamlphp-install#section_7の指示に従って、Google App Engine で simpleSAMLphp を使用しようとしています。

手順 6 では、次を使用して apache を構成するように指示されています。

    <VirtualHost *>
        ServerName service.example.com
        DocumentRoot /var/www/service.example.com

        Alias /simplesaml /var/simplesamlphp/www
    </VirtualHost>

YAML ファイルに以下を追加しました。

handlers:  
- url: /simplesaml/(.*)
  script: /var/simplesamlphp/www/\1

しかし、私は何か他のことをする必要があると思います。

サーバーを実行してアクセスしようとするとhttp://localhost:8081/simplesaml/、次のエラーが表示されます。

Warning: require(C:\Users\Walmsley\Documents\sso\var\simplesamlphp\www): failed to open stream: Permission denied in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 115

Fatal error: require(): Failed opening required '\var\simplesamlphp\www' (include_path='C:\Users\Walmsley\Documents\sso;C:\Program Files (x86)\Google\google_appengine\php\sdk') in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 115

私はphpとsimpleSAMLが初めてです。また、Google App Engine でホストされている Java Web アプリで SAML を動作させようとしましたが、試した SAML パッケージで使用されているクラスの一部がホワイトリストに登録されていなかったため、失敗しました。

simpleSAMLphp を使用して Google App Engine php で SAML を動作させることは可能ですか?

URLを試してみると:http://localhost:8081/simplesaml/index.phpリダイレクト先http://localhost:8081/simplesaml/module.php/core/frontpage_welcome.php

そして、私はエラーが発生します:

Warning: chdir(): Invalid argument (errno 22) in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 42

Warning: require(\var\simplesamlphp\www\module.php\core\frontpage_welcome.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 115

Fatal error: require(): Failed opening required '\var\simplesamlphp\www\module.php\core\frontpage_welcome.php' (include_path='C:\Users\Walmsley\Documents\sso;C:\Program Files (x86)\Google\google_appengine\php\sdk') in C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php on line 115
4

1 に答える 1

0

エラーメッセージに基づいて、おそらくフォルダーがありません

C:\Users\Walmsley\Documents\sso\var\simplesamlphp\www

必ず作成して、そこに PHP スクリプトを配置してください。

于 2014-03-02T04:08:34.623 に答える