WordPress.org

Ready to get started?Download WordPress

Forums

Where is wp-config.php? (5 posts)

  1. eastwindupchronicle
    Member
    Posted 5 years ago #

    Hi, I recently made a long overdue upgrade from 2.1 to 2.6.3 and I have all the extra characters in my old posts. I looked in the forums on how to fix it, and I understand I need to delete things from the wp-config.php file....but I can't find that. Shouldn't it be in the "theme editor"? I have the feeling I'm missing something very obvious.

    Can someone help me really quick?

  2. gamerpro
    Member
    Posted 5 years ago #

    ok first you need to access your servers directory where wordpress is installed.

    /public_html/wp-config.php its right in the main directory of your wordpress installation... For me my wordpress installation is in the root directory of my domain.

    if it was installed in a sub-domain it would be
    /public_html/subdomainname/wp-config.php

    you will need to pull that file off the server using ftp and edit it locally than upload it back to the server, saying yes to overwrite the file.

    The Prophecy
    [sig moderated]

  3. eastwindupchronicle
    Member
    Posted 5 years ago #

    Ok, I did that, but now I'm getting a fatal error. I edited it using notepad, overwrote it using FTP and now here's what I'm getting:

    Fatal error: Call to undefined function: wp() in /home/jcyrusfa/public_html/eastwindupchronicle/wp-blog-header.php on line 14

    I just went back into the wordpress 2.6.3 file to see if I could recopy it and there's no "wp-config.php" file.

  4. eastwindupchronicle
    Member
    Posted 5 years ago #

    Anyone that can tell me how I can rewrite this file? I'm really at a loss as to what I can do. My blog has over a thousand posts with advertising. I really want to get it back up as soon as possible.

    Please? Do I need to recopy large parts of WordPress 2.6.3? Contact my host?

  5. gamerpro
    Member
    Posted 5 years ago #

    did you make sure when you edited the file that it saved as 'wp-config.php'? Because notepad loves to save files as 'wp-config.php.txt'

    also did you first back-up the original wp-config file before editing and/or uploading the changed file?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.