When running dedecms today, some pages will prompt Fatal Error: Allowed memory size of 123456789 bytes exhausted. Let me introduce how to solve some problems.
Error message
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3214636 bytes) in E:VertrigoServwwwinstall.php on line 488
We directly create a phpinfo.php file and write the following code
Then you can check your memory
Insufficient php memory allocation:
1. Modify php.ini (recommended)
代码如下 |
复制代码 |
memory_limit = 12M (改大点)
|
2. Add the following statements in the program
Modify php’s memory settings during runtime
Just add the following command line to your php code.
The code is as follows
代码如下 |
复制代码 |
ini_set('memory_limit','128M');
?>
|
|
Copy code
|
代码如下 |
复制代码 |
php_value max_execution_time 1200
php_value memory_limit 200M
php_value post_max_size 200M
php_value upload_max_filesize 200M
|
ini_set('memory_limit','128M');
?> |
3. Create a .htaccess file in the root directory and add the following content
The code is as follows
|
Copy code
php_value max_execution_time 1200
php_value memory_limit 200M
php_value post_max_size 200M
php_value upload_max_filesize 200M
What should the memory_limit be set to?
http://www.bkjia.com/PHPjc/632094.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632094.htmlTechArticleWhen running dedecms today, some pages will prompt Fatal Error: Allowed memory size of 123456789 bytes exhausted, below I Let me introduce to you how to solve some problems. Error message...
|
|