Title: [Plugin: WordPress Sphinx Search Plugin] ERROR: error executing &#039;/usr/bin/php&#039;
Last modified: August 19, 2016

---

# [Plugin: WordPress Sphinx Search Plugin] ERROR: error executing '/usr/bin/php'

 *  Resolved [Gforge](https://wordpress.org/support/users/gforge/)
 * (@gforge)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-sphinx-search-plugin-error-error-executing-usrbinphp/)
 *     ```
       /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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Yaroslav Vorozhko](https://wordpress.org/support/users/vorozhko/)
 * (@vorozhko)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-sphinx-search-plugin-error-error-executing-usrbinphp/#post-1936255)
 * 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
 *  Thread Starter [Gforge](https://wordpress.org/support/users/gforge/)
 * (@gforge)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-sphinx-search-plugin-error-error-executing-usrbinphp/#post-1936352)
 * День добрый, спасибо что откликнулись .
    Вы правильно написали , что ошибка крайне
   странная . Вылечить ее я смог только полной перестановкой апача, пхп и прочего.
   3 дня над ней сидел и хоть ты тресни ничего не выходило . А как переставил – 
   все установилось сразу )
 *  [Yaroslav Vorozhko](https://wordpress.org/support/users/vorozhko/)
 * (@vorozhko)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-sphinx-search-plugin-error-error-executing-usrbinphp/#post-1936356)
 * 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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WordPress Sphinx Search Plugin] ERROR: error executing '/usr/
bin/php'’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Yaroslav Vorozhko](https://wordpress.org/support/users/vorozhko/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-sphinx-search-plugin-error-error-executing-usrbinphp/#post-1936356)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
