# Fancyhdr Pagenumbering at chapter

I have the following problem. I need a header in my master thesis. I have a template for that. The fancyhdr package has problems with scrbook. Now I have found the following solution:

\usepackage[automark,headsepline,plainheadsepline]{scrlayer-scrpage}
\clearpairofpagestyles
%\renewcommand\chaptermarkformat{\ifnumbered{chapter}{\chapapp\ \thechapter. \ }{}}

\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}

\fancypagestyle{plain}{

}

%\fancypagestyle{empty}{
%  \fancyhf{}
%}


However, I only get a numbering, when a chapter begins. Can someone help a newbie?

Do not use both packages scrlayer-scrpage and fancyhdr in the same document. With a KOMA-Script class scrlayer-scrpage is recommended.

I do not know how the desired layout looks like, but may be the following helps:

\documentclass{scrbook}
\usepackage{blindtext}% only for dummy text


But if you decide to use fancyhdr, then remove all scrlayer-scrpage code from your document.