Error message
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3214636 bytes) in E: VertrigoServwwwinstall. php on line 488
Create a phpinfo. Php file and write the following code:
<? Php phpinfo ();?>
Then you can view your memory.
Insufficient php memory allocation:
1. Modify php. ini (recommended)
The code is as follows: |
Copy code |
Memory_limit = 12 M (larger)
|
2. Add the following statement to the program:
Modify php memory settings during runtime
Add the following command line to your php code.
The code is as follows: |
Copy code |
<? Php 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 200 M PHP value post_max_size 200 M Php_value upload_max_filesize 200 M |
What should memory_limit be set?
This is totally dependent on your application requirements. For example, Wordpress requires 32 MB to run the core code. Drupal 6 requires a minimum value of 16 MB and is recommended to be set to 32 MB. If you install many plug-ins, especially those that require image processing, you may need MB or higher memory.