How can I force fsck on next boot

You can force an automatic full check by changing the check interval using tune2fs (-c and/or -i).

-c max-mount-counts

Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck(8) and the kernel.

-i interval-between-checks[d|m|w]

Adjust the maximal time between two filesystem checks. No postfix or d result in days, m in months, and w in weeks. A value of zero will disable the time-dependent checking.

It is strongly recommended that either -c (mount-count-dependent) or -i (time-dependent) checking be enabled to force periodic full e2fsck(8) checking of the filesystem.

# tune2fs -c 1 /dev/hda2

The above command would tell the init scripts to run fsck on hda2 at every boot.

# tune2fs -i 1d /dev/hda2

The above command would tell the init scripts to run fsck on hda2 after 1 day.

If you only want to run fsck on the next boot, please execute the following as the root user.

# cd /
# touch forcefsck

This will only run the file system check on the next reboot. By touching the file “forcefsck” in the / directory, it will force the system to perform a full file system check.

The file “forcefsck” will be deleted automatically after fsck is finished.

How do I install flash plugin for Firefox in RHEL

The easiest way to download and install the flash plugins to your Red Hat Enterprise Linux system would be to run the following command.

Red Hat Enterprise Linux 5

yum install flash-plugin

Ports need to be opened for Plesk services

Generally it depends on what services are running on the server. All the default ports which can be used by Plesk/services are listed below:

#20 ftp-data
#21 ftp
#22 ssh
#25 smtp
#53 dns (TCP and UDP)
#80 http (web server and Plesk updater)
#106 poppassd (for localhost only)
#110 pop3
#113 auth
#143 imap
#443 https
#465 smtps
#587 mail message submission
#990 ftps
#993 imaps
#995 pop3s
#3306 mysql
#5224 (outgoing connections only) plesk-license-update
#5432 postgres
#8443 plesk-https
#8880 plesk-http
#9080 tomcat

If required you can always reset your default firewall settings via the AccountCenter.

Reference: http://parallels.com/

Changing Spamassassin to check emails larger than 250KB

Spamassassin by default will not check emails larger than 250 KB. This is limited to prevent spamassassin from generating a large load on the server.

If you would like to change this setting to a higher value you can edit the following file:

vi /usr/local/psa/bin/psa-spamc

and change this line to a higher value:

MAX_SIZE=256000 # max letter size to filter

Spamassassin will use the new value immediately with no need to restart any services.

Reference: http://parallels.com

Restarting services in Plesk

If a service, such as Apache, has stopped you may need to restart the service.

The following guide shows you how to start/stop/restart system services from within Plesk.

From Plesk Services Management

1. Login to Plesk.
2. Click on Server.
3. Click on Service Management.

Now you can start|stop|restart the service of your choice.

From Virtuozzo System Services

1. Login to Plesk.
2. Click on Virtuozzo.
3. Click on System Services.
4. Now you can start|restart|stop the service of your choice. You can also enable the Autostart feature.

« Prev - Next »