Changing the domain in WordPress Multi Site.

If you have to or want to change the domain of your WordPress MU site. The domain name is actually stored in different places in the database, as well as online in wp-config.php. Every instance of these will need to be changed.

Before you do anything create a  backup. Go to phpMyAdmin, select your database, and choose Export. Save it to your computer. We’ll be making a copy of this and working on the copy. This way, if anything goes wrong, we still have our backup.

Continue reading…


Enabling error display in php via htaccess only

Note:- When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files. You will need “AllowOverride Options” or “AllowOverride All” privileges to do so.

Add following values to your .htaccess

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log


WordPress Subfolder Multisite .htaccess file


RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]


Parallels Plesk Panel Typical Installation with One-Click Installer

Use the One-Click Installer utility to perform a clean installation of Panel in one step. The utility automatically determines your operating system and installs the latest version of an appropriate distribution package in the typical configuration. One-Click Installer works only on Linux operating systems.

To install Panel, run one of the following commands on behalf of the root user.

If you have the wget utility, run
wget -O - http://autoinstall.plesk.com/one-click-installer | sh
If you have the curl utility, run
curl http://autoinstall.plesk.com/one-click-installer | sh
If you have the fetch utility, run
fetch -o - http://autoinstall.plesk.com/one-click-installer | sh

Plesk Website


Exchange 2007 – A reboot from a previous installation is pending.

Remove the following key will solve the issue most of the times:

HKLM\SYSTEM\CurrentControlSet\Control\SessionManager\PendingFileRenameOperations

Microsoft Exchange Server setup cannot continue because a restart from a previous installation or update is pending.

The Exchange Server Analyzer reads the following registry key to determine whether a system restart is required after installation or removal of a software update such as a security update, critical update, or hotfix.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\UpdateExeVolatile

 
Continue reading…