Title: Editng wp-config.php
Last modified: August 20, 2016

---

# Editng wp-config.php

 *  [mmarkym](https://wordpress.org/support/users/mmarkym/)
 * (@mmarkym)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/editng-wp-configphp/)
 * Hi,
 * I’ve found the wp-config.php file to enter my database info but when refreshing
   the page the file contents shows up on the wordpress installation page as they
   are written.
 *     ```
       <?php
   
       /** The name of the database for WordPress */
       define('DB_NAME', 'redacted'); 
   
       /** MySQL database username */
       define('DB_USER', 'also redacted'); 
   
       /** MySQL database password */
       define('DB_PASSWORD', 'redacted too'); 
   
       /** MySQL hostname */
       define('DB_HOST', 'localhost'); 
   
       ?>
       ```
   
 * thanks
 * Mark

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 6 months ago](https://wordpress.org/support/topic/editng-wp-configphp/#post-3253709)
 * Sorry, but can you describe the problem you’re having? Is it that the changes
   are not taking or working or that you can browse to that file and display the
   contents?
 * Also please don’t post actual `DB_USER` and `DB_PASSWORD` information. It’s not
   a safe thing to do.

Viewing 1 replies (of 1 total)

The topic ‘Editng wp-config.php’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/editng-wp-configphp/#post-3253709)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
