Noor's Plugin

WordPress Plugins, Themes, Hosting, Tutorials & more!

  • Home
  • Plugins
    • Themes
  • Hosting
  • Contact
    • Privacy Policy
  • About

How to Edit wp-config.php File in WordPress

wp-config.php is a configuration file located in the root directory of your WordPress installation folder. This is one of the most important files in your WordPress installation since it contains the base configuration details of your website. And so you may need to edit it from time to time to enable/disable various options. In this article, I will show you the easiest way to edit the wp-config.php file in WordPress.

How to Edit wp-config.php in WordPress

The easiest way to edit wp-config.php in WordPress is to download the file to your Desktop via FTP and open it with a text editor such as Notepad. For FTP, I would recommend a free file transfer client like FileZilla.

Step 1

Download and install the FileZilla FTP client on your computer.

Step 2

Open FileZilla once installed and click File > Site Manager… to configure a new site.

Step 3

Enter your domain name in the Host field. You can use either FTP/sFTP to connect to your server (check the FTP details provided by your web host). Your FTP details are usually sent to the welcome email when you sign up with a hosting provider. If you don’t have it contact them.

screenshot showing how to add a new site in filezilla ftp client

Set the Logon Type to Normal and enter your FTP username and password. Click Ok to save the settings.

Step 4

You can now easily connect to your web server from the Site Manager window. Make sure to set the Date type to binary so you don’t experience any formatting issue (Transfer > Manual transfer > Data type).

Step 5

Navigate to the root of your WordPress installation directory. It’s usually in the public_html folder.

screenshot showing how to download wp-config.php file using filezilla ftp client

Select the wp-config.php file and download it to your computer.

Step 6

Open the wp-config.php file using a text editor (e.g. Notepad) and do all the editing that you need. Save it when you are done.

Step 7

Transfer the updated wp-config.php file back to the server using the Upload command.

screenshot showing how to upload wp-config.php file using filezilla ftp client

How to Limit the Number of Post Revisions

In order to limit the number of post revisions that WordPress stores, you can use the WP_POST_REVISIONS constant. For example,

define( 'WP_POST_REVISIONS', 5 );

This will make sure that WordPress only stores the last 5 revisions of a post on your website.

How to Increase PHP Memory Limit

In order to increase the memory allocated to PHP in WordPress, you can use the WP_MEMORY_LIMIT constant. For example,

define( 'WP_MEMORY_LIMIT', '64M' );

This will set the PHP memory allocated for WordPress to 64MB.

How to Disable WordPress Auto Updates

In order to disable all automatic updates in WordPress, you can set the AUTOMATIC_UPDATER_DISABLED constant to true. For example,

define( 'AUTOMATIC_UPDATER_DISABLED', true );

How to Disable WordPress Core Updates

In order to control how WordPress core updates are installed on your site, you can use the WP_AUTO_UPDATE_CORE constant. For example,

define( 'WP_AUTO_UPDATE_CORE', false );

This constant will disable all core updates in WordPress.

define( 'WP_AUTO_UPDATE_CORE', true );

This will enable all core updates in WordPress, including major and minor.

define( 'WP_AUTO_UPDATE_CORE', 'minor' );

This will enable core updates for minor releases.

Related

Written by Noor Alam · Categorized: wordpress

Comments

  1. AdmissionBlock says

    Great blog sir, very useful information.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Noor’s Plugin

Recent Posts

  • How to Add a Quantity Field to a Stripe Payment Button
  • How to Add a Price Field to a PayPal Button
  • Hide Product Image for WooCommerce Plugin
  • How to Show a Download Button to Logged in Users Only
  • How to Add a Price Field to a Stripe Payment Button
  • How to Disable/Hide Featured Images in WordPress Astra Theme
  • What is the White Screen of Death in WordPress?
  • How to Fix YouTube Error The uploader has not made this video available in your country
  • How to Configure SendGrid SMTP in WordPress
  • Checkout for PayPal WordPress Plugin

Copyright © 2022 · Noor's Plugin

This website uses cookies to improve your experience. By continuing, you agree to their use.Got it! Learn More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT