# Sphinx port issue?

**URL:** <https://www.ruby-forum.com/t/sphinx-port-issue/153275>\
**Category:** Ferret\
**Created:** [November 14, 2008, 10:03am UTC](https://www.ruby-forum.com/t/sphinx-port-issue/153275 "2008-11-14T10:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [November 14, 2008, 10:03am UTC](https://www.ruby-forum.com/t/sphinx-port-issue/153275/1 "2008-11-14T10:03:37Z")

</div>

Hi,

I am using thinking sphinx on a shared server. I tried to set up Cron  
Job with the following command:

rake thinking\_sphinx:stop RAILS\_ENV=production;rake  
thinking\_sphinx:index RAILS\_ENV=production;rake thinking\_sphinx:start  
RAILS\_ENV=production

The above command works in development. But it doesn’t work in  
production when being set up as Cron Job for user account on a shared  
server. Interestingly enough, when I try to run the command via putty  
session with a designated port, say port 40000, the command works. Do  
you think this is a port issue in searchd Cron?

searchd  
{  
address = 127.0.0.1  
port = 3312  
log =  
/home/maestrouser/public\_html/maestro/releases/20080912202939/log/searchd.log  
query\_log =  
/home/maestrouser/public\_html/maestro/releases/20080912202939/log/searchd.query.log  
read\_timeout = 5  
max\_children = 30  
pid\_file =  
/home/maestrouser/public\_html/maestro/releases/20080912202939/log/searchd.production.pid  
max\_matches = 1000  
}
