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 - | sh
If you have the curl utility, run
curl | sh
If you have the fetch utility, run
fetch -o - | 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:


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.


Continue reading…

Scheduling your Server to Automatically Reboot

Windows Server 2003

Windows Server 2003 comes with the built-in ability to schedule your server to reboot at any time of your choosing. It is quite simple to set up.

Navigate to Start -> All Programs -> Accessories -> System Tools -> Scheduled Tasks.

Click on the icon which says Add Scheduled Task.

You should now see the Add Scheduled Task Wizard. Click Next.

Disregard the list of programs, and click the Browse button.
Continue reading…

How to stop DrWeb notification emails – Plesk 11

You need SSH access to your plesk panel to do this
login with your account with SSH or with su as root.
Use your favourite editor (i use VI) and go toPlesk Parallels
vi /etc/drweb/drweb32.ini
look for
and change it to
Also you can edit the
vi /etc/drweb/drweb_handler.conf
where you can look for the Notification section and change anything that you dont want to be notified about by simply putting no instead of yes
After any changes you need to stop and start the drWeb Service.
you can do that by
/etc/init.d/drwebd start
/etc/init.d/drwebd stop