Viruses are not classified in the tree of life. Virus consist of DNA or RNA enclosed within a protein coat. Sometimes there is also a lipid bilayer around the coat. Viruses can not replicate outside of a living cell. They are obligate parasites.
Some bacteria are photosynthetic.
There are two distinct kinds of bacteria. They include most animal pathogens and other commonly encountered bacteria. Fungi are eucaryotes. Fungi are not photosynthetic. They are photosynthetic.