PHP script timeout RoR counterpart?

Hello, I’m running Apache + fastcgi and I wonder how to allow a script
to run for a moderated period of time (up to 2 or 3 minutes - this is
for an intranet app, not a website)

At first, I think it should be the -idle-timeout parameter of the
FastCgiServer directive in Apache conf

Am I right ??

Thanks