WordPress.org

Support

wp-config.php

  • Hi i don’t know what help i can be as i am having some diffculties myself. Mostly with the wp-config.php file. So i think you are ahead of me in the download/installation process.

    I have followed the help/support forums to the best of my ability.

    I know that i needed to rename the wp-config-sample.php to wp-config.php which then allowed to to view and read the WordPress ReadMe html file (which i opened with Internet Explorer).

    I am also using MySQL. More specifically MySQL Workbench 5.2 CE

    I have tried some of the scripting but to no avail.

    My FTP is FileZilla – which has given me some ‘positive’ responses – but unfortunately all resulting in being unable to connect. Even though i know its pointing in roughly the right direction.

    Just thought i’d leave you a reply in the hope that two heads are better than one. (‘You scratch my back and i’ll scratch yours’ – sort of thing.

    One other thing, my domain/website hosting is with 000webhost.com (for future reference).

    I am a complete novice and i suppose getting to grips with it all by trial and error.

    Any help is much appreciated. Kind regards (and thank you in advance).

Viewing 15 replies - 1 through 15 (of 22 total)
  • In addition to the this (the above) when i try to open up wp-admin/install.php (from your WordPress ReadMe) i get…

    Error: PHP is not running
    WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.

    > >

    get_var(“SHOW TABLES LIKE ‘$wpdb->users'”) != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST[‘blog_public’] ); $weblog_title = isset( $_POST[‘weblog_title’] ) ? trim( stripslashes( $_POST[‘weblog_title’] ) ) : ”; $user_name = isset($_POST[‘user_name’]) ? trim( stripslashes( $_POST[‘user_name’] ) ) : ‘admin’; $admin_password = isset($_POST[‘admin_password’]) ? trim( stripslashes( $_POST[‘admin_password’] ) ) : ”; $admin_email = isset( $_POST[‘admin_email’] ) ? trim( stripslashes( $_POST[‘admin_email’] ) ) : ”; if ( ! is_null( $error ) ) { ?>

    />

    db_version(); $php_compat = version_compare( $php_version, $required_php_version, ‘>=’ ); $mysql_compat = version_compare( $mysql_version, $required_mysql_version, ‘>=’ ) || file_exists( WP_CONTENT_DIR . ‘/db.php’ ); if ( !$mysql_compat && !$php_compat ) $compat = sprintf( __( ‘You cannot install because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.’ ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); elseif ( !$php_compat ) $compat = sprintf( __( ‘You cannot install because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.’ ), $wp_version, $required_php_version, $php_version ); elseif ( !$mysql_compat ) $compat = sprintf( __( ‘You cannot install because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.’ ), $wp_version, $required_mysql_version, $mysql_version ); if ( !$mysql_compat || !$php_compat ) { display_header(); die( ‘
    ‘ . __( ‘Insufficient Requirements’ ) . ‘
    ‘ . $compat . ‘

    ‘ ); } if ( ! is_string( $wpdb->base_prefix ) || ” === $wpdb->base_prefix ) { display_header(); die( ‘
    ‘ . __( ‘Configuration Error’ ) . ‘
    ‘ . __( ‘Your wp-config.php file has an empty database table prefix, which is not supported.’ ) . ‘

    ‘ ); } switch($step) { case 0: // Step 1 case 1: // Step 1, direct link. display_header(); ?>

    error ) ) wp_die( $wpdb->error->get_error_message() ); display_header(); // Fill in the data we gathered $weblog_title = isset( $_POST[‘weblog_title’] ) ? trim( stripslashes( $_POST[‘weblog_title’] ) ) : ”; $user_name = isset($_POST[‘user_name’]) ? trim( stripslashes( $_POST[‘user_name’] ) ) : ‘admin’; $admin_password = isset($_POST[‘admin_password’]) ? $_POST[‘admin_password’] : ”; $admin_password_check = isset($_POST[‘admin_password2’]) ? $_POST[‘admin_password2’] : ”; $admin_email = isset( $_POST[‘admin_email’] ) ?trim( stripslashes( $_POST[‘admin_email’] ) ) : ”; $public = isset( $_POST[‘blog_public’] ) ? (int) $_POST[‘blog_public’] : 0; // check e-mail address $error = false; if ( empty( $user_name ) ) { // TODO: poka-yoke display_setup_form( __(‘you must provide a valid username.’) ); $error = true; } elseif ( $user_name != sanitize_user( $user_name, true ) ) { display_setup_form( __(‘the username you provided has invalid characters.’) ); $error = true; } elseif ( $admin_password != $admin_password_check ) { // TODO: poka-yoke display_setup_form( __( ‘your passwords do not match. Please try again’ ) ); $error = true; } else if ( empty( $admin_email ) ) { // TODO: poka-yoke display_setup_form( __( ‘you must provide an e-mail address.’ ) ); $error = true; } elseif ( ! is_email( $admin_email ) ) { // TODO: poka-yoke display_setup_form( __( ‘that isn’t a valid e-mail address. E-mail addresses look like: username@example.com‘ ) ); $error = true; } if ( $error === false ) { $wpdb->show_errors(); $result = wp_install($weblog_title, $user_name, $admin_email, $public, ”, $admin_password); extract( $result, EXTR_SKIP ); ?>

    ‘; echo “
    $password_message

    “; ?>

    are you having an issue now? or what exactly is your problem? can you clarify or show a link here.

    ok that is a simple error…

    Error: PHP is not running
    WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.

    This is something you need to check with your host 🙂

    000webhost.com is what i’m using. They have ‘Fantastico Autoinstaller’ and a WordPress ‘logo’/action button.

    This is what it says…

    We are upgrading autoinstaller at the moment. We do not have exact date when it wil be finished.
    However, you can upgrade account and immediatelly start using another autoinstaller that has 50 scripts ready to install in one click!

    Can i not just import and/or extract the files directly into the root/public_html ‘manually’? I appear to have uploaded my wordpress (.zip) folder into the root folder with all of the files inside – which appear to be entact.

    Any suggestions much appreciated. Other than that the only thing i can think of is trouble with MySQL and/or Apache? I have not downloaded php.net yet…

    Regards

    Other alternatives i’m given are b2evolution, Joomla, Drupal, phpWebSite, phpBB, SMF (Simple Machines Forum), OS Commerce, myBB, Mambo, Zencart and Coppermine. Some of which are image/photo galleries.

    Hence im pretty lost atm.

    esmi

    @esmi

    Forum Moderator

    Can i not just import and/or extract the files directly into the root/public_html ‘manually’?

    Yes, you can. See Installing_WordPress.

    Ok… slightly weird. They must be eves-dropping in on me… Just received this;

    Hello, Our Fantastico Installer is currently under maintenance at the moment and we are unsure when it will be back online. In the meantime, we recommend upgrading account at http://www.000webhost.com/upgrade and you will get a service with over 50 scripts ready to install in 1 click. Thank You,Helpdesk Staffwww.000webhost.com ********************ORIGINAL MESSAGE:******************** Having some difficulty with WordPress using Fantastico Autoinstaller… Help much appreciated. Kind regards (and thank you in advance).

    Thanks esmi,

    I have been through that document over a dozen times now.

    Ok, i am now in my domain host’s file manager. Do i have to extract the WordPress files into public_html? And if so what will that do?
    Or can i just leave the WordPress files in a folder called ‘wordpress’ next to the public_html folder?

    It’s net2ftp btw.

    esmi

    @esmi

    Forum Moderator

    Do i have to extract the WordPress files into public_html?

    Yes

    And if so what will that do?

    It will allow you install WordPress in your domain root.

    r can i just leave the WordPress files in a folder called ‘wordpress’ next to the publi_html folder?

    No.

    Ok, extracted to public_html

    Now get this;

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 18699: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 22316: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 21542: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 47408: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 50220: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 24022: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 25102: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_rmdir() [function.ftp-rmdir]: Can’t remove directory: Directory not empty in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 812

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 54438: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 22826: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_rmdir() [function.ftp-rmdir]: Can’t remove directory: Directory not empty in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 812

    Free Web Hosting

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 16552: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_rmdir() [function.ftp-rmdir]: Can’t remove directory: Directory not empty in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 812

    Free Web Hosting

    PHP Error Message

    Warning: ftp_get() [function.ftp-get]: Could not open data connection to port 34759: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2400

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 44404: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_put() [function.ftp-put]: Could not open data connection to port 46860: Cannot assign requested address in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 2566

    Free Web Hosting

    PHP Error Message

    Warning: ftp_mkdir() [function.ftp-mkdir]: 11332 Kbytes used (0%) – authorized: 1536000 Kb in /home/mainhost/public_html/file-manager/includes/filesystem.inc.php on line 1598

    Free Web Hosting

    It all looked so promising just then. I changed the file in the file manager net2ftp from wp-config-sample.php to wp-config.php and thenn computer says no.

    HTTP 500 Internal Server Error

    I can send you my web address privately if you like?

    Regards (thank you so far).

    esmi

    @esmi

    Forum Moderator

    Change the file name back again and allow WordPress to create the wp-config.php file as part of its installation process.

    Almost thought i cracked it for a second (with your help)…

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at mysql10.000webhost.com. This could mean your host’s database server is down.

    •Are you sure you have the correct username and password?
    •Are you sure that you have typed the correct hostname?
    •Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    Try Again

    esmi

    @esmi

    Forum Moderator

    Check your database details with your hosts.

    Ok, never mind. Think i got confused with the MySQL passwords and put in the wrong one. Bada-bing…

    I think i’m there now…

    ‘Welcome
    Welcome to the famous five minute WordPress installation process! You may want to browse the ReadMe documentation at your leisure. Otherwise, just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.’

    Happy Days!

    🙂 Thanks emsi a little trial (and error!) and patience is all it takes.

    sweet! and you cant go wrong with free hosting 🙂 and a super cool CMS that is also free 🙂

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘wp-config.php’ is closed to new replies.