Hey there,
You mentioned that the site is installed here:
http://www.greenlineag.co.nz/wp/
But then when you try to access the site you’re going to:
http://www.greenlineag.co.nz/wp-admin/
If that’s the case then you’re missing the folder /wp/ in the URL, for wp-admin you need this:
http://www.greenlineag.co.nz/wp/wp-admin/
Which when not logged in will send you here:
http://www.greenlineag.co.nz/wp/wp-login.php
Is there a reason you wanted it in a subfolder, personally if it were me I’d pop it in the root of the domain.
Hope this helps.
Take care.
Thanks for your help. I logged in at http://www.greenlineag.co.nz/wp/wp-admin/ and I am all go!!
I will now try and change it to the root of the domain (which is where I want it). Wish me luck. π
So here’s the result of my attempt. (please let me know if I should start a new thread for this).
I went through all the steps. Guessing I must of done something wrong when I edited the index.php. I did this by double clicking on the file in public_html and opened with notepad (in windows). I then added ‘wordpress’. Also tried ‘wp’ with the same result.
Now I can log on to wordpress at http://www.greenlineag.co.nz/wp/wp-admin.
But when I try and go to http://www.greenlineag.co.nz I get the following:
Warning: require(/home/greenlin/public_html/wp-blog-header.php): failed to open stream: No such file or directory in /home/greenlin/public_html/index.php on line 17
Fatal error: require(): Failed opening required ‘/home/greenlin/public_html/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/greenlin/public_html/index.php on line 17
If I right click on the index.php file I have the option to Code Edit. Should I be doing the change that way?
But wait theres more. My addition of wp or wordpress doesn’t seem to be saved when I open, change and save in notepad as when I reopen the index.php file it still has just
( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
So I assume all I need to do is change and save this correctly?
I’m not entirely sure how you edit your index.php, with which text editor, what OS, etc. Sometimes this can make a difference. Also not sure what the option “Code Edit” would do. These are things that are specific to your computer, I’d say!
But yes, you’ll need to make sure that index.php (in the root of your site, NOT the one in your /wp/ directory!) contains this:
<?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( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );
What happens if I try to use “code edit” option but it’s not the way to do it. I have a copy of the original text saved. And I haven’t done any work on my site so nothing to lose. If I muck it up can I just uninstall and re install word press?
Feeling good. π
I used “code edit” and added /wp. And now http://www.greenlineag.co.nz opens my wordpress site.
Thanks for your help. Until next time….