Title: Editing wp_config.php
Last modified: August 21, 2016

---

# Editing wp_config.php

 *  [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/)
 * Hi
 * How to edit wp_config.php for my site? As what I can see from the supporting 
   forum, it’s quite danger to edit this php, and may cause error. Is there any 
   way like add code to functions.php?
 * Thanks.

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494180)
 * What do you want to edit it for? It’s not dangerous to do so when _done properly_.
   Just make sure you have FTP access to your site files and keep an unedited version
   locally should an error occur in your edit(s).
 * You do want to make sure you do so with a _plain text editor_ and **not** a _rich
   text editor_.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494184)
 * I just want to double protect my site.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494185)
 * To make it unwritable. That’s all.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494187)
 * Plain text editor is it, refer to notepad ?
 * If I have web hosting, can I edit from cpanel, followed by file manager ?
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494197)
 * > Plain text editor is it, refer to notepad ?
 * Yes, but I like NotePad++ as it formats filetypes nicely and has line numbers.
 * > If I have web hosting, can I edit from cpanel, followed by file manager ?
 * Yes, but download a copy, rename it (as a backup), download another copy, edit,
   upload back. If the edit goes bad, rename the second downloaded file, rename 
   back the first one and upload that one back.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494205)
 * For wp_config.php, there are two ways, one is to edit as what you said. Another
   way is to change permission – read, write and execute.
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494208)
 * See:
 * [http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php](http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php)

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

The topic ‘Editing wp_config.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/editing-wp_configphp/#post-4494208)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
