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

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

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

How to install VNC server on CentOS 6

When we install the minimal copy of CentOS Server, it only gives us the “Command Line” interface.But some people prefer GUI instead and for this they install Full version of Gnome on CentOS. Actually there is a better way and that is to install VNC. VNC provides a lightweight virtual desktop than full blown version of Gnome.

To run the VNC Server on CentOS, we have to install these required packages:
sudo yum groupinstall Desktop
sudo yum install tigervnc-server
sudo yum install xorg-x11-fonts-Type1
To start VNC Server on boot
Continue reading…

Transfer Parallels Plesk Panel Key from one server to another server

The license key can be taken from the Parallels key administrator system. If you do not have access to the key administrator system then generally, the PP license key is stored in the file /etc/psa/psa.key (for PP 8.x) or in /etc/sw/keys/keys/keyXXYYZZ (for PP 9.x and 10.x). The file can be transferred to the new server. A restart of the PP CP is required after the key’s replacement.
Continue reading…

How to check the version of PHP ?

To verify the update is working create a simple testphp.php in your www directory with the following source code:

and open it in a web browser. The new PHP version should be reflected at the top of the page.


ssh into the server or run the follwing command in terminal

php -v

How can I downgrade my version of PHP ?

Iphp 5.3 on Fedora 17 or Redhat using atomic repo.

You will need to remove php and httpd first (not compulsory)

yum remove php
yum remove httpd

Add the following at the end of /etc/yum.conf(if required)


Install php from atomic repo

wget -q -O - http://www.atomicorp.com/installers/atomic | sh
yum install php

More details at