Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:27:58+00:00 2026-06-09T18:27:58+00:00

When accessing Sphinx programmatically from PHP using SphinxAPI, the query command causes my web

  • 0

When accessing Sphinx programmatically from PHP using SphinxAPI, the query command causes my web browser to think for about 30 seconds and then to fail without any log message I can find (or maybe a timeout?). So here is my code:

$cl = new SphinxClient();
$cl->SetServer("localhost", 9312);
$res = $cl->query($query, "isp");

At this point execution stops as if some error has occurred, but not logged in log or query_log locations of my sphinx.conf file.

For my sphinx.conf file, an abbreviated portion is:

searchd {
    listen = 9312
    listen = 9306:mysql41
    log = {$MY_BASE}\ISP_Sphinx\log\searchd.log
    query_log = {$MY_BASE}\ISP_Sphinx\log\query.log
    read_timeout = 5
    client_timeout = 300
    max_children = 30
    pid_file = {$MY_BASE}\ISP_Sphinx\log\searchd.pid
    {$ETC, ETC, ETC}
}

From the DOS prompt, the search tool works as expected.

I have searchd running as a Windows Service as documented at the SphinxSearch site. I could post more of the sphinx.conf is anyone cares. This situation does not seem to match up with any others I have seen on Google. Sometimes it is a port issue as can be seen in other questions, but I don’t think that is so here.

So what could be causing the query command to think and fail, or at least where else might errors be dumped? I have also checked the Apache2 logs and nothing there in regards to this problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:27:59+00:00Added an answer on June 9, 2026 at 6:27 pm

    Using localhost in Sphinx for Windows is a know issue. Please replace localhost by 127.0.0.1.

    As stated in SphinxSearch/Troubleshooting:

    Windows Vista and Windows 7 showed problems when $wgSphinxSearch_host is maintained as localhost therefore it is recommended that instead of localhost one uses 127.0.0.1 instead

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently asked about accessing data from SPSS and got some absolutely wonderful help
When accessing a form or query string value from code-behind in ASP.NET, what are
when accessing foo() of base using derived class's object. #include <iostream> class base {
am accessing a class from my webservice as [WebMethod(EnableSession = true)] public string fetchAbsentees(string
I am accessing an XML API (flight search comparison) via a PHP Proxy like
I am accessing wikipedia's api and getting information about a topic via ajax. The
Accessing following html directly from file system gives me the correct duration. <video src=multimedia/bbb400p.ogv
Possible Duplicate: Accessing Windows registry with PHP and DOTNET class Is there a way
I have trouble accessing Views from a layout that is included in another layout.
Accessing private transient object fields from any method in class must be controlled with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.