These are called Electronic Lab Notebooks (ELN).
Here are some of the open source options I've looked at:
The new IPython Notebook (inspired by the Sage notebook, I believe)which can now be run as a webapp on EC2 and Azure.
Leo, which can be used as an ipython notebookwith IPython and in many other ways.
Various wiki, blogging, and CMS solutions.