\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
In lighttpd.conf (on Debian /etc/lighttpd/lighttpd.conf) add "broken-scriptfilename":

\begin{verbatim}

fastcgi.server = ( ".php" => ((
                        "bin-path" => "/usr/bin/php5-cgi",
                        "socket" => "/tmp/php.socket",
                        "max-proc" => 10,
                        "broken-scriptfilename" => "enable"
                 )))
\end{verbatim}

otherwise you will get the error saying "There has been no contact with the remote server for several minutes." after logging in on DIMP.

In php.ini (on Debian /etc/php5/cgi/php.ini) enable PATH\_INFO:

\begin{verbatim}

cgi.fix_pathinfo=1
\end{verbatim}

\end{document}
