RATIONALE: Drugs such as temsirolimus and valproic acid may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth. Valproic acid may also stop the growth of solid tumors by blocking blood flow to the tumor.