L
L
Li_ Ma2014-10-19 19:42:52
Apache HTTP Server
Li_ Ma, 2014-10-19 19:42:52

How to set max_execution_time on DigitalOCean?

It is worth Vesta
This is some kind of hell. I do a restart.
Already uploaded htaccess

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_input_time 300
php_flag max_execution_time 300 
</IfModule>

# END WordPress

and php.ini settings:
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 200M
max_input_time = 300
max_execution_time = 300

The problem is that only the Master Value changes, while the locale stays the same.
What to do?
ps I know that the values ​​differ in these files, but not up to them yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sydorenko, 2014-10-21
@San40

Hello!
why in .htaccess php_flag max_execution_time 300php_flag and not php_value ??
well, you can also try it directly from the code, in the script

<?php

ini_set('max_execution_time', 300);
echo ini_get('max_execution_time'); // 100

?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question