Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo editar el archivo wp-config.php en WordPress

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Has leído un tutorial que te pide que edites tu archivo wp-config y no tienes ni idea de lo que es? Bueno, nosotros te cubrimos. En este artículo, te mostraremos cómo editar correctamente el archivo wp-config.php en WordPress.

¿Qué es el archivo wp-config.php?

Como su nombre indica, es un archivo de configuración que forma parte de todos los sitios WordPress autoalojados.

A diferencia de otros archivos, el archivo wp-config.php no viene incorporado con WordPress, sino que se genera específicamente para su sitio durante el proceso de instalación.

WordPress creating wp-config.php file during the installation

WordPress almacena la información de su base de datos en el archivo wp-config.php. Sin esta información su sitio web WordPress no funcionará, y obtendrá el error‘error establishing database connection‘.

Aparte de la información de la base de datos, el archivo wp-config.php también contiene otros ajustes de alto nivel. Los explicaremos más adelante en este artículo.

Dado que este archivo contiene mucha información sensible, se recomienda que no manipule este archivo a menos que no tenga otra opción.

Pero ya que estás leyendo este artículo, significa que tienes que editar el archivo wp-config.php. A continuación se presentan los pasos para hacerlo sin estropear las cosas.

Video Tutorial

Subscribe to WPBeginner

Si no te gusta el vídeo o necesitas más instrucciones, sigue leyendo.

Primeros pasos

Lo primero que debe hacer es crear una copia de seguridad completa de WordPress. El archivo wp-config.php es tan crucial para un sitio WordPress que un pequeño error hará que su sitio sea inaccesible.

Necesitarás un cliente FTP para conectarte a tu sitio web. Los usuarios de Windows pueden instalar WinSCP o SmartFTP y los usuarios de Mac pueden probar Transmit o CyberDuck. Un cliente FTP le permite transferir archivos entre un servidor y su ordenador.

Conéctese a su sitio web utilizando el cliente FTP. Necesitará la información de acceso / acceso FTP que puede obtener de su alojamiento web. Si no conoces los datos de acceso al FTP, puedes pedir soporte a tu alojamiento web.

El archivo wp-config.php se encuentra normalmente en la carpeta raíz de su sitio web con otras carpetas como /wp-content/.

wp-config file is located in the root directory of your WordPress site

Simplemente haga clic con el botón derecho en el archivo y seleccione descargar en el menú. Su cliente FTP descargará el archivo wp-config.php en su ordenador. Puede abrirlo y editarlo utilizando un programa editor de texto plano como el Bloc de notas o Text Edit.

Entender el archivo wp-config.php

Antes de empezar, echemos un vistazo al código completo del archivo wp-config.php por defecto. También puede ver una muestra de este archivo aquí.

<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the Codex.
 *
 * @link https://codex.wordpress.org/Debugging_in_WordPress
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Cada sección del archivo wp-config.php está bien documentada en el propio archivo. Casi todos los ajustes aquí se definen usando Constantes PHP.

define( 'constant_name' , 'value'); 

Echemos un vistazo más de cerca a cada sección del archivo wp-config.php.

Ajustes de MySQL en el archivo wp-config.php

Los ajustes de conexión a la base de datos de WordPress aparecen en la sección “Ajustes de MySQL” del archivo wp-config.php. Necesitará su alojamiento MySQL, nombre de la base de datos, nombre de usuario de la base de datos y contraseña para rellenar esta sección.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

Puede obtener la información de su base de datos en el cPanel de su cuenta de alojamiento web, en la sección denominada bases de datos.

MySQL databases in cPanel

Si no encuentra la base de datos de WordPress o el nombre de usuario y contraseña de MySQL, póngase en contacto con su alojamiento web.

Claves y sales de identificación

Las claves únicas y sales de autenticación son claves de seguridad que ayudan a mejorar la seguridad de su sitio WordPress. Estas claves proporcionan un cifrado fuerte para las sesiones de usuario y las cookies generadas por WordPress. Consulte nuestra guía sobre claves de seguridad de WordPress para obtener más información.

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

/**#@-*/

Puede generar claves de seguridad de WordPress y pegarlas aquí. Esto es particularmente útil si sospecha que su sitio WordPress puede haber sido comprometido. Cambiar las claves de seguridad cerrará la sesión de todos los usuarios actualmente conectados a su sitio WordPress, obligándoles a acceder / acceder de nuevo.

Prefijo de tabla de base de datos de WordPress

Por defecto WordPress añade el prefijo wp_ a todas las tablas creadas por WordPress. Se recomienda que cambie el prefijo de su tabla de base de datos de WordPress por algo aleatorio. Esto dificultará a los hackers adivinar sus tablas de WordPress y le guardará de algunos ataques comunes de inyección SQL.

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'wp_';

Tenga en cuenta que no puede cambiar este valor para un sitio WordPress existente. Siga las instrucciones de nuestro artículo cómo cambiar el prefijo de la base de datos de WordPress para cambiar estos ajustes en un sitio WordPress existente.

Modo de depuración de WordPress

Este ajuste es particularmente útil para usuarios que intentan aprender a desarrollar WordPress, y usuarios que prueban características experimentales. Por defecto WordPress oculta los avisos generados por PHP al ejecutar código. Simplemente estableciendo el modo de depuración a true le mostrará estos avisos. Esto proporciona información crucial a los desarrolladores para encontrar fallos.

define('WP_DEBUG', false);

Ajustes de ruta absoluta

La última parte del archivo wp-config define la ruta absoluta que se utiliza para configurar las variables de WordPress y los archivos incluidos. No necesita cambiar nada aquí.

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Hacks y ajustes útiles de wp-config.php

Hay algunos otros ajustes de wp-config.php que pueden ayudarle a diagnosticar errores y resolver muchos errores comunes de WordPress.

Cómo cambiar el puerto y los sockets de MySQL en WordPress

Si su proveedor de alojamiento WordPress usa puertos alternativos para MySQL, entonces necesitará cambiar su valor DB_HOST para incluir el número de puerto. Tenga en cuenta que no se trata de una nueva línea, sino de editar el valor DB_HOST existente.

define( 'DB_HOST', 'localhost:5067' );

No olvide cambiar el número de puerto 5067 por cualquier número de puerto proporcionado por su alojamiento web.

Si tu alojamiento utiliza sockets y tuberías para MySQL, entonces tendrás que añadirlo así:

define( 'DB_HOST', 'localhost:/var/run/mysqld/mysqld.sock' );

Cambiando las URLs de WordPress usando el archivo wp-config.php

Puede que necesite cambiar las URLs de WordPress cuando mueva un sitio WordPress a un nuevo nombre de dominio o a un nuevo alojamiento web. Puede cambiar estas URLs visitando la página Ajustes ” General.

WordPress Address and Site Address settings

También puede cambiar estas URL utilizando el archivo wp-config.php. Esto es útil si no se ha podido acceder al área de administrador de WordPress debido a un problema / conflicto / incidencia de demasiadas direcciones. Simplemente añada estas dos líneas a su archivo wp-config.php:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

No olvide sustituir example.com por su propio nombre de dominio. También debe tener en cuenta que los motores de búsqueda tratan www.example.com y example.com como dos ubicaciones diferentes (Consulte www vs no www – ¿Cuál es mejor para SEO?). Si su sitio está indexado con el prefijo www, deberá añadir el nombre de dominio correspondiente.

Cambiar el directorio de subidas usando wp-config.php

Por defecto WordPress almacena todas las subidas de medios en el directorio /wp-content/uploads/. Si desea almacenar sus archivos de medios en otra ubicación, puede hacerlo añadiendo esta línea de código en su archivo wp-config.php.

define( 'UPLOADS', 'wp-content/media' );

Tenga en cuenta que la ruta del directorio de subidas es relativa al ABSPATH establecido automáticamente en WordPress. Añadir una ruta absoluta aquí no funcionará. Consulte nuestra guía detallada sobre cómo cambiar la ubicación de subida de medios por defecto en WordPress para obtener más información.

Desactivar las actualizaciones automáticas en WordPress

WordPress introdujo las actualizaciones automáticas en WordPress 3.7. Permitió a los sitios de WordPress actualizarse automáticamente cuando hay una actualización menor disponible. Aunque las actualizaciones automáticas son excelentes para la seguridad, en algunos casos pueden romper un sitio de WordPress haciéndolo inaccesible.

Añadiendo esta única línea de código a su archivo wp-config.php desactivará todas las actualizaciones automáticas de su sitio WordPress.

define( 'WP_AUTO_UPDATE_CORE', false );

Consulte nuestro tutorial sobre cómo desactivar las actualizaciones automáticas en WordPress para obtener más información.

Limitar las revisiones de entradas en WordPress

