The other two answers are fine, but I wanted to provide a proof which uses no machinery at all.
Because $x^2 + 5 = 0$ in $R$, all elements of $R$ have the form $ax+b$.
So, suppose for a contradiction that $f$ exists and write $f = ax+b$. Note that $2\in (f)$ and $(f)\neq R$ by hypothesis, so the next proposition gives us the only possibility for $f$.
Proposition: If $2\in (f)$ and $(f)\neq R$, then $f = \pm 2$.
Since $2\in(f)$, we must be able to find $g = cx + d$ with $fg = 2$.
This gives $$2 = (ax+b)(cx+d) = acx^2 + (ad+bc)x +bd = bd-5ac + (ad+bc) x.$$ which leads to the system of equations $$\begin{cases} bd-5ac &= 2\\ ad+bc &= 0\end{cases}.$$
If $b = 0$, the first equation gives $-5ac = 2$, giving an obvious contradiction. Thus, we must have $b\neq 0$. Since $(f) = (-f)$, we may therefore assume that $b > 0$. The second equation can now be solved for $c$, giving $c = - \frac{ad}{b}$. Substituting this into the first equation, we find $bd + 5a\frac{ad}{b} = 2$, which simplifies to $(b^2 + 5a^2) d = 2b$.
This tells you that $b^2 + 5a^2$ divides $2b$. However, $b^2 > 2b$ unless $b\leq 2$. Thus, we have two cases to consider: $b=1$ or $b=2$.
If $b=1$, we find $(1+5a^2)d = 2$ which obviously implies that $a = 0$. But then $f = 1$, so is a unit, so $(f) = R$, giving a contradiction.
If $b=2$, we find $(4+5a^2)d = 4$, which again implies $a=0$. Thus, $f=2$. $\square$
So, we now know that $f = \pm 2$. Can $x+1\in (f)$? Well if so, this means that there is an $h = Cx + D$ with $fh = \pm2(Cx+D) = x+1$. This gives $2C = \pm 1$ and $2D = \pm 1$, which obviously has no solution. Thus, the case $f=\pm 2$ is ruled out. Having ruled out all possible choices for $f$, the ideal $(2,x+1)\subseteq R$ must be not principal.