Wordpress help

Blasted

Suspended / Banned
Messages
927
Edit My Images
Yes
Hi there,

I've been attempting to get my own web site up and running using wordpress.

So far I've gotten to the stage where if you type my address with /wp on the end you get to the page. www.benleephotography.co.uk

In the instructions, to get rid of the /wp at the end i need need to copy some files across to the root, that is the index.php and the .htaaccess files.

I have been following these instructions, but have gotten stuck at number 6.

http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

It says to alter the index.php, but i dont know what it means by using the directory anme for the wordpress core files, what should I be putting in that line?
 
As you only have the barebones installed and no content it's probably easier to remove and reinstall in the correct place, should only take 2 minutes.
 
Last edited:
I'd suggest the same - and use FusionApps to install it as it will take the hassle out of the install.
 
Thanks chaps, but...

I've already done the easieist install known to man, on my cpanel there is a button under the softaculous apps installer, that says wordpress, I click that and then just after, it tells me its done. I then get an email with the relevant information.

I have been playing with instant wordpress on a pen drive, hence no content on the new site yet, which isn't an issue as its not properly working.
 
Thanks chaps, but...

I've already done the easieist install known to man, on my cpanel there is a button under the softaculous apps installer, that says wordpress, I click that and then just after, it tells me its done. I then get an email with the relevant information.

I have been playing with instant wordpress on a pen drive, hence no content on the new site yet, which isn't an issue as its not properly working.

OK, in answer to your original question then:

Open index.html with Dreamweaver/notepad/html editor of your choice

Search for

require('./wp-blog-header.php');

change it to

require('./wp/wp-blog-header.php');

click save, upload it back to your hosting account (to "/" rather than "/wp/")
 
Last edited:
Thanks guys,

I tried that. I went to the root folder, right clicked on the index.php, selected edit, made the changes and then clicked save.

If I cycle between the index file in the public_html folder and the one in the root I can see the changes have been made.

After following the guide I linked to earlier on, I’m now at this point.

If I go in the address bar and type http://benleephotography.co.uk/ I get the following errors

“Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/benleeph/public_html/index.php on line 17

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/benleeph/public_html/index.php on line 17

Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/benleeph/public_html/index.php on line 17”

Now, I if I add the /wp to the end of the address I can get back to the front screen as before, but still with that pesky /wp

If I add wp/wp-admin to the end of the address I can get to the log in screen. Once there, if I click on the view page in the top left I get the same error messages again.


If I go into general settings on wordpress under admin log in and add the /wp onto the end of the site address url under general settings, clicking on the visit site button in the top left works again.

I’m beginning to think that easy doesn’t really mean easy.
 
The edited file should be in public_html, not root
 
Alternatively,

Go to Softaculous > Click 'Remove'
Go to Softaculous > Click 'Install' > make sure subfolder field is empty > Click 'Confirm'
Have a beer
 
Thanks for that.

I did as you said, un installed, re installed and removed the bit about putting in a folder and just stick it at the root.

Hey presto it works.

The next thing is to get google to pick it up, as its only working off the address bar, maybe the crawler bot things need a bit of time to pick it up. I'm going to look into a bit about SEO and see if I can get that to help.

I'm going to skip the beer after this weekend and go for a relaxing swim instead.
 
The next thing is to get google to pick it up, as its only working off the address bar, maybe the crawler bot things need a bit of time to pick it up. I'm going to look into a bit about SEO and see if I can get that to help.

Google picked it up a few days ago and the link at the top of this thread will probably get it recrawled but it may take some time before it starts appearing in the results just for it's name and even longer for anything useful (but you'll need to add content first).
 
Back
Top