WordPress.org

Ready to get started?Download WordPress

Forums

"WordPress" - folder renaiming for security reasons (9 posts)

  1. pressor771
    Member
    Posted 3 years ago #

    Okay, so i bought that book "Digging into wordpress"

    And there it's says that prior the installation you should rename your "wordpress" folder to something weird and obscure.

    Then you should go to index.php and

    and change this

    require('./wp-blog-header.php');
    …to this:
    require('./your_weird_and_obscure/wp-blog-header.php');

    I did this and nothing works i get

    Warning: require(.your_weird_and_obscure/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/web237/b2372/ipg.username/mydomain.com/your_weird_and_obscure/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required '.your_weird_and_obscure/wp-blog-header.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web237/b2372/ipg.username/mydomain.com/your_weird_and_obscure/index.php on line 17

    What do i do wrong?

    And is there a way to do this thing if WP already installed and running? Is there a need to change something in database????

    It's a fourth question i ask here... no one on this forum answers my questions some why...

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    Did you move your index.php & .htaccess back into the root directory?

  3. pressor771
    Member
    Posted 3 years ago #

    .htaccess is not exists. I moved the index.php to the root folder of the site.

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    are you sure .htaccess isn't hidden? Did you select the option to view hidden files?

  5. pressor771
    Member
    Posted 3 years ago #

    No the hosting is not hiding files. However there is .htaccess file on the root folder of my entire account.

  6. pressor771
    Member
    Posted 3 years ago #

    It's the only one. And it been created only i asked them why there is no one at all...

  7. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    Maybe that is causing the problem. Rename (don't delete in case removing it causes problems) the .htaccess temporarily to old.htaccess to see whether that helps.

  8. pressor771
    Member
    Posted 3 years ago #

    nay, .htaccess has nothing to do with it.

    The one i have is 2 months old. Been created before i discovered wordpress.

    And when i installed wordpress at first i had no .htaccess at all.
    And it worked fine.

    Before me starting reading this book all was OK.

    Update:

    The error listed above or

    Warning: require(.your_weird_and_obscure/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosweb/web237/b2372/ipg.username/mydomain.com/your_weird_and_obscure/index.php on line 17
    
    Fatal error: require() [function.require]: Failed opening required '.your_weird_and_obscure/wp-blog-header.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosweb/web237/b2372/ipg.username/mydomain.com/your_weird_and_obscure/index.php on line 17

    was showing when i clicked to view index.php

    Now when i even try to reinstall wordpress the regular way, this means
    keep the folder named "wordpress", and click on the wp-admin/install.php in the readme.html what i get is a search at ask.com with that directory (wp-admin/install.php).

    How did it work in past?

    Well, it worked that way:

    1. registering domain
    2. changing nameservers to my host's nameservers
    3. creating a folder domain.com with my account
    4. uploading wordpress (the latest copy)
    5. extracting it to the folder domain.com
    6. opening readme.html
    7. clicking the link wp-admin/install.php
    7. going trough the process
    8. ta da... it works.

  9. pressor771
    Member
    Posted 3 years ago #

    update: uploaded a fresh copy of wordpress, the same thing...

Topic Closed

This topic has been closed to new replies.

About this Topic