Forums

Can't get wp-config.php right so it does not show in broswer (11 posts)

  1. thedemoiselle
    Member
    Posted 1 year ago #

    This is the information that I'm using. am i doing something wrong? Did i leave out something?

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'ftp.mysite.net'); // The name of the database
    define('DB_USER', 'myusernamehere'); // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
    // so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
    // to get keys generated for you, or just make something up. Each key should have a different phrase.
    define('AUTH_KEY', 'im an opera singer'); // Change this to a unique phrase.
    define('SECURE_AUTH_KEY', 'i like jazz too'); // Change this to a unique phrase.
    define('LOGGED_IN_KEY', 'call me diva'); // Change this to a unique phrase.

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

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

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

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

  2. thedemoiselle
    Member
    Posted 1 year ago #

    I figured out to use the database created not the ftp, but still it's not working. Do I actually use a _ in the db name like ex: lala_lelelum
    or just lelelum?

  3. krembo99
    Member
    Posted 1 year ago #

    First of all , wp-config.php whould not show in your browser.
    It is just a config file.
    Second - the line
    define('DB_NAME', 'ftp.mysite.net'); // The name of the database
    should not be your FTP but your MySql DB NAME (from your host)
    same for password (MySql DB password,MySql DB user, and the IP)
    Third, do go to http://api.wordpress.org/secret-key/1.1/ and use the secret key generator from there, and then copy and paste in the right location.
    And fourth, about the DB name,it does not matter if you use underscore or not, as long as it is configured well both in DB and the config.
    BUT .. if you do not have more than one website working on your DB , and you are not sure what you are doing, just leave the default value (e.g. wp_ )

    After you do all that just go to your homepage (either http://www.mydomain.com or http://www.mydomain.com/SomeNameOfInstallDir and follow onscreen instructions

  4. thedemoiselle
    Member
    Posted 1 year ago #

    Will installing this download on wordpress.org allow me to use and upload my own themes?

  5. thedemoiselle
    Member
    Posted 1 year ago #

    I think I found where to put the generated key, but I'm still getting a 404 error when I go to mysite.net/wp-admin/install.php. Do I have to put anything for :
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', ''); ?

    And I still am wondering about the themes.

    Thanks!

  6. thedemoiselle
    Member
    Posted 1 year ago #

    I use blue host so for define('DB_HOST', 'localhost'); what should i put. I tried leaving it alone, then i tried bluehost.com, nothing works.... = /

  7. mrkingid
    Member
    Posted 1 year ago #

    Call Bluehost, they will tell you the name of the server your database is on.

  8. krembo99
    Member
    Posted 1 year ago #

    I think I found where to put the generated key, but I'm still getting a 404 error when I go to mysite.net/wp-admin/install.php. Do I have to put anything for :
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', ''); ?

    First - no , if you are not using any non-english or non-latin language, don't change those lines.
    Second - if you get a 404 - that means that it can not FIND the file..
    Probably you have installed wordpress under a sub-directory, and thus your path to install should be
    mysite.net/SomeDIrName/wp-admin/install.php.
    and not
    mysite.net/wp-admin/install.php.
    where SomeDirName is the name of the sub-directory (if you just extruded the downloaded pack from wordpress and left it inside the dir, so SomeDirName = wordpress

    I use blue host so for define('DB_HOST', 'localhost'); what should i put. I tried leaving it alone, then i tried bluehost.com, nothing works....

    When you signed and payed for a DB (MySQL) the ygave you some parameters ..
    Name of Database, Username(DB related) and Pass(Db related)
    The fourth parameter is the IP for the DB (Address)
    You should put that inside the ('DB_HOST', 'localhost');

  9. BernardBorealis
    Member
    Posted 1 year ago #

    I agree with mrkingid, you should probably call bluehost and see exactly what those settings are. Being familiar with the setup, you should be using localhost and your database name and username will both be something like prefix_database and prefix_username, with the prifix and the underscore in it. As krembo99 pointed out, you get the 404 error when something can't be found, which likely means you either don't have the file you are looking for, or you are looking for it in the wrong spot.

  10. krembo99
    Member
    Posted 1 year ago #

    Being familiar with the setup, you should be using localhost ..

    Almost all of my blogs are not using localhost .. But the specific IP.
    I think it is always good to put the specific IP (even considering IP resolving time).

  11. tolo87
    Member
    Posted 8 months ago #

    Well krembo, why do you think that putting in specific IP is better than putting localhost in there? I am curious. Thanks Mike.

Topic Closed

This topic has been closed to new replies.

About this Topic