• Resolved ms100

    (@ms100)


    Hello today,
    
    Hope you are doing well.
    
    In the documentation I find:
    
    What is the minimum RAM required to use with shared hosting?
    By default, WordPress allocates the memory limit to 256 MB. Combined with MySQL and Web Server, you need more than 256 MB. If you’re using a cheap hosting plan that allocates only 256 MB for totals usage. It is not enough, and Docket Cache can’t improve your website performance.
    
    I think I can allocate more resources, but I don't know where I can find how to do it. Could you please help me a little?
    
    This is my usage.
    
    This is my current PHP Memory Limit of 256M.
    
    Should I add the line "define('WP_MEMORY_LIMIT', '512M');" in wp-config.php file?
    Should I add the line "php_value memory_limit 512M" to .htaccess?
    Should I change it anywhere in cPanel?
    
    Should I double for example to 512M?
    
    Thank you very much for the support.
    
    Best regards,
    
    MS100
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi there,

    What is the minimum RAM required to use with shared hosting?

    Based on your cPanel site usage, 512MB is good enough. If you have more than 1GB RAM on the hosting plan, you should try 1GB RAM.

    Should I add the line “define(‘WP_MEMORY_LIMIT’, ‘512M’);” in wp-config.php file?

    Yes. The WP_MEMORY_LIMIT constant is for WordPress. Please refer to this article https://wpdevart.com/wp_memory_limit-and-wp_max_memory_limit-how-to-increase-memory-limit-in-wordpress/

    Should I add the line “php_value memory_limit 512M” to .htaccess?

    Yes, if your current PHP setting is lower than 512M. Based on your info. You are using the LiteSpeed web server. That directive should work in .htaccess . Please refer to this wiki for more details https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:per-user-php-ini

    Should I change it anywhere in cPanel?

    If possible, it is recommended to do so. No need to change it in the .htaccess file. Please refer to this article for more details https://support.cpanel.net/hc/en-us/articles/360062361214-How-to-set-or-increase-PHP-INI-memory-limit-or-other-values-

    Should I double for example to 512M?

    If possible, you should try.

    Thanks.

    Thread Starter ms100

    (@ms100)

    Thank you very much, it is increased now @nawawijamili

    If you allow me to ask one more question:

    At the moment I have XML-RPC disabled via the .htaccess.

    <Files xmlrpc.php>
    order deny,allow
     deny from all
    </Files>

    But I think using your setting is better, because then I can make the .htaccess file a little smaller. But then I can not receive Pingbacks anymore. Is there a reason why XML-RPC is in 1 function together with Pingbacks? (By the way I have never received a Pingback in two last years)

    Thanks again for the support.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    Glad to hear that.

    Is there a reason why XML-RPC is in 1 function together with Pingbacks?

    The reason is it’s just for performance tweaks. Normally, we would disable XML_RPC along with Pingback. If you want to use Pingbacks, you may disable that option and continue using htaccess to block XML-RPC.

    Thanks.

    Thread Starter ms100

    (@ms100)

    Thanks you very much @nawawijamili

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Best performance memory limit’ is closed to new replies.