Homeostasis in adult organs involves replacement of cells from a stem cell pool maintained in specialized niches regulated by extracellular signals. This cell-to-cell communication employs signal transduction pathways allowing cells to respond with a variety of behaviors. To study these cellular behaviors, signaling must be perturbed within tissues in precise patterns, a technique recently made possible by the development of optogenetic tools. We developed tools to study signal transduction in vivo in an adult fly midgut stem cell model where signaling was regulated by the application of light. Activation was achieved by clustering of membrane receptors EGFR and Toll, while inactivation was achieved by clustering the downstream activators ERK/Rolled and NFκB/Dorsal in the cytoplasm, preventing nuclear translocation and transcriptional activation. We show that both pathways contribute to stem and transit amplifying cell numbers and affect the lifespan of adult flies. We further present new approaches to overcome overexpression phenotypes and novel methods for the integration of optogenetics into the already-established genetic toolkit of Drosophila.