在此服务器上找不到请求的URL / solr / admin / ping

时间:2014-09-02 09:57:00

标签: php symfony solr

我正在使用nelmio/solarium-bundle。我已配置此捆绑包但运行此测试文件时出错:

  

的Symfony /销售商/日光浴/日光浴/示例/ 1.1 - 检查 - 日光浴室和 - ping.php

这是错误:

Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with message ' in C:\wamp\www\Symfony2\vendor\solarium\solarium\library\Solarium\Core\Query\Result\Result.php on line 103

Solarium\Exception\HttpException: Solr HTTP error: OK (404) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /solr/admin/ping was not found on this server.</p> <hr> <address>Apache/2.4.9 (Win64) PHP/5.5.12 Server at 127.0.0.1 Port 80</address> </body></html> in C:\wamp\www\Symfony2\vendor\solarium\solarium\library\Solarium\Core\Query\Result\Result.php on line 103

这是我在config.yml中的捆绑配置:

nelmio_solarium: ~

我修改了config.dist.php文件:

$config = array(
    'endpoint' => array(
        'localhost' => array(
            'host' => '127.0.0.1',
            'port' => null,
            'path' => '/solr',
        )
    )
);

1 个答案:

答案 0 :(得分:3)

为什么你的端口为空它应该像8983那样。