How to change the default port for Plesk

It is not recommended to change the default Plesk port because it can break Plesk integration with other programs like Plesk Expand or DrWeb.


To change the port Plesk listens on you will need to edit /usr/local/psa/admin/conf/httpsd.conf file and change the following directives to list the port you want Plesk to listen on:

Listen 8443
Port 8443
VirtualHost *:8443>

You will need to restart Plesk afterwards. Plesk cannot listen on any of the ports used for common services.


Most Plesk installs will be using Apache by default. You will want to edit the Apache configuration file C:\Program Files\SWsoft\Plesk\admin\conf\httpd.conf

1.) Change the following line to list the port number you want Plesk to listen on
Listen 8443

2.) Restart Plesk Control Panel.

Plesk – Rebuilding qmail queue on RPM based Servers

This instruction is written for RPM-based systems like RedHat, Fedora, CentOS, etc.

Please do the following steps to recreate Qmail`s queue, Queue has damage or lots of spam mails.

Please DO remember that all current messages will be removed from the queue in this case and cannot be restored.

1. Stop Qmail and xinetd.

/etc/init.d/qmail stop
/etc/init.d/xinetd stop

2. Move current queue to another location.

mv /var/qmail/queue /var/qmail/queue_old

3 Reinstall ‘psa-qmail’ RPM to recreate qmail queue structure with the command like:

rpm -Uvh –force psa-qmail….

4.(Optional).Reinstall drweb-qmail RPM if you use DrWeb antivirus feature which comes with Plesk.

rpm -Uvh –force drweb-qmail….

5.Start Qmail and xinetd:

/etc/init.d/qmail start
/etc/init.d/xinetd start

You should get the both psa-qmail and drweb-qmail RPMs from the same Plesk version distributive that is installed on the server. You can obtain current psa-qmail, drweb-qmail RPMs and Plesk build versions by running the following commands on Linux systems:

rpm -q psa-qmail
rpm -q drweb-qmail
rpm -q psa

How to retrieve the Plesk control panel password?

You can always get the Plesk password if you have Administrative access to the server.

For Windows,

1. From the Start menu, select Run.
2. Enter the following command:
“C:\Program Files\SWsoft\Plesk\admin\bin\plesksrvclient.exe” -get

For Linux,
1. Via SSH, run the following command:
cat /etc/psa/.psa.shadow

Upgrade Php4 to Php5

How to migrate php4 to php5 within Plesk server?

First of all you must take note of the non backward compatible changes in PHP5.

If you are ready to install/upgrade to PHP5 follow this procedure.

* From your server command line type:

wget -q -O – | sh ,

what this will do is download and install all the necessary packages for your Plesk install , including PHP, MySQL, and Spam assassin. The entire process should be rather streamlined where you will not have to type anything in to console. Once the install is complete you can use the command: php –v.

In the event you have several other packages being used with PHP you will need to take the appropriate steps in upgrading them accordingly. Once you have PHP5 installed you will be ready to migrate and configure apache files for PHP5. There are two methods to accomplish this depending if you are running PHP in CGI mode. For Example inside of the file php.conf located in /etc/httpd/conf.d/php.conf:

# Change this line:

LoadModule php4_module /php/sapi/php4apache2.dll

# To this one:

LoadModule php5_module /php/php5apache2.dll

Or PHP5 with CGI mode:

# Change this line:

Action application/x-httpd-php “/php/php.exe”

# To this one:

Action application/x-httpd-php “/php/php-cgi.exe”

*Note that CGI version has changed its name from php.exe to php-cgi.exe*

More info along with Parallels documentation on this link

Change Hostname

Debian based systems use the file /etc/hostname to read the hostname of the system at boot time and set it up using the init script /etc/init.d/ So on a Debian based system we can edit the file /etc/hostname and change the name of the system and then run,

# /etc/init.d/ start

To make the change active. The hostname saved in this file will be saved on system reboot.

Start applications on boot (Debian)

update-rc.d is the utility that Debian provides to manage init scripts. It is similiar to Redhat’s chkconfig. Say, you have a new service called “mine” that you would like to start at boot time. Make sure that the file “/etc/init.d/mine” exists. Below is the command that you can type to make your service run at boot time.

# update-rc.d mine defaults

This will make sure that when your system reaches runlevel 2, 3, 4 or 5 that the “mine” service will start up and that in runlevel 0, 1 or 6 it will be stopped. So you’re done with your “mine” and you would like to stop them from starting up when you reboot? Use the command to remove it from starting up at boot time:

# update-rc.d mine remove

To start up in runlevels 2 or 3, you could run the following command:

# update-rc.d mine start 45 stop 01236

Mine will start up when your system reaches runlevels 4 or 5, but stop at 0, 1, 2, 3 or 6.

rcconf ( apt-get install rcconf ) tool is a graphical interface that can be used from the shell to configure your init scripts.

Disable USB Devices

The modprobe can be configured to not load the USB storage driver upon demand. This will prevent the modprobe program from loading the usb-storage module, but will not prevent root from using the insmod program to load the module manually.

Enter the following command:

# echo ‘install usb-storage : ‘ >> /etc/modprobe.conf

You can also remove USB Storage driver, enter:

# mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root

BIOS option

You can also disable USB from system BIOS configuration option. Make sure BIOS is password protected.

Grub option

You can get rid of all USB devices by disabling kernel support for USB via GRUB. Open grub.conf or menu.lst (Debian/Ubuntu Linux) and append “nousb” to the kernel line as follows:

kernel /vmlinuz-2.6.18-128.1.1.el5 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 nousb

Save and close the file, just reboot the system. You are done 😉

Disable Wireless Networking (Wi-Fi)

Use the following commands to list installed devices (list PCI devices):

# lspci

Go to /lib/modules/$(uname -r)/kernel/drivers/net/wireless and remove wireless driver.

# mkdir -p /root/backup/
# mv /lib/modules/$(uname -r)/kernel/drivers/net/wireless /root/backup/
# reboot

Above will remove the kernel drivers that provide support for wireless devices and it will prevent users from activating the devices.

Deactivate Wireless Interfaces (Remove Config Files)

You can also deactivate the wireless interfaces. Open terminal and type the following command to list the wireless interface:

# ifconfig

Turn off wireless interfaces after identifying the same with ifdown command:

# ifdown interface

Finally, remove wireless configuration file /etc/sysconfig/network-scripts/ifcfg-interfaceName.

# mv /etc/sysconfig/network-scripts/ifcfg-wlan0 /root/backup

OR just remove config file, enter:

# rm /etc/sysconfig/network-scripts/ifcfg-wlan0

Above will make sure wlan0 will not return after the next reboot.

How Do I Restore Wi-Fi Again?

Just copy back all files and reboot the system:

# mv /root/backup/ifcfg-wlan0 /etc/sysconfig/network-scripts/ifcfg-wlan0
# mv /root/backup/wireless /lib/modules/$(uname -r)/kernel/drivers/net/wireless
# reboot

For Debian/Ubuntu Systems, you need to edit /etc/network/interfaces file to remove wireless configuration and you need to remove /lib/modules/$(uname -r)/kernel/drivers/net/wireless directory.

Speech Recognition in Windows Vista?

You ever wanted to talk to your computer, like “Music On!”

In Windows Vista, you can do this 😉

Click the Start menu >> Control Panel >> Speech Recognition. >> Start Speech Recognition >> Now tell your computer what to do!

Be sure to take the Speech Tutorial first to get your computer to get the feel for your voice.

All versions of Windows Vista have one of the most powerful speech recognition systems available for consumers.

Once you finished, you should have your Recognition Panel at the top of your screen.

The program will interpret “everything” you say!!

Just say “Start” and the start menu opens on up. The cursor sits there in the search box, as it always does with the start menu is opened. Now you can speak what you want to search for.

If you want to launch a program , you can skip the start menu entirely by saying “Start [app name].”


What is DSL?

Damn Small Linux is a very versatile 50MB mini desktop oriented Linux distribution. It is small enough and smart enough to do the following things:

Boot from a business card CD as a live linux distribution (LiveCD)
Boot from a USB pen drive
Boot from within a host operating system (can run inside Windows)
Run fully in RAM with as little as 128MB
DSL is highly extendable without the need to customize

DSL was originally developed as an experiment to see how many usable desktop applications can fit inside a 50MB live CD. It was at first just a personal toy. But over time, it grew into a fully automated remote and local application installation system and a very versatile backup/restore system which may be used with any writable media including a hard drive, a floppy drive, or a USB device.

DSL has a nearly complete desktop, with limited number of command line tools. Damn Small also has the ability to act as an SSH/FTP/HTTPD server right off of a live CD.

XMMS, FTP client, web browsers, spreadsheet, Sylpheed email, spellcheck, a word-processor, three editors, graphics editing and viewing, Xpdf, file manager, Naim, VNCviwer, Rdesktop, SSH server and client, DHCP client, PPP, PPPoE , a web server, calculator, generic and GhostScript printer support, NFS, Fluxbox and JWM window managers, games, system monitoring apps, a host of command line tools, USB support, and pcmcia support, wireless support.