Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have configured everything on sphinx. It is working fine in the command-line interface using Putty. Even i can able to search in the Command Line Interface as below,

[root@phpsalzer sphinx]# search -i gplay 'toy'
Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/etc/sphinx/sphinx.conf'...
index 'gplay': query 'toy ': returned 1 matches of 1 total in 0.000 sec

displaying matches:
1. document=2, weight=1883, app_id=com.disney.ToyStorySmashIt.goo, app_title=Toy Story: Smash It!, app_ratings=4.500000

words:
1. 'toy': 1 documents, 4 hits

But the issues is, i want to get the same result using php. But it returns the error like "ERROR: Query failed: connection to 172.16.1.77:9312 failed (errno=13, msg=Permission denied). "

Finally, It Seems that my sphinx port is not in LISTEN after checking the below commands,

service searchd status

The output is: searchd dead but subsys locked

netstat -tulpen | grep :9312

The output is nothing.

Please help me, what should i do next?

share|improve this question
    
Does searchd have a log in /var/logs? –  NickW Apr 2 '13 at 8:32
    
No. It doesn't have log files /var/logs –  Yadheendran Apr 2 '13 at 11:43
add comment

1 Answer 1

Try this on sphinx conf:

binlog_path = #

Then service searchd restart and service searchd status.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.