user2138582
user2138582

Reputation: 33

Increased memory_limit and not reflecting

Wrote info.php file with phpinfo function And their i found php.ini file path in /etc/php5/apache2/php.ini. Opened php.ini file and changed memory_limit from 256M to 512M.Using shell command called 'service apache2 restart' apache was restarted.

And again executed info.php. But it is showing the same 256M. memory_limit not updated with 512 M. Working on Apache/2.2.16 (Debian).

Tried a lot and lot. Restarted, reloaded apache2 in hundreds of times. But no change.

Please can anyone can help me.

Thanks in advance.

Upvotes: 1

Views: 932

Answers (1)

Pramod Kumar Sharma
Pramod Kumar Sharma

Reputation: 8012

Please check the path of php.ini from where the file is loaded. There are many php.ini files so make sure you change in the correct php.ini file.

Upvotes: 3

Related Questions