I am trying to use berkeley DB with mod_cplusplus. My question is where should I put the server wide configurations, specifically opening the database environment. My initial idea was to use the post_config hook, but that doesn't seem to be implemented.
Any help would be appreciated!
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My coworker suggested that also. duh!! Not sure why I didn't think of it... I am tring to get that working now. I am getting an error, but its a Berkeley DB error when I try to open the environment.
Thanks so much for the quick response!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to use berkeley DB with mod_cplusplus. My question is where should I put the server wide configurations, specifically opening the database environment. My initial idea was to use the post_config hook, but that doesn't seem to be implemented.
Any help would be appreciated!
Peter
Hi -
Could you do it in your module constructor? That's loaded when the server is initialized. In prefork there should be one per process.
John
My coworker suggested that also. duh!! Not sure why I didn't think of it... I am tring to get that working now. I am getting an error, but its a Berkeley DB error when I try to open the environment.
Thanks so much for the quick response!
No problem, let me know if you have more questions.