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/ Omeka_Job_Process_Dispatcher::_checkCliPath('')
#1 /home/content/51/9193051/html/ Omeka_Job_Process_Dispatcher::getPHPCliPath()
#2 /home/content/51/9193051/html/ Omeka_Job_Process_Dispatcher::startProcess('Omeka_Job_Proce...', Object(User), Array)
#3 /home/content/51/9193051/html/ Omeka_Job_Dispatcher_Adapter_BackgroundProcess->send('{"className":"J...', Array)
#4 /home/content/51/9193051/html/ Omeka_Job_Dispatcher_Default->sendLongRunning('Job_SearchTextI...')
#5 /home/content/51/9193051/html/ SettingsController->editSearchAction()
#6 /home/content/51/9193051/html/ Zend_Controller_Action->dispatch('editSearchActio...')
#7 /home/content/51/9193051/html/ Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /home/content/51/9193051/html/ Zend_Controller_Front->dispatch()
#9 /home/content/51/9193051/html/ Zend_Application_Bootstrap_Bootstrap->run()
#10 /home/content/51/9193051/html/ Zend_Application->run()
#11 /home/content/51/9193051/html/ 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)