WordPress.org

Ready to get started?Download WordPress

Forums

Root Site problem - .htaccess and index.php (2 posts)

  1. shane_mahoney
    Member
    Posted 5 years ago #

    Hi there - I'm admittedly a n00b when it comes to anything at all hosting related, so apologies ahead of time if I sound like a rookie.

    I installed WP 2.7.1 on my GoDaddy hosting account, installed a theme and plugins, then created content and got my new site looking all pretty in the WP Admin, at mahoneyandcompany.net/wordpress. I then followed the directions in the codex, at: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    ...but to my chagrin, it doesn't seem to work, I just get an error which says:

    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /home/content/m/a/h/mahoneyandco/html/index.php on line 17

    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /home/content/m/a/h/mahoneyandco/html/index.php on line 17

    Fatal error: main(): Failed opening required './wordpress/wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/content/m/a/h/mahoneyandco/html/index.php on line 17

    I've uninstalled/reinstalled WP 2.7.1 three times today, restoring the backup MySQL database file each time, and all the content I created in HTML and CSS is still present in the Admin tool (thank God). Try as I might, I just cannot get the server to display the WP data correctly, and I have no idea where to start.

    As background: terms like "root directory" have me running to Wikipedia to figure out definitions - I'm REALLY not a technical/webmaster kind of guy, so if you feel compelled to help out, please be as explanatory as you possibly can, I promise I won't feel offended if things are good and dumbed down.

    Thanks in advance for your help!

    shane

  2. stvwlf
    Member
    Posted 5 years ago #

    Hi

    If you are trying to have your site URL be the root folder, like
    http://mydomain.com/

    given all you have been through you would save a lot of time just to install the WP files in the root folder in the first place. Then you don't need to give WP its own folder or any of that.

    On GoDaddy hosting, it means you put the files in the highest level of your account that you can access.

    I'm going to assume you have a paid GoDaddy hosting account - WP doesn't work with their free hosting.

Topic Closed

This topic has been closed to new replies.

About this Topic