• Hey, I’m sry for doing this, but I have to. Pls look thru this file and see if everything is correct. Where can I see what my name for the database is?
    Thanks
    <?php
    /** WordPress’s config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘HENRIK’); // The name of the database
    define(‘DB_USER’, ‘henrik’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘*******’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define(‘ABSPATH’, dirname(__FILE__).’/’);
    // Get everything else
    require_once(ABSPATH.’wp-settings.php’);
    ?>

Viewing 15 replies - 1 through 15 (of 35 total)
  • Where can I see what my name for the database is?

    If your host has created the database for you – they probably gave you this data: db name, user name, pw.
    In case that you’ve created your own DB (like through CPanel) you should know the name of the DB since you had to name it.

    Moderator James Huff

    (@macmanx)

    You should be able to find your MySQL info through your hosting provider’s control panel.

    Thread Starter henrik

    (@henrik)

    thanks, I will talk to my host later then:)
    cheers

    Thread Starter henrik

    (@henrik)

    I have php-installed at my server now and I have fix the config file.
    I have upload the config file to the wordpress folder, but I get still the same problem..

    Moderator James Huff

    (@macmanx)

    Do you have a MySQL server?

    Thread Starter henrik

    (@henrik)

    MySQL 4.0.22 and phpMyAdmin 2.2.3

    Maybe if you described the problem you are having. This is akin to saying “Doc it hurts” w/o saying WHAT hurts, or what you were doing when it started hurting (“Doc, I was rock climbing when I fell off and landed on the ground. I fell about 20 feet or so. I think I broke my arm and it hurts like a #@#$%#$!”)
    Tg

    Thread Starter henrik

    (@henrik)

    okey, sorry!
    When I run install.php @ wordpress/wp-admin/install.php @ my internet server, I get this message at the top;
    wp-config.php file. I need this before we can get started.
    I have config the file and upload the file to wordpress/ @ my internet server.

    Moderator James Huff

    (@macmanx)

    Ah, now that changes everything.
    #1 Did you save wp-config-sample.php as wp-config.php on your computer? IOW, do not change wp-config-sample.php’s name to wp-config.php after you upload it.
    #2 Did you upload wp-config.php in ASCII (text) mode?
    #3 Are the permissions on wp-config.php set to 755 (CHMOD 755)?
    #4 If the above don’t help, then it was probably an unzipping problem. Download WordPress again and unzip it with a different application. Then, upload all of the file and wp-config.php (created from the newly unzipped file) again.
    #5 If that doesn’t work either, then it’s a problem with your webhost. Please contact them.

    Thread Starter henrik

    (@henrik)

    #1 I changed the name on my computer and uploaded the file as wp-config.php
    #2 I uploaded the file in “binary” mode.
    #3 I don’t understand what you mean?:$

    Moderator James Huff

    (@macmanx)

    Hm, don’t worry about #2 yet, solving #3 will probably fix it. Podz has some tutorials for how to CHMOD with the various FTP apps here: http://www.tamba2.org.uk/wordpress/ftp/
    As Podz would prefer that you use FileZilla as your FTP app, there is ma complete tutorial for using the app to install WordPress here: http://www.tamba2.org.uk/wordpress/FileZilla/

    Thread Starter henrik

    (@henrik)

    I have changed the mod to 766 for the config file and 666 for the index file, but I still get the same problem.
    Check by yourself http://matrix.dzygn.com/blog/wp-admin/install.php

    Are all the php files being uploaded in ASCII mode ?
    That looks like either a corrupted file, or a file uploaded as Binary.

    Try this ?
    PHP Info
    Paste this into a new Notepad / BBEdit file
    <?php phpinfo(); ?>
    Save as ‘info.php’
    Upload to server. Visit in your browser (www.example.com/info.php)
    That will give you info about your php version

    Thread Starter henrik

    (@henrik)

    Apache/1.3.33
    MySQL 4.0.22
    phpMyAdmin 2.2.3

Viewing 15 replies - 1 through 15 (of 35 total)

The topic ‘config file settings.’ is closed to new replies.