# Max\_execution\_time per server {}

**URL:** <https://www.ruby-forum.com/t/max-execution-time-per-server/201678>\
**Category:** NGINX\
**Created:** [January 12, 2011, 7:14pm UTC](https://www.ruby-forum.com/t/max-execution-time-per-server/201678 "2011-01-12T19:14:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 12, 2011, 7:14pm UTC](https://www.ruby-forum.com/t/max-execution-time-per-server/201678/1 "2011-01-12T19:14:20Z")

</div>

Hi

We are trialling nginx as a httpd for drupal + civicrm. Everything is  
working very well. However one thing we would like to do is to set a  
max\_execution\_time per server {} rather than just relying on a default  
setting in php.ini set higher than is actually desirable for all sites.

Is this possible?

Thanks

Bails

Posted at Nginx Forum:

> **[max\_execution\_time per server {}](https://forum.nginx.org/read.php?2,165640,165640#msg-165640)**
>
> Hi We are trialling nginx as a httpd for drupal + civicrm. Everything is working very well. However one thing we would like to do is to set a max\_execution\_time per server {} rather than just relying on a default setting in php.ini set higher than is...

---

<div class="post-metadata">

**Author:** ![bails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@bails](https://www.ruby-forum.com/u/bails)\
**Post date:** [January 12, 2011, 7:31pm UTC](https://www.ruby-forum.com/t/max-execution-time-per-server/201678/2 "2011-01-12T19:31:57Z")

</div>

On 12 Jan 2011 18h13 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi
> 
> We are trialling nginx as a httpd for drupal + civicrm. Everything  
> is working very well. However one thing we would like to do is to  
> set a max\_execution\_time per server {} rather than just relying on a  
> default setting in php.ini set higher than is actually desirable for  
> all sites.

Put a php.ini file in the root directory of your site and set the  
runtime parameters there. Note that this file has to be readable by  
the CGI process.

You can also, in the case of Drupal (I have no experience with  
CivicCRM) set it in the settings.php file using  
ini\_set(‘max\_execution\_time’, );

— appa
