Best Directive Snippets for WordPress on ISPconfig?

Discussion in 'ISPConfig 3 Priority Support' started by peterpetr, Jan 20, 2022.

  1. peterpetr

    peterpetr Member

    I am running the latest ISPconfig on Ubuntu 20.04 with PHP 7.4, NGINX and MariaDb (all installed using your tutorial www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/).
    For each WordPress installation, I use SSL (Letsencrypt or commercial cert) and the following two Directive Snippets:

    #1. Type = PHP, Snippet text:
    display_errors = On
    post_max_size = 99M
    upload_max_filesize = 255M
    max_execution_time = 220
    memory_limit = 256M
    max_input_vars = 2000​

    #2. Type = nginx, Snippet text:
    client_max_body_size 100M;
    location / {
    try_files $uri $uri/ /index.php?$args;
    }
    # Add trailing slash to */wp-admin requests.
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
    location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
    expires max;
    log_not_found off;
    }​

    Question: Are the above the best for optimizing WordPress configurations in ISPconfig? Can you suggest any changes?
    Thank you.
     
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    not such an issue now, but usually had a php snippet available to enable short open tags.
    could pretty much guarantee someone would install a plugin which used them.

    for your php snippet, i would remove the display_errors = On
    it's very rare you would want them displayed, especially on a live site.
    and if needed for troubleshooting, the person doing that should already know enough to enable that, and the other debug settings directly in wp-config.php.
     

Share This Page