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.

Sharing: What WordPress Theme Is That

Do you ever wonder what is the WordPress theme used by your friend blog, or any site from the Internet?

With What WordPress Theme Is That site, you may easily track the WordPress theme used by a site.

1. Open your Internet Browser.
2. Navigate to http://whatwpthemeisthat.com/.
3. Enter the website you want to track and press “Check Site” button.

WordPress migration with SSH

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 done it through SSH without any trouble.

Folder/File
1.  Log into the SSH.
2.  Copy the folder and file from blog folder to main site.

cp -apr /home/domain/public_html/blog /home/domain/public_html

3. If you using Permalink and having mod_rewrite rule, you may edit your .htaccess file,

vi /home/domain/public_html/.htaccess

4. Change the rewrite rule 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]

Database:
1.  Dump the database. Assume your database named wordpress.

mysqldump wordpress > wordpress.sql

2. Change the entry from www.domain.com/blog to www.domain.com.

sed -i 's/www\.domain.\com\/blog/www\.domain\.com/g' wordpress.sql

3. Restore the database back to the domain.

mysql wordpress < wordpress.sql

Android Review: Utilitas for Android

Utilitas, which is a tools designed to ease the user with a collection of light and tools such as StopWatch, Date Calculator, Compass, etc.

Even though many apps could do that but Utilitas is special design with all-in-one.

Below is part of the screenshot images on this apps.

To get this apps, please download it from,

info app:
google play:

 

WordPress Plugin: P3 (Plugin Performance Profiler)

Feeling your WordPress apps slower and slower? As using too much plugin from your WordPress is actually reducing the website performance, you may now use WordPress plugin named P3 which stand for Plugin Performance Profiler.

To install P3, it is simply easy,

  1. Log into your WordPress admin.
  2. Click Plugins.
  3. Click Add New.
  4. Search for P3.
  5. Click Install Now under “P3 (Plugin Performance Profiler)”.
  6. Activate the plugin.
To start profile your website, you may start scanning the website.
And it will just take less than a minute to calculate the performance from your WordPress website.
Next, you could understand the statistic from the result.
P3 do support email the report of your performance test where you may forward the result to your webmaster.

Disable Post revision in WordPress

Post revision is a nice tools if you have multiple writer who will contribute from the same article, but how if you have more than 5,000 articles and each time your writter will edit and draft it, you might have 50,000 records from your wp_posts tables where would slow down the database loading time.

To done this, simply add the code as below from wp_config.php file,

define('WP_POST_REVISIONS', false);

How to know if you have too many WordPress plugins

Many bloggers who using WordPress were facing a major problem, website slow. Sometimes, this could be a problem from the WordPress application itself instead of the hosting server.

WordPress is designed to be able to use custom plugins or themes. If you simply install the untrusted plugins or themes, it will indirectly causing your website slow.

So you shall not install the unused plugins. If you did it, uninstall it instead of deactivated it as deactivated will still causing the SQL query to query it from the wp_options tables from your database.

Watch your website load time. If your site couldn’t loaded within 5 seconds and where this might caused by the low quality plugins installed.

Check the plugins compatible from the plugins page from URL below,
http://www.mickgenie.com/wordpress-3-2-are-you-sure/

Check the query time,  add the following code to your footer.php and check your site query number and time.

<?php echo $wpdb->num_queries; ?>
<?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>

Then try to disable the plugin 1 by 1 or even remove them and test the query time. Otherwise, optimize the database to cleat the overhead data.

WordPress 3.2? Are you sure?

Every blogger is discussing about WordPress 3.2 and even the self-hosted WordPress dashboard itself is asking to upgrade. But is it necessary to upgrade to WordPress 3.2 for you by now?

First of all, it is not about to backup your WordPress web file and database but you shall consider if your plugin(s) is compatible with WordPress 3.2.

So, you shall go to your WordPress plugins page,
Log into the WordPress, select the plugins sections and click on the Plugins.

Then open URL as below with another browser tab.
http://wordpress.org/extend/plugins/

Search the plugin(s) one by one from the URL as above and look for the compatible information.

Blocked External Update Services request from WordPress

By default, WordPress allowed us to apply the update services where this services will notify external link on the update of your blog.

Somehow, if you do not want to update these update service to be updated, you may disable it from the WordPress configuration file in wp-config.php file.

To done it, simply add the following code to your wp-config.php file as code below.

define('WP_HTTP_BLOCK_EXTERNAL', true);