this song has some strange variations of chord shapes but is easy.
intro/ chorus:
e---------------------------------------------------------------------
b---------------------------------------------------------------------
g-5-5-5------5-5-5----------------------------------------------------
d-3-3-3------2-2-2-----2-2-2-2-2-2---they play these chords more times
a----------------------0-0-0-0-0-0---than posted.---------------------
E---------------------------------------------------------------------
the verse has some d octaves droning with lots of reverb.
the last chorus/outro has the same chords as the intro just different shapes.
F Fcon#7? A then end on Dm
[ Tab from: https://www.guitartabs.cc/tabs/r/red_hot_chili_peppers/by_the_way_tab_ver_5.html ]