WebサイトのWebページにアクセスしようとすると、次のエラーログが表示されます。
in LdapManager.php (line 86)
at LdapManager->__construct(object(Configuration))
in appDevDebugProjectContainer.php (line 2051)
at appDevDebugProjectContainer->getLdapTools_LdapManagerService()
in classes.php (line 5406)
at Container->get('ldap_tools.ldap_manager')
in appDevDebugProjectContainer.php (line 2494)
at appDevDebugProjectContainer->getProfilerService()
in classes.php (line 5406)
at Container->get('profiler')
in appDevDebugProjectContainer.php (line 2507)
at appDevDebugProjectContainer->getProfilerListenerService()
in classes.php (line 5406)
at Container->get('profiler_listener')
in appDevDebugProjectContainer.php (line 733)
at appDevDebugProjectContainer->{closure}()
in classes.php (line 5644)
at EventDispatcher->sortListeners('kernel.exception')
in classes.php (line 5528)
at EventDispatcher->getListeners('kernel.exception')
in classes.php (line 5719)
at ContainerAwareEventDispatcher->getListeners('kernel.exception')
in TraceableEventDispatcher.php (line 250)
at TraceableEventDispatcher->preProcess('kernel.exception')
in TraceableEventDispatcher.php (line 139)
at TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))
in classes.php (line 7121)
at HttpKernel->handleException(object(FileLoaderLoadException), object(Request), 1)
in classes.php (line 7053)
at HttpKernel->handle(object(Request), 1, true)
in Kernel.php (line 169)
at Kernel->handle(object(Request))
in app_dev.php (line 29)
これはapp_dev.phpファイルです:
<?php
use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
//umask(0000);
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['1xx.0.0.1','1xx.0.16.163','1xx.0.0.250','1xx.0.0.226','1xx.0.0.233','::1'], true) || PHP_SAPI === 'cli-server')
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
require __DIR__.'/../vendor/autoload.php';
Debug::enable();
$kernel = new AppKernel('dev', true);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
}
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
これはこのプロジェクトの最初のバンドルです。パスが正しいかどうかも確認しましたが、問題ありません。設定ファイルは見栄えがよく、ISPConfigも同様です。どこを見ればいいのかわからない。
ありがとう!
https://github.com/ldaptools/ldaptoolsとhttps://github.com/ldaptools/ldaptools-bundleを使用しているようです。そのため、app / config /config.ymlで適切な構成を提供する必要があります。
詳細については、スタートガイドを確認してください:https://github.com/ldaptools/ldaptools-bundle
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加