<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Michael,<br>
    <br>
    The problem is that blueonyx sets the php_admin_value
    max_execution_time in vhost :<br>
    <br>
    [root@sar-w10 vhosts]# cat /etc/httpd/conf/vhosts/site38 | grep
    php_admin_value<br>
    php_admin_value open_basedir
/var/lib/php/session/:/usr/bin/openssl:/usr/sausalito/configs/php/:/tmp/:/etc/mail/:/usr/lib/php/:/home/.sites/4/site38/<br>
    php_admin_value post_max_size 40M<br>
    php_admin_value upload_max_filesize 32M<br>
    <b>php_admin_value max_execution_time 120</b><br>
    php_admin_value max_input_time 60<br>
    php_admin_value memory_limit 128M<br>
    php_admin_value sendmail_path /usr/sausalito/sbin/phpsendmail<br>
    php_admin_value auto_prepend_file
    /usr/sausalito/configs/php/set_php_headers.php<br>
    <br>
    <br>
    When this values are set, they can't be overwritten by
    "set_time_limit()" or "ini_set()" functions :<br>
    <br>
    from
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <a href="http://php.net/manual/en/configuration.changes.php">http://php.net/manual/en/configuration.changes.php</a>
    :<br>
    <blockquote type="cite">php_admin_value name value<br>
      Sets the value of the specified directive. This can not be used in
      .htaccess files. Any directive type set with php_admin_value can <b>not</b>
      be overridden by .htaccess or ini_set(). To clear a previously set
      value use none as the value.<br>
    </blockquote>
    <br>
    I've tried yesterday, functions return false, and time limit is not
    adjusted.<br>
    <br>
    Regards,<br>
    Cédric<br>
    <br>
    <pre class="moz-signature" cols="72">OCEANET
---------------------------------------------------------------
[AGENCE DU MANS]
7, rue des Frênes
ZAC de la Pointe
72190 SARGE LES LE MANS
[t] +33 (0)2.43.50.26.50
[f] +33 (0)2.43.72.21.14

[AGENCE D'ANGERS]
5, rue Fleming
Angers Technopole
49066 ANGERS
[t] +33 (0)2.41.19.28.65
[f] +33 (0)2.52.19.22.00

<a class="moz-txt-link-freetext" href="http://www.oceanet.com">http://www.oceanet.com</a>
<a class="moz-txt-link-freetext" href="http://www.oceanet-telecom.com">http://www.oceanet-telecom.com</a></pre>
    <div class="moz-cite-prefix">On 08/04/2015 20:07, Michael Stauber
      wrote:<br>
    </div>
    <blockquote cite="mid:55256E77.4010905@blueonyx.it" type="cite">
      <pre wrap="">Hi Cédric,

</pre>
      <blockquote type="cite">
        <pre wrap="">Is there a way to overwrite blueonyx vhost's settings like 
"php_admin_value max_execution_time 30" ?
</pre>
      </blockquote>
      <pre wrap="">
The option "php_admin_value" can only be used in the Apache
configuration, not in .htaccess files. It also cannot be used via
"ini_set()" from within a script.

However, "max_execution_time" is a PHP_INI_ALL parameter, so you
wouldn't need to use "php_admin_value" for it:

<a class="moz-txt-link-freetext" href="http://php.net/manual/en/info.configuration.php">http://php.net/manual/en/info.configuration.php</a>

So the easiest way to use it for just one script would be to add this
line at the top of the PHP script in question:

ini_set('max_execution_time', 0);

That would set the execution time to unlimited for this script.

A better way might be to use this function instead of the ini_set(), though:

<a class="moz-txt-link-freetext" href="http://php.net/manual/en/function.set-time-limit.php">http://php.net/manual/en/function.set-time-limit.php</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>