月別アーカイブ: 2014年4月

WP migration procedure

1. Export  everything from the source WP ( dashboard -> tool-> export)

2. In target WP, probably better to clear database using plugin “WordPress Database Reset”.

3. Prepare: custom post type, CPT UI setting, custom taxonomy, plugins. Don’t migrate the files and media.  Setting for “uploads” must be same as the source WP.

For example, if the “All in One SEO Pack” has been installed, the setting will be migrated through export-import procedure.

permalink settings might be set to default; it can be set after migration smoothly if the apache  and .htaccess are properly set.

4. Import!

5. Better to check the ref. to the source WP especially on the media. Firefox “要素を調査” is convenient tool for this.

6. Change permalinks. If failed, check .htaccess and apache setting; rewrite module and setting in enabled site.  .htaccess must be rewritable: check the permission for this file and directory.

7. Migrate (php) files. No need to migrate media, they should already be present.

set apache2 to include mod_rewrite and related

/etc/apache2:

a2enmod rewrite;

/etc/init.d/apache2 force-reload;

service apache2 restart;

——————————————————

.htaccess file is present at the wp root directory ( var/www/norikoshop/) with almost no content.

rewrite it:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /norikoshop/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /norikoshop/index.php [L]
</IfModule>
# END WordPres

change permalink in 192.168.0.16/norikoshop doesn’t work.

Now clean the web: (Clean URLs with Apache 2 on Debian: on web)

/etc/apache2/sites-available;

cp default default org;

gksudo gedit default;

Directory /var/www/
Options Indexes FollowSymLinks MultiViews
AllowOverride None

to

Directory /var/www/
Options Indexes FollowSymLinks MultiViews
AllowOverride All

sudo a2ensite default;

sudo service apache2 reload;

change permalink in  192.168.0.16/norikoshop/   successfully worked.

 

WP migration study (2)

On  wptest:

0. staus: plugins:  akismet;  themes: designfolio(running),twentythirteen, twentytwelve;  database table_prefix=’wptest_’

1.install WordPress Database Reset

2.Reset the database using this plugin.

 

migration study (1)

On  norikoEnWP:

0. staus: plugins:  akismet;  themes: twentythirteen(running), twentytwelve;  database table_prefix=’wpnoriko_’

1.phpMyAdmin:   all the wpnoriko_ tabels : 空にする(truncate).  size は0にならないけれど、行数は0になる。

2. cannot login: Error establishing a database connection, cannot open the homepage either.

3. I suppose I did too much. For the time, I give up rescue this site.

 

norikoshop status

tokyo-tour-courses:  selection is working , but marking is not ,  class “here” background should be attributed something.  Extra circle mark is present before jump buttons.

tokyo contact: not linked