After installation I have been trying to test if PHPIDS s start logging ...

But i ended up with the following (just from entering the base URL) www.mydomain.com

Fatal error: Uncaught exception 'Exception' with message 'Cache file couldn't be created' in 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/Caching/File.php:138 Stack trace: #0 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/Filter/Storage.php(264): IDS_Caching_File->setCache(Array) #1 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/Filter/Storage.php(107): IDS_Filter_Storage->getFilterFromXML() #2 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/Monitor.php(185): IDS_Filter_Storage->__construct(Object(IDS_Init)) #3 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/phpids.module(81): IDS_Monitor->__construct(Array, Object(IDS_Init)) #4 
/home/xxx/public_html/mydomain/includes/module.inc(471): phpids_init() #5 
/home/xxx/public_html/mydomain/includes/common.inc(2563): module_invoke_all() #6 
/home/xxx/public_html/mydomain/includes/bootstrap.inc(1050): _drupal_bootstrap_full() #7 
/home/xxx/public_html/mydomain/includes/bootstrap. in 
/home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/Caching/File.php on line 138

the directory IDS/tmp in /home/xxx/public_html/mydomain/sites/all/modules/phpids/IDS/tmp does show permissons 666 (which i assume is correct). so i have not the slightest idea what could be the reason for this error ...

please help !

Comments

bavarian’s picture

when changing permissions of the directory IDS/tmp from 666 to 777 everything seems to work now. but wondering if 777 would be ok to keep for this directory ?

it-cru’s picture

please try out 770 permissions. I think this could be enough to write the caching files if the user/group combinations on your webserver are correct.

bavarian’s picture

yes, even with permissions set to 770 for this folder IDS/tmp everything seems to work fine.

thank you!

it-cru’s picture

Title: Fatal error: Uncaught exception » [CLOSED] Fatal error: Uncaught exception
Status: Active » Closed (fixed)

closed