Modify the memory_limit limit of PHP in three ways. Memory_limit is php. an important parameter in ini, which can limit the maximum memory usage of php. if it is small, the system prompts FatalError: Allowedmemo memory_limit is php. an important parameter in ini, which can limit the maximum memory usage of php. if it is small, it will cause Fatal Error: allowed memory size of xxxxxx bytes exhausted error. let's take a look at the solution.
Edit php. ini. in php. ini, find "memory_limit". if not, add this parameter at the end of the file. The following are some configuration examples:
Memory_limit = 128 M; you can change M to any value you want to set.
Save files
Restart the web server of the php web server to use Apache. run the following command:
Httpd restart
You may not be allowed to modify php. ini. You can use other methods to increase the value of memory_limit.
Method 2:. htAccess
Note: This method takes effect only when php is executed using the Apache module. Find the ". htaccess" file in the root directory of your website. if not, create one by yourself. Then put the following configuration into it:
Php_value memory_limit 128 M; you can change M to any value you want to set.
Modify memory_limit size method 3: modify php memory settings during runtime
Add the following command line to your php code.
Ini_set ('memory _ limit ', '128m ');
Internal Error: Allowed memo...