• 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)
  • 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

    (@uendi)

    I just want to double protect my site.

    Thread Starter Uendi

    (@uendi)

    To make it unwritable. That’s all.

    Thread Starter Uendi

    (@uendi)

    Plain text editor is it, refer to notepad ?

    If I have web hosting, can I edit from cpanel, followed by file manager ?

    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

    (@uendi)

    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.

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

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