A Small Orange Forums: Get wordpress up and running - A Small Orange Forums

Jump to content

NOTICE: This is *not* an official support forum

All support requests should be made by through our Support Desk or by emailing help@asmallorange.com.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Get wordpress up and running Moving wordpress from another host Rate Topic: -----

#1 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 15 November 2006 - 10:48 AM

OK. I have my addon domain issues sorted out.

And I used all the information from Podz Wordpress site and the Wordpress forums and moved my stuff over to ASO. Went into my wp-config file and changed the name of the db and users.

Questions:

1. When I enter the db name as "blog" in the MySQL admin area of cpanel, a prefix (my username) is always added. I presume that the prefix is part of the db name and not just for visual convenience
2. The same is true for all users I add to the db

Has anyone moved wordpress over before and what worked for you?
0

#2 User is offline   shep

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 22
  • Joined: 20-February 06

Posted 15 November 2006 - 01:23 PM

QUOTE(mndoci @ Nov 15 2006, 9:48 AM) View Post

OK. I have my addon domain issues sorted out.

And I used all the information from Podz Wordpress site and the Wordpress forums and moved my stuff over to ASO. Went into my wp-config file and changed the name of the db and users.

Questions:

1. When I enter the db name as "blog" in the MySQL admin area of cpanel, a prefix (my username) is always added. I presume that the prefix is part of the db name and not just for visual convenience
2. The same is true for all users I add to the db

Has anyone moved wordpress over before and what worked for you?


yes, you need to use the prefix. i've moved wordpress over from another host quiet easily.

Welcome to ASO, podz also uses ASO by the way smile.gif
0

#3 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 15 November 2006 - 02:11 PM

QUOTE(shep @ Nov 15 2006, 1:23 PM) View Post

yes, you need to use the prefix. i've moved wordpress over from another host quiet easily.

Welcome to ASO, podz also uses ASO by the way smile.gif


That's one reason I chose ASO smile.gif.

I still don't know why I am getting the dreaded

QUOTE
Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql. This could mean your host's database server is down.


Any troubleshooting suggestions?

0

#4 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 16 November 2006 - 03:00 AM

I made a small change, changing the DB_HOST value to 'localhost'. Not sure if that is correct. My DB error has gone and been replaced by all kinds of wp_cache related ones unsure.gif
0

#5 User is offline   war59312

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 593
  • Joined: 21-July 04

Posted 16 November 2006 - 04:47 PM

Hi,

Yes localhost is correct.

For the wp_cahce issues first clear your browsers cache disable wp_cache.

Before you do the following be sure to backup the files. You will need them in a min.

So edit wp-settings.php. Remove this from it:

// For an advanced caching plugin to use, static because you would only want one
if ( defined('WP_CACHE') )
require (ABSPATH . 'wp-content/advanced-cache.php');

Edit wp-config.php and remove both of these:

define('WP_CACHE', true);
define('ENABLE_CACHE', true);

Then reload your site. Everything should be fine now. Of course no more wp_cache atm. Again clear the browser's cache.

Now simply upload the backed up files and re enable wp_cache. And again reload your site. Now it should be fine. smile.gif

It's an ugly bug thats been around for a long time. That will most likly fix it.

If not please provide some details. Hard to help out when you do not even most the error/warning messages.

Take Care,

Will

God Bless America
0

#6 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 16 November 2006 - 05:42 PM

QUOTE(war59312 @ Nov 16 2006, 4:47 PM) View Post

Hi,

Yes localhost is correct.

For the wp_cahce issues first clear your browsers cache disable wp_cache.

Before you do the following be sure to backup the files. You will need them in a min.

So edit wp-settings.php. Remove this from it:

// For an advanced caching plugin to use, static because you would only want one
if ( defined('WP_CACHE') )
require (ABSPATH . 'wp-content/advanced-cache.php');

Edit wp-config.php and remove both of these:

define('WP_CACHE', true);
define('ENABLE_CACHE', true);

Then reload your site. Everything should be fine now. Of course no more wp_cache atm. Again clear the browser's cache.

Now simply upload the backed up files and re enable wp_cache. And again reload your site. Now it should be fine. smile.gif

