Tresseo is a Canadian website services company in Ottawa, Ontario

Recommended PHP Settings

Understanding the recommended PHP settings for websites is important for website owners and managers who want smooth performance and secure, hassle-free updates. Knowing how to adjust PHP settings can also improve your website’s security and make managing your website easier.

WordPress officially recommends PHP version 7.4 or higher. Many host providers, including Tresseo, support PHP 8.0 and above, which is more secure and faster.

How to Check and Change PHP Settings

In DirectAdmin, look for PHP settings under the Account Manager submenu.

PHP settings in DirectAdmin

Select the PHP Setting you wish to override.

Then enter the related Value.

PHP override settings in DirectAdmin

    Next, test your website for errors or slow loading. If something is not working, try increasing memory or execution time. If unsure, reach out to support.

    Fine-Tuning PHP Settings for WordPress

    Essential PHP Settings for Any WordPress Website

    The most important PHP settings for WordPress include:

    • Memory Limit: This sets how much memory WordPress can use. Too little causes errors. WordPress suggests at least 128M. Busy sites may work better with 256M or higher.
    • max_execution_time: This controls how long PHP scripts can run. We recommend setting this to at least 180. The next optimal setting is 300. The number refers the number of seconds.
    • post_max_size: This sets the maximum size of the total data sent in a single post, like file uploads through forms. It should always be equal to or larger than upload_max_filesize, so your uploads work reliably.
    • upload_max_filesize: This setting determines the largest file you can upload. Setting it to at least 64M or more allows most image and plugin uploads.

    These settings are especially important if your site uses heavy plugins, large image galleries, or if you’re running a heavy database driven website, such as an ecommerce system.

    Not all websites have the same needs. Here are some guidelines based on the type of website you manage. Tresseo already sets generous PHP settings by default but feel free to experiment.

    Basic Blog or Personal Website

    If your site is simple, with mostly text and images, the default recommended PHP settings for WordPress will likely be enough:

    • memory_limit at 128M
    • upload_max_filesize at 32M
    • post_max_size at 32M or higher
    • max_execution_time at 60

    Online Store or Membership Site

    Sites running WooCommerce or membership plugins use more resources. For these, set:

    • memory_limit at 256M or higher
    • upload_max_filesize at 64M or higher
    • post_max_size at 64M or higher
    • max_execution_time at 120

    With more visitors or orders, higher settings keep your store fast and stable.

    Media-Rich Portfolio or Agency Site

    If you upload large images or videos:

    • Set upload_max_filesize and post_max_size to match your biggest files (for example, 128M for videos or large documents)
    • Keep memory_limit at 256M or higher

    Additionally, Tresseo recommends turning on PHP error logging for creative or frequently updated sites. That way, you can track any problems before they affect visitors..

    Checking Your Settings

    After changing the PHP settings, refresh your website and check each key feature. Watch for missing images, broken forms, or update failures. If you see problems, update or remove the PHP adjustments.

    Keeping PHP settings set to your preference helps your WordPress website handle new plugins, bigger files, and more users without slowdowns. Sites managed with Tresseo let you adjust these PHP options with a few clicks in your control panel, helping you focus on your content and visitors.

    Was this article helpful?

    Related Articles

    We accept Visa and Visa Debit
    Tresseo accepts Mastercard
    Tresseo accepts AMEX
    Tresseo accepts PayPal
    Tresseo is a Canadian web hosting and website services company based in Ottawa, Ontario, Canada

    Copyright © 2022 - 2025. Tresseo. All rights reserved.