E
E
Evgeny2014-12-23 16:38:12
PHP
Evgeny, 2014-12-23 16:38:12

Why is the memory_limit value not being set in php.ini?

I'm trying to change the value of memory_limit in php.ini. PHP works like an Apache module.
phpinfo() says:

Loaded Configuration File	/etc/php5/apache2/php.ini

In this file, the value of the directive was changed. But no result - phpinfo still shows 512M (checked all "Additional .ini files parsed", apache2.conf, .htaccess and virtualhost config file, but didn't find overrides anywhere).
The docs say that before version 5.2.1 you had to compile with the --enable-memory-limit flag , but phpinfo says "PHP Version 5.5.9-1ubuntu4" and 5.5.9 > ​​5.2.1
What's the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2014-12-23
@jennik

The first is to restart Apache, the second is to see if the parameter is overloaded in xtaccess or php code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question