ZF-3500: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'chmod(): Operation not permitted
When I try to re-create the index, I get this error. Let me know what to do? I'm using ZendFramework-1.0.3.
PHP Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'chmod(): Operation not permitted' in ~/Zend/Search/Lucene/Storage/Directory/Filesystem.php:189 Stack trace:
0 /var/www/daedalus/htdocs/kishore/bioethics3/Zend/Search/Lucene.php(210): Zend_Search_Lucene_Storage_Directory_Filesystem->createFile('index.lock')
1 Zend/Search/Lucene.php(171): Zend_Search_Lucene->__construct('/var/www/daedal...', true)
2 createindex.php(16): Zend_Search_Lucene::create('/var/www/kishore/...')
thrown in Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 189
I actually wrote a php script to create index, which is being called by a cron file.
I will appreciate if someone gives me a solution.