close

June 2024 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

example wp-config.php template for optimized settings?

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3917 Reply
    Helen
    Guest

    Hello,

    Can I see the example of wp-config.php template that you recommend using for WordPress security and performance, thank you.

    #3919 Reply
    Margaret
    Guest

    Are you using SlickStack?

    If you’re using it then wp-config.php will be automatically installed and optimized for your unique website and database settings, etc.

    #3920 Reply
    Michelle
    Guest
    #3990 Reply
    Logan
    Guest

    sorry what are the @ @ @ symbols for?

    in your wp-config.php

    #3998 Reply
    Donald
    Guest

    sorry what are the @ @ @ symbols for?

    All the @ symbols are part of placeholders so that SlickStack can search/replace certain strings during the installation process.

    Like for example:

    @DB_NAME will be replaced with the database name e.g. production

    Obviously if you’re not using SlickStack than you don’t need these placeholders and should fill out the wp-config.php settings as you require.

    #5120 Reply
    Jacob
    Guest

    some of the wp-config.php values in SlickStack are set in your ss-config so review that file if you want to adjust certain settings.

    #5121 Reply
    Melissa
    Guest
    #5206 Reply
    David
    Guest

    Hi,

    what if I want to edit some options in wp-config.php for SlickStack?

    can I change file contents

    #5210 Reply
    Marilyn
    Guest

    You cannot edit the wp-config.php in SlickStack because your changes will be overwritten during next update or install. Instead, you should add custom PHP constants to a new file called /var/www/html/wp-content/custom-functions.php and that file will be loaded if detected by SlickStack. See here:

    https://github.com/littlebizzy/slickstack/blob/master/modules/wordpress/wp-config.txt

    #8093 Reply
    Katherine
    Guest
    #13223 Reply
    Gregory
    Guest
Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: example wp-config.php template for optimized settings?

Thanks to our generous sponsors for their support!