I know this question has been posted several times before, but the solutions proposed in the other posts don't seem to work in my case.
I've just bought a new hosting space and new domain, I installed WP through Softaculous. Everything seemed fine, I can login on WP and get to my dashboard, but when I try to open my site (thewatercat.com) I can only see a page with Index of/ and then cgi-bin folder. Once I click on the tag "Name" it redirects me towards my actual site, which can be found at the address thewatercat/?ND.
I thought it was an index.php problem, but it appears to be in the right folder, public_html. Also WP seems to be installed correctly, into the public_html folder, not into a sub-folder. If I check the error_log file, this is the error I get
[12-Jan-2014 17:53:37 Europe/Berlin] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mjzncjqx/public_html/index.php on line 17
The line 17 on index.php it's like that:
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
I tried to delete that "dirname( __FILE__ )" part, I tried to put "?>" on line 18, I tried every combination of them, and the only thing that changes is that with any edit I can't get to the website anymore, not even by clicking on "Name".
What is the problem? Thank you very much!