If you're encountering an error like "Allowed memory size of... in file /directory/folder/yourscript.php", it usually indicates that your script is exceeding the server's allocated memory limit. You can attempt to resolve this by adding a directive to your .htaccess file.

If the error continues after applying the suggested code, we recommend contacting our support team. We’ll do our best to assist you.

Step 1: Locate the .htaccess file for your primary domain. This is typically found in your public_html directory. If it doesn’t exist, you can create a new file and name it .htaccess.

Step 2: If the error is specific to a certain folder, add the code in the .htaccess file located in that particular directory. For example: example.com/directory/folder/.htaccess.

Step 3: Add the following code to your .htaccess file:

RLimitMem max

This directive removes the memory limit restriction, allowing scripts to use as much memory as they need (within the server's available resources).

Was this answer helpful? 0 Users Found This Useful (0 Votes)