Unable to get max_post_size php variable value on lunar pages

I need to increase the maximum message size and load the size for php in order to use drupal audio module. I read that this should be installed in php.ini. However, I do not think that I have access to this file on the lunar pages. I also read that it can also be installed in .htaccess. However, this does not change anything.

I tried:

php_value post_max_size "40M"
php_value upload_max_filesize "40M"

I also tried:

php_value post_max_size 40M
php_value upload_max_filesize 40M

The local host says restarting the web server. But this is not possible for a shared host. Could this be a problem?

+3
source share
2 answers
0
source

It is likely that your hosting provider has disabled the change of these values ​​locally - for the obvious reason that otherwise everyone could circumvent the restrictions at their discretion, making them useless.

(Removed ini_setexample, as @Pascal says, these restrictions apply until the script is executed.)

You may have to talk to your hosting provider if you want to change this.

+4
source

Source: https://habr.com/ru/post/1738769/


All Articles