It's an ugly bug thats been around for a long time. That will most likly fix it.

If not please provide some details. Hard to help out when you do not even most the error/warning messages.

Take Care,

Will


Thanks a ton and sorry for not posting the error message. I am going to cross my fingers and try out what you suggest. In the meantime, here are the errors I am seeing

Warning: fopen(/home/user/public_html/domain_name/blog/wp-content/cache/wp_cache_mutex.lock) [function.fopen]: failed to open stream: Permission denied in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 79
Couldn't write to: /home/user/public_html/domain_name/blog/wp-content/cache/wp-cache-48736852343c354627f7d006c54befd0.html
Warning: flock(): supplied argument is not a valid stream resource in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 88
Warning: fopen(/home/user/public_html/domain_name/blog/wp-content/cache/wp-cache-48736852343c354627f7d006c54befd0.meta) [function.fopen]: failed to open stream: Permission denied in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 223
Warning: fputs(): supplied argument is not a valid stream resource in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 224
Warning: fclose(): supplied argument is not a valid stream resource in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 225
Warning: flock(): supplied argument is not a valid stream resource in /home/user/public_html/domain_name/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 97


0

#7 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 17 November 2006 - 10:44 AM

sad.gif So I've tried multiple times. Here is what I am doing, step-by-step

1. Backing up my database
2. Downloading all my files
3. Creating a new database at ASO and importing the old database into it
4. Uploading all my files to the addon domain folder (keeping the blog structure intact within that). The only thing I do not upload are all the files in the "cache" folder
5. Correcting the database and user settings in wp-config.php
6. Clearing my browser cache
7. Backing up wp-config.php and wp-settings.php
8. Delete the following from wp-settings.php

// For an advanced caching plugin to use, static because you would only want one
if ( defined('WP_CACHE') )
require (ABSPATH . 'wp-content/advanced-cache.php');

9. Delete the following from wp-config.php

define('WP_CACHE', true);


Just for the record, I don't have a line for
define('ENABLE_CACHE', true);



10. In my browser I type in mainASOdomainname/addondomainfolder/index.php. The front page loads up.
11. Clear the cache and re-upload the backed up files.
12. Change my DNS settings to the ASO name servers
13. Same old wp_cache errors (listed above)
0

#8 User is offline   war59312

  • Will's Blog
  • PipPipPipPipPip
  • Group: Members
  • Posts: 593
  • Joined: 21-July 04

Posted 19 November 2006 - 06:32 PM

Um, try this:
QUOTE
1. Open wp-cache-phase2.php in your favourite text editor
2. Find the wp_cache_ob_end function
3. then inside that function find the line with: ob_end_clean(); (it should be line 219 or about)
4. and finally replace that line with: ob_end_flush();


God Bless America
0

#9 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 21 November 2006 - 11:22 AM

QUOTE(war59312 @ Nov 19 2006, 6:32 PM) View Post

Um, try this:
QUOTE
1. Open wp-cache-phase2.php in your favourite text editor
2. Find the wp_cache_ob_end function
3. then inside that function find the line with: ob_end_clean(); (it should be line 219 or about)
4. and finally replace that line with: ob_end_flush();




Thanks. Haven't had a chance to try this yet, but over the Thanksgiving weekend, I definitely want to try and sort this out.
0

#10 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 24 November 2006 - 12:37 AM

I tried the blog move from scratch. This time I turned on the wp-cache plugin and options before transferring my files over. I did not move any of the contents of the "cache" folder over.

I then went into wp-config.php and deleted the wp-cache related line.

Then I moved my nameservers over. The front page looks fine, but clicking on individual links is giving me errors like the following


QUOTE
Not Found
The requested URL /blog/2006/11/21/spreading-a-meme/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



Any suggestions/hints would be much appreciated.
0

#11 User is offline   mndoci

  • Small Orange
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 06-August 06

Posted 26 November 2006 - 01:03 PM

It looks like the problems were being created by Yahoo specific plugins. I disabled them and things seem to be working properly. There are some other problems but those are best addressed at the wordpress forums at this time.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users