She did it by herself all.
She did it all by herself.
The first sentence is unidiomatic and incorrect grammatically, whereas the second one is OK.
All as an adverb is always used before by herself, by myself, by themselves, etc. to form idiomatic phrases.
Besides, "by" is a preposition and "by myself is an adverbial phrase. You always use all + adjective/preposition/adverbial.