Forums

[resolved] [Plugin: WordPress Sphinx Search Plugin] ERROR: error executing '/usr/bin/php' (4 posts)

  1. Gforge
    Member
    Posted 2 years ago #

    /var/www/blogger/data/www/bloggerru/wp-content/uploads$ /var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/bin/searchd --config /var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/sphinx.conf
    [Thu Feb 24 16:58:03.162 2011] [32621] using config file '/var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/sphinx.conf'...
    [Thu Feb 24 16:58:03.415 2011] [32621] FATAL: failed to parse config file '/var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/sphinx.conf'
    Sphinx 0.9.9-release (r2117)
    Copyright (c) 2001-2009, Andrew Aksyonoff
    
    ERROR: error executing '/usr/bin/php' in /var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/sphinx.conf line 1 col 1.

    I tried #!/usr/bin/php -q and #!/usr/bin/php-cli - same result .

    -rwxrwxrwx 1 www-data www-data 8448 Feb 24 16:22 sphinx.conf

    /root$ which php
    /usr/bin/php

    Header

    #!/usr/bin/php
    <?php
    require_once('/var/www/blogger/data/www/bloggerru/wp-config.php');
    ini_set('short_open_tag', 0);
    ?>
    ##########################
    # WARNING: it is not original sphinx.conf - this file adopted to sphinx
    # which installed by wordpress Sphinx Search plugin.
    # Don't use this file as example of sphinx configuration,
    # better visit the official doc page at http://www.sphinxsearch.com/doc.html
    ##########################

    Please help! Many thanks.

  2. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

    Hmm, strange.
    Try the simple test.
    Create test.conf with following content:

    #!/usr/bin/php
    <?php
    ?>
    source min
    {
        type = mysql
        sql_host = localhost
        sql_user = root
        sql_pass =
        sql_db = test
        sql_query = select 1, 'Test'
    }
    
    index idx_min
    {
        path = idx
        source = min
    }
    
    searchd
    {
        listen = 9307:mysql41
        log = sphinx.log
        pid_file = sphinx2.pid
    }

    Try indexing:
    /var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/bin/indexer --config test.conf min_idx
    And try run searchd:
    /var/www/blogger/data/www/bloggerru/wp-content/uploads/sphinx/bin/searchd --config test.conf

  3. Gforge
    Member
    Posted 2 years ago #

    День добрый, спасибо что откликнулись .
    Вы правильно написали , что ошибка крайне странная .
    Вылечить ее я смог только полной перестановкой апача, пхп и прочего .
    3 дня над ней сидел и хоть ты тресни ничего не выходило .
    А как переставил - все установилось сразу )

  4. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

    This is nice.

    May I ask you on which domain WP Sphinx plugin will be installed?

    You may answer in private on my email yaroslav at ivinco dot com.

Topic Closed

This topic has been closed to new replies.

About this Topic