WordPress viene con autoguardado y revisiones incorporados. Vea nuestra guía práctica sobre cómo deshacer cambios en WordPress con revisiones de entradas. Sin embargo, si tiene un sitio grande, las revisiones pueden aumentar el tamaño de la copia de seguridad de su base de datos de WordPress.

Añada esta línea de código a su archivo wp-config.php para limitar el número de revisiones almacenadas para una entrada.

define( 'WP_POST_REVISIONS', 3 );

Sustituya 3 por el número de revisiones que desee almacenar. Ahora WordPress descartará automáticamente las revisiones más antiguas. Sin embargo, las revisiones de entradas antiguas seguirán almacenadas en su base de datos. Consulte nuestra guía práctica sobre cómo borrar revisiones de entradas antiguas en WordPress.

Esperamos que este artículo le haya ayudado a aprender cómo editar el archivo wp-config.php en WordPress y todas las cosas interesantes que puede hacer con él. Puede que también quieras ver nuestro artículo sobre 25+ trucos extremadamente útiles para el archivo de funciones de WordPress.

Si te ha gustado este artículo, suscríbete a nuestro canal de YouTube para ver tutoriales en vídeo sobre WordPress. También puedes encontrarnos en Twitter y Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

59 comentariosDeja una respuesta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Sean Hodge says

    I believe you should not put any custom rules below the ABSPATH / vars bit down at the bottom, but can you put stuff in any order above those lines?

    I’ve got some time on my hands, so I’ve been doing just that, moving stuff around the wp-config file, and removing all the extra fluff between comments. I now know what it all does, and have just left a simple title above each group of rules, such as

    /**
    * Authentication Unique Keys and Salts.
    */

    All the rest of the info about Salts, and debugging etc, is now gone, the stuff that usually appears in green.

    What I also did was move the $table_prefix above the Salts, right under the rest of the database info.

    I’ve done this all because when I do go in there to modify actual rules, I have to wade my way through what is now useless info, to me.

    So far, nothing has exploded, but I thought to ask anyway.

    • WPBeginner Support says

      You can change the order of the other content in that file if you wanted, we would warn to be careful when moving that you don’t remove part of the code and normally you should not need to edit your wp-config file.

      Administrador

    • WPBeginner Support says

      That would require changes to your htaccess or a different file, we would recommend reaching out to your host for assistance with what you’re wanting to do.

      Administrador

  3. Mister No says

    Hi there, great article. I’m having a problem with my website mobile version. When I try to open it on the mobile phone it says “This site is experiencing technical difficulties”.
    What should I do to make my site work again properly?
    Thanks in advance

  4. Paul says

    Syed, all of a sudden, I can’t upload images (message: missing a temporary folder). Tried to log into WordPress to check support blogs and my username is not recognised.

  5. Gale says

    I am a newbie at wordpress. I uploaded the files via Filezilla and got everything configured. Now how exactly do I actually access my new wp-blog site?

    Wp is in the root (public_html) of my website. There were several other file folders that came with Wp. Do I upload them into the public_html folder as well?

  6. Esther says

    Hi, I found out when I was installing WordPress, it was installed in subdirectory Wp and has a result my website can’t go live, my web host said I have to uninstall and install again and I should leave the Wp in the Installation panel blank, my problem is that I have designed the website only to go live and once I uninstall everything will be wiped off, what do I about it, Is there a way to avoid that?

  7. Mina says

    Hi,
    Thank you for the useful article.
    I’m new to this file and I have a basic question. I changed the cache plugin of my site and I need to change the line about it at the beginning of the file to override details of the previous plugin.
    Once my file is updated, can I upload it while the cache plugin is activated, and deactivate/reactivate it just after, or do I have to deactivate the plugin before uploading the new wp-config file ?
    Thanks for your help.

    • WPBeginner Support says

      If your plugin is requiring you to edit your wp-config file you would normally want to edit the wp-config file before activating your new plugin.

      Administrador

  8. Tiar says

    hi, i have a wordpress site, i want edit my wordpress site in local, but when i already backup and run my wordpress in local. the page is full of white. can you help me ? im beginner in wordpress

  9. Arthur says

    I have updated my website (lostkatanning.com) o WP 5.1 (the Gutenberg update) but now, when working on pages or posts it has slowed right down to a crawl and takes forever to respond to even a single key touch. I have tried numerous things from various websites but nothing seems to work. It is starting to do my head in! Any ideas on how to get my speed back?

  10. mostafa says

    Hi
    I have a wordpress site. Today I realized my wp-config.php file has been removed for no reason (The reason is not important for me right now).

    I want to know what happens if I create another wp-config.php file in the root directory of my website by renaming the wp-config-sample.php file again and set the database name blah blah blah

    does it affect my pages and posts? How about the users who have signed up to my website? does it remove them? If the answer is yes, isn’t it better for me to restore backup? The only problem for restoring backup is that it is for two days ago and I posted a new content yesterday and I will miss it.

    Thank you very much in advance

    • WPBeginner Support says

      Your user and post information is in the database so that information shouldn’t be affected, as long as you connect it to your correct database then there shouldn’t be any change.

      Administrador

  11. Deepak says

    Hello,
    How do I edit wp-config for setting other smtp using WP smtp plugin ?

    Plugin says, “The password is stored in plain text. We highly recommend you setup your password in your WordPress configuration file for improved security; to do this add the lines below to your wp-config.phpfile.

    define( ‘WPMS_ON’, true ); define( ‘WPMS_SMTP_PASS’, ‘your_password’ ); ”

    Where do I exactly add the code ? It don’t shown in tutorial video or article of Wpbeginner.

  12. Gaurav Bhatnagar says

    Hi, I just updated my WordPress to new version manually using FileZilla. My website was working. But then, I did some update inside wp-config.php file. Now the size of that file on server has become ‘0’. Even if I update it from local PC, it still remains ‘0’. What should I do? Now website is not working. I am getting – HTTP Error 500

    • WPBeginner Support says

      Hi Gaurav,

      You can download a fresh copy of WordPress and extract it on your computer. Inside it you will find a wp-config-sample.php file. You can upload this file to your server and rename it to wp-config.php. You will now need to edit wp-config.php file and enter your WordPress database information.

      Administrador

  13. Greg Bryant says

    I have an intranet-based wordpress site that I’m setting up. I’m having issues with the proxy configuration in wp-config.php. I’ve tried about everything I know and I still keep getting ‘Proxy Authentication Required” errors.

    define(‘WP_PROXY_HOST’, ‘https://proxy.domain.com’);
    define(‘WP_PROXY_PORT’, ‘3128’);
    define(‘WP_PROXY_USERNAME’, ‘domain\\username’);
    define(‘WP_PROXY_PASSWORD’, ‘xxxxxx’);
    define(‘WP_PROXY_BYPASS_HOSTS’, ‘localhost’);

    Our internal wordpress site can detect that there are new versions of plug-ins but when I try to update I get the proxy authentication error. I’ve tried the variables above with https, http, just proxy.domain.com, the username escaping the \, not escaping the backslash, etc. I looked at the code in class-wp-http-proxy.php and it appears the authentication connects the username with a : and then the password like the http(s)_proxy environment variable. I’ve tried local host for the bypass and an empty string. Our Windows domain uses an file; is there a place to specify this?

    I get the same proxy authentication errors trying to download anything from the internal wordpress site.

    Error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/epkb.mw-process-ctrl.com/public_html/wp-admin/includes/plugin-install.php on line 168

    I’m also having an issue with php’s file_get_contents if that’s something wordpress uses. cURL works fine.

    Any ideas?

    Thanks

      • Greg Bryant says

        I have curl installed.

        It lists ipV6 as yes but I have ipV6 disabled since our network doesn’t support it.

        I think the problem is authenticating with our proxy. On the server I use:

        (the \ is escaped when setting the env variables). Above is my wp-content proxy settings.

        I’m using ufw for my firewall and have tried with it enabled & disabled with the same results.

        Any other ideas?

        Thanks

    • WPBeginner Support says

      Hey Jon,

      Yes, they are effectively immediately. However, if you are editing wp-config file in a text editor on your computer, then simply saving your changes may not change the wp-config.php file on your server. You will need to upload the changed wp-config.php file back to your server for changes to take effect.

      Administrador

      • Andy says

        What’s the best way to upload the changed wp-config.php file back to the server?

        Can the tutorial be updated with how to upload the adjusted config file? The tutorial seems to be incomplete for the (relative) novice

  14. ayush says

    I did something silly , i removed the www part from wp site url under Setting-General . Now admin panel is getting redirected to wordpress one. i used your steps to copy both lines with modification and uploaded via ftp . No luck .Plz help

  15. Boris says

    Excellent post. I am a newbie and learned a lot.

    I have an issue with my site. It looks like I have been hacked. I ran WordFence scan and it caught a line of code in my wp-config.php file that it flagged as not belonging there. Following is the code:

    My question is this. Can I remove the "@include…" from the file without screwing up the .php file.

    Any guidance will be appreciated.

    • WPBeginner Support says

      Hi Boris,

      Is the file part of the core WordPress software, a plugin, or a theme? If yes, then download a fresh copy of WordPress core, plugins, or theme the file belongs to and then upload the new file.

      You can also download the file to your computer before editing the code as a backup. If anything goes wrong you can then upload it back.

      Administrador

  16. Steph says

    I’m having problems accessing site. I debugged and am getting a list of problems but most seem to come back to this one:

    “Notice: get_settings is deprecated since version 2.1.0!
    Use get_option() instead. in /usr/local/pem/vhosts/xxxxxx/webspace/siteapps/WordPress-xxxxx/htdocs/wp-includes/functions.php on line 3752″

    But line 3752 reads:
    ” trigger_error( sprintf( __(‘%1$s is deprecated since version %2$s! Use %3$s instead.’), $function, $version, $replacement ) ); ”

    So i’ve no idea what to replace. I’m sure this is 101 stuff to you, but I’m really confused!! I would really appreciate your advice, thank you.

    • Steph says

      Found your section on disabling plugins – which was a great help as the the site is now viewable whilst I try to resolve. This is the message I see now when logged in WP Admin

      ” Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /usr/local/pem/vhosts/xxxxxx/webspace/siteapps/WordPress-xxxxxx/htdocs/wp-content/themes/genesis/lib/admin/menu.php on line 122 and defined in /usr/local/pem/vhosts/xxxxxx/webspace/siteapps/WordPress-xxxxxx/htdocs/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38 ”

      Am in a spot of bother and could really use your help – thank you!

      • WPBeginner Support says

        Hey Steph,

        Try updating your Genesis child theme. Connect to your website using FTP and download your child theme as a backup. After that delete child theme folder from your website.

        Next, download a fresh copy of the theme and install it. If this doesn’t work, then try updating Genesis core itself.

        Administrador

  17. Sean says

    Hi,
    I did something silly and now can’t get my site to work. Basically I kept my site live at said URL example.com and created a folder where I built the WordPress site example.com/Wordpress. However when I went to put the wordpress site into the root folder after backing everything up I forgot to change the site URL in the dashboard. i basically then removed my entire site and copied everything from the wordpress site into the root URL. It didn’t work – so I thought I would remove everything and restore my site as it was with both the wordpress and the normal site working.

    However once I restored all the files the wordpress site now errors with 404 Page not found and I can’t login into the dashboard either.

    Any idea how I can restore this? I think it is looking in the root directory and WordPress folder for the site or something similar and it’s causing the error – but how do I fix it?

    Thanks
    Sean

  18. Dan says

    Hello i would like to have it when i upload an image it gets uploaded to my cloud from wordpress.
    i got a url & api key.
    Any suggestions would be cool. thanks.

  19. Karl says

    Nice instructions, as far as they go. However, I know it is ALSO possible to edit wp-config.php directly through WordPress’ Admin area but it seems to be a closely guarded secret as to HOW to actually do this. I do not have FTP access to my site so I have to use some other method and I’d rather not go chasing down the rabbit hole of trying out various flaky plugins until I find one that actually works. Your assistance as to what menu drill-down to explore in WordPress Admin would be greatly appreciated.

    • WPBeginner Support says

      It is not a good idea to edit wp-config.php file inside WordPress admin area. One tiny mistake and you will be locked out of your WordPress site. If you do not have FTP access, you can try editing it via cPanel’s file manager.

      Administrador

  20. Angela says

    I don’t want to sound stupid, but please help me understand… are the wp-config.php changes supposed to be made on my Mac or on the host for my website. They are two different machines.
    Please help! I keep making changes to my web site and all of a sudden they just do not ‘take’.
    Best regards,
    Angela

    • WPBeginner Support says

      You can make changes to wp-config.php file using an FTP client. It allows you to edit files on your web server. After connecting to your website using an FTP client, you need to locate wp-config.php file and download it to your computer. Make changes it to it using a text editor like TextEdit. Save your changes and then upload the file back to your web server using the FTP client.

      Administrador

    • Ray says

      Once you have done that, you can see the settings by visiting this URL on your blog:

      yoursite.com/wp-admin/maint/repair.php

      You have 2 buttons
      1st – Repair Database
      2nd – Repair and Optimize Database

      I suggest u click the 1st one and wait for the process to finish.

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.