Viewing 15 replies - 1 through 15 (of 20 total)
  • You deleted your index.php file.

    Go to your file manager, and create a new file and name it “index.php” and add this code

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    This is the default, so hopefully you didn’t change anything else! Let me know if this helped!

    **EDIT**
    This may much more…if you go to: https://yspinfo.org/ , not only do you not have an index but you don’t have any of the wordpress files….did you delete them all????

    Thread Starter ptzoie

    (@ptzoie)

    supposed so…~
    i just simply delete the whole file called ‘ www’ , what should i do?
    And i have already made a lot of posts here.

    Ok, try this. It seems like you still have the folders (wp-admin, wp-content, wp-includes)

    When you go to your file manager, do you still see those folders? And if so, what do you see within?

    Thread Starter ptzoie

    (@ptzoie)

    yes i can see those folders…In wp-admin, i can see the files called ‘ css, images, includes, js, maint, meta,and all the php files. In wp-content, i can still see all the plugins and themes …For the wp-includes, i can see the files called images, js, language,pomo, text, theme-compat…and all the php files again.

    ok good, so the only thing in the root is those 3 folders???

    Thread Starter ptzoie

    (@ptzoie)

    underneath the file,called public html, i only got 3 files, wp-admin, wp-content, wp-includes, except www// then what should i do?

    well, if that is all you see then somehow you deleted ALL of the wordpress files…except for those folders.

    download this from me: https://aftershockforum.com/wp/extracttoroot.zip

    Upload this file to your root directory. Extract the .ZIP file to your root directory. MOVE the files from the folder it creates to the ROOT of your website. Just make sure that all the files in this .ZIP file are on your root.

    All that is in here is the files that wordpress came with. This should help you out.

    Thread Starter ptzoie

    (@ptzoie)

    i did try this. I tried to put those files into a newly created file, called www. But after putting it in the root directory, it still remain unchanged,.

    ok try downloading it again right now. This time you need to edit the bb-config.php file AFTER the files are to the root. Add your database name, password, and all the stuff it requires.

    It will ask you for:

    define( 'BBDB_NAME', '' );
    
    /** MySQL database username */
    define( 'BBDB_USER', '' );
    
    /** MySQL database password */
    define( 'BBDB_PASSWORD', '' );
    
    /** MySQL hostname */
    define( 'BBDB_HOST', '' );

    Add your database information in the ”

    Thread Starter ptzoie

    (@ptzoie)

    And now, it gives me this note.
    ‘ 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 localhost. 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.’
    What should i do?

    ok try downloading it again right now. This time you need to edit the bb-config.php file AFTER the files are to the root. Add your database name, password, and all the stuff it requires.

    https://aftershockforum.com/wp/extracttoroot.zip

    It will ask you for:

    define( 'BBDB_NAME', '' );
    
    /** MySQL database username */
    define( 'BBDB_USER', '' );
    
    /** MySQL database password */
    define( 'BBDB_PASSWORD', '' );
    
    /** MySQL hostname */
    define( 'BBDB_HOST', '' );

    Add your database information in the ”

    Thread Starter ptzoie

    (@ptzoie)

    but how can i open the php file, since i don’t have.

    unzip the thing I told you to download, add all the files to your root. Edit the file that will be bb-config.php.

    You will have that file once you put the stuff I am giving to you on there.

    Thread Starter ptzoie

    (@ptzoie)

    but i still can’t make it.
    i did type the host name, password, username,
    Should i only need to type these three things?

    these

    define( ‘BBDB_NAME’, ” );

    /** MySQL database username */
    define( ‘BBDB_USER’, ” );

    /** MySQL database password */
    define( ‘BBDB_PASSWORD’, ” );

    /** MySQL hostname */
    define( ‘BBDB_HOST’, ” );

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Help! Urgent!! careless delete the www file in ftp..’ is closed to new replies.