Setting > Search > Index Records php error

When I click the "index records"button in settings>search I get the following error:

The configured PHP path () is invalid.

#0 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Omeka/Job/Process/Dispatcher.php(94): Omeka_Job_Process_Dispatcher::_checkCliPath('')
#1 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Omeka/Job/Process/Dispatcher.php(28): Omeka_Job_Process_Dispatcher::getPHPCliPath()
#2 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Omeka/Job/Dispatcher/Adapter/BackgroundProcess.php(31): Omeka_Job_Process_Dispatcher::startProcess('Omeka_Job_Proce...', Object(User), Array)
#3 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Omeka/Job/Dispatcher/Default.php(150): Omeka_Job_Dispatcher_Adapter_BackgroundProcess->send('{"className":"J...', Array)
#4 /home/content/51/9193051/html/theredwoodhouse.org/application/controllers/SettingsController.php(112): Omeka_Job_Dispatcher_Default->sendLongRunning('Job_SearchTextI...')
#5 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Zend/Controller/Action.php(516): SettingsController->editSearchAction()
#6 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editSearchActio...')
#7 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#9 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#10 /home/content/51/9193051/html/theredwoodhouse.org/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#11 /home/content/51/9193051/html/theredwoodhouse.org/admin/index.php(28): Omeka_Application->run()
#12 {main}

How do I fix this?

Thank you!

Does your server have PHP-CLI installed, and do you know the path to it? You may have to look at documentation for your web host or ask them directly to find out.

Omeka tries to guess the right path to the PHP binary it needs to use to run background processes, but it can't always guess right. Often, the cause is either the server changing the name of the command to something like "php5" or "php-cli" instead of "php," or the server simply doesn't have the CLI installed.

If you have it, you can set the right path in the application/config/config.ini file, with the background.php.path line.

This worked, thank you so much! (set the correct path in the config.ini file)