Setup Dgsphinxsearch Extension

Hello! I’d like to include Sphinx into my project; I downloaded archieve using link from article about dgsphinxsearch extension, and added all files into protected/components catalog. Now there are the following files in protected/components catalog:

sphinx-1.3.0 (folder)




Also I added some lines into the config file:

        'search' => array(

            'class' => 'application.components.DGSphinxSearch',

            'server' => '',

            'port' => 9312,

            'maxQueryTime' => 3000,




And some text action into my SiteController:

    public function actionTest() 


$search = Yii::App()->search->




I got the following exception: Alias "application.components.DGSphinxSearch" is invalid. Make sure it points to an existing PHP file and the file is readable.

Also I tried to copy all files from the “sphinx-1.3.0” folder into protected/components folder, but it didn’t help. How can I fix my problem? Thanks in advance.

This may due to the the access permission of some files of this widget, try "chmod 777 -R your_sphinx_ext_dir"