WordPress.org

Ready to get started?Download WordPress

Forums

wp-config.php (23 posts)

  1. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

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

  2. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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

    "; ?>

  3. ALVAW3
    Member
    Posted 1 year ago #

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

  4. ALVAW3
    Member
    Posted 1 year ago #

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

  5. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

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

    Yes, you can. See Installing_WordPress.

  7. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

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

  8. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  10. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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

  11. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

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

  12. esmi
    Forum Moderator
    Posted 1 year ago #

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

  13. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    Check your database details with your hosts.

  15. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    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.

  16. ALVAW3
    Member
    Posted 1 year ago #

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

  17. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    Hi guys im having some issues again (sorry).

    My site is http://www.enigmatrix.org.uk

    And i've uploaded the .zip file to the public_html folder with net2ftp powered by 000webhost.com (which is my hosting provider).

    Answers on a post card please...

  18. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Did you get this resolved? Or is this still the same issue? Don't know what you mean by "postcard"??

  19. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    I think so. Although... my 'public_html' file has a folder called 'wordpress' and inside the 'wordpress' folder was all the .php files and .html index stuff. I thought i might have needed to extract all the files from the 'wordpress' folder and put them into the 'public_html' folder... and then deleted what would be the now empty 'wordpress' folder (if you catch my drift?)

    By 'postcard' i meant "answers short and sweet please"...

  20. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Your site does appear to be here:
    http://enigmatrix.org.uk/wordpress/

    Does this login work? http://enigmatrix.org.uk/wordpress/wp-login.php

    Are you trying to do something else?

  21. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    Thank you for your reply, but if you go onto my domain http://www.enigmatrix.org.uk you will see what i mean.

    There is some 'blank' html coding with a hyperlink folder called 'wordpress' which then takes you to the wordpress site i set up.

    I want to remove the 'wordpress' folder so that when you type in my domain name into your web browser it 'should' direct you straight to my wordpress page.

    Any help much appreciated, i know i am very nearly there.

  22. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    Think i just managed to solve my own problem yet again. Or created one...

    Set all target directories. public_html/wordpress into public_html folder. I was typing in public_html - but needed to instruct the FTP client to apply that rule to move ALL of the files which i had selected (ticked) and not just commanding it to apply to just one or two for some reason.

    I deleted the 'wordpress' folder but now my domain site is seeing my wordpress site as html!

    What have i done?

  23. DAVID LIVINGSTONE
    Member
    Posted 1 year ago #

    .htaccess file has lost its little icon and the wlwmanifest.xml file has lost its little icon. - The 'icons' look like a blank sheet of white paper.

Topic Closed

This topic has been closed to new replies.

About this Topic