 |
If your site face this type of problem that display this message "Fatal
error: Allowed memory size of XXXXXXXX bytes exhausted (tried to
allocate XX bytes) in /home/root/public_html/content/components/com_sef/cache/shCacheContent.php
on line 4203". It might be cause from your Memory Allocation
setting in your PHP.ini setting. Normally for those who use paid hosting
that using shared server, they cannot access the php.ini file because
this file can only be access by the technician of web provider only. So,
to overcome this problem, we will show you how to limit your memory
usage so that it cannot exceed the limit. |
First, you need to log in into your cpanel setting. On the files section,
choose the File Manager option to open your files directory. In the root
directory, search for "public_html" folder. In that folder, create a file name
".htaccess". If the file already existed, just tick on the file and edit it
using code editior.
You just copy this code :
<FilesMatch "\.(php|html?)$">
php_value memory_limit 20000000
</FilesMatch>
into that file and saved that file. You don't need to alter other code in
this file if you don't need to do so. Finally, you're finish! You site now
back to normal. You can now view your frontend site.
|