WordPress migration with FTP

Scenario:
Old Site: www.domain.com/blog
Path: /home/domain/public_html/blog
New Site: www.domain.com (Assume the site is empty)
Path: /home/domain/public_html

In order to move the WordPress account manually without any plugin, you may choose to use FTP to perform download and upload.

Folder/File:
1.  Download your web file/folder from /home/domain/public_html/blog to your PC.
2. Reupload those file/folder back to the /home/domain/public_html.
3. If you using Permalink and having mod_rewrite rule, you may edit your .htaccess file from your local PC from,

RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

To,

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

4. Upload the .htaccess file to /home/domain/public_html.

Database:
1.  You may backup through SSH, PHPMyAdmin or any other method.
2. Download the backup file through FTP.
3. Open Notepad, find and replace from www.domain.com/blog to www.domain.com.
4. Upload the database back to the server.

cPanel with RVSkin not able to list file from file manager

Today, I found out cPanel with RVSkin could not list file and folder from file manager feature, I have immediately seek from RVSkin support and get the fix.

Below is the error from cPanel’s error_log.

Error:
[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$abshomedir failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 56) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$FORM{‘dir’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 57) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$FORM{‘showhidden’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 58) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$CPDATA{‘RS’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 59) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$CPDATA{‘DNS’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 60) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$ENV{‘cp_security_token’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 63) line 1.

[2010-10-22 11:56:11 +0800] warn [jsprint::jsprint] Encountered error in jsprint::jsprint: jsprint::$ENV{‘cp_security_token’} failed: Undefined subroutine &Cpanel::jsprint::jsprint_jsprint called at (eval 64) line 1.

I was fixed the issue by running 2 command from SSH only.
# rm -f /usr/local/cpanel/Cpanel/rvversion
# perl /root/rvadmin/auto_rvskin.pl

You will need about 5-10 minutes to get the fix. Good Luck.

WordPress Visual Editor not loaded

Some user ever found out when they install a new WordPress or upgrade the WordPress to newer version, the visual editor is missing when they want to add a new article.


To fix the issue, simply open the wp-config.php file from your WordPress folder and add the line below to the bottom of the line will do.

define( ‘CONCATENATE_SCRIPTS’, false );

Joomla Search Engine Friendly(URL) in IIS7

Many user who using IIS7 as the web services and found out the SEF(Search Engine Friendly aka Permalink or URL rewrite) is not working in Joomla.

With Joomla implementation, it is using the rewrite rules to perform the Search Engine Friendly to be worked. Hence you either need the URL rewrite configuration installed or APE(Apache emulator) to done it.

Although the easiest way is using Ape(Apache emulator) to done it by installing Ape to your IIS7, however some module might not really working well from Ape to IIS7 and Mick Genie will not teach how to install Ape to your IIS7, however you may install it through URL as below.
Download here: http://www.iis.net/community/default.aspx?tabid=34&g=6&i=1938

Today, Mick Genie will teach you how to use Microsoft URL Rewrite tool where free to download from Microsoft IIS site.
1. Firstly download the Microsoft URL Rewrite tool.
2. Edit or create a web.config file from the Joomla application folder.

3. Add the following line to your web.config file.
Continue reading Joomla Search Engine Friendly(URL) in IIS7

Suggestion steps to migrate a large site from WHM/cPanel

If you are familiar with WHM/cPanel, you sure have this problem while trying to migrate a website more than 2GB and found out the file/folder or any data not updated.

Today, Mick Genie will suggest a better way(my suggestion) to perform the migration.

But before that, please understand the command as below.

/scripts/pkgacct username
rsync

With Mick Genie’s suggestion, your site migration will down for minutes(depend on the size).

1. Go to the user root directory.

cd /home/username/

Continue reading Suggestion steps to migrate a large site from WHM/cPanel

Enabling Permalink from WordPress with IIS7.x

This article is applicable for WordPress user who used IIS7.x as their web services and not able to work correctly with the permalink.

1. Log into your WordPress. Select on Setting and click on Permalink Settings.

2. Select any of the Common Setting or Custom Structure.
3. Click Update Permalink Structure button.
4. Now, you will see your blog get 404 error when click on any post or pages. No worry, refer to the following step to get this fix.
5. Log into your DotNetPanel file manager or FTP, modify the web.config file from your root folder (probably wwwroot folder) and add the following code to the web.config file.

Continue reading Enabling Permalink from WordPress with IIS7.x