How to clone a harddisk

ARUN Post in DISK RELATED
0

dd_rescue /dev/mapper/SysVolGroup-LogVolRoot /root/diskimage.img

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (585) of file “/home/username/public_html/index.php”

ARUN Post in SSL, WHM BACKEND
0

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (585) of file “/home/username/public_html/index.php”

Solution :

First check permission & ownership of files and folders.

Secondly.  Open httpd.conf

Go to the entry where 443 (SSL) details for the domain is given.

If its nobody nobody try changing to :

suPHP_UserGroup USERNAME USERNAME

FTP command to transfer folders

ARUN Post in FTP
0

Install ncftp and use the below command to download the folders using FTP

To install ncftp we need the epel repo

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm    —> 32 bit

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm  —> 64 bit

yum list *NCFTP*

yum install ncftp.i386

ncftpget -R -v -u “user@domain.comftp.domain.com wp-content ./

Forcefully redirect webmail to https

ARUN Post in HTACCESS, MAIL, Webmail
0

How to forcefully redirect squirrelmail to https

Go to installation directory

cd /var/www/html/squirrelmail-1.4.22/

vi .htaccess

 

DirectoryIndex index.php

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{SERVER_PORT}      !^443$
        RewriteRule ^(.*)$      https://%{SERVER_NAME}/squirrelmail/src/login.php [L,R=303]
</IfModule>

How to create a proxy server

ARUN Post in Proxy
0

Install squid

yum install squid

/scripts/easyapache

Enable apache mudule    “Proxy”

vi /etc/squid/squid.conf

 

Tweak exim

ARUN Post in OPTIMIZATION
0

log_selector = +arguments +subject

timeout_frozen_after = 3d

ignore_bounce_errors_after = 1d

split_spool_directory = yes

smtp_accept_max = 250

queue_run_max = 10

remote_max_parallel = 20

deliver_queue_load_max = 10

—————–not tested————–

ignore_bounce_errors_after = 12h
timeout_frozen_after = 1d
auto_thaw = 2d

How to enable ping in apf

ARUN Post in FIREWALL
0

Insert the following in apf.conf

IG_ICMP_TYPES=”8″

How to install and configure phpmyadmin for remote database access

ARUN Post in MYSQL
0

Download and install the phpmyadmin as :

cd /usr/local/apache/htdocs

wget  http://iweb.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.4/phpMyAdmin-3.4.4-english.tar.gz

tar -xzvf phpMyAdmin-3.4.4-english.tar.gz

chown nobody:nobody phpMyAdmin-3.4.4-english -R

cd phpMyAdmin-3.4.4-english

In browser open Ip/phpMyAdmin-3.4.4-english/setup

Give the required fields in the first page. Save and quit.

 

 

 

 

 

 

 

A message with the following attributes was not delivered because it contains an object which cannot be checked by antivirus. Relaying such messages is blocked by administrator.

ARUN Post in FIREWALL, PLESK BACKEND, PLESK FRONTEND
0

Getting the below bounce message while trying to send emails to plesk server with drweb enabled.

================

A message with the following attributes was not delivered because it contains an object which cannot be checked by antivirus.
Relaying such messages is blocked by administrator.

================

Or

==================================

Getting the below message while trying to stop drweb from within plesk >> service management

Unable to make action: Unable to manage service by dr mgr: Empty error message from utility. (‘–stop’, ‘drweb’)

====================================

Solution :

/etc/init.d/drwebd restart

If that doesnot work kill all drweb process.

pgrep drwebd | xargs kill -9
Then check emails and if that work try enabling dr web again using
/etc/init.d/drwebd restart

 

How to install telnet

ARUN Post in Uncategorized
0
yum install telnet
yum install telnet-server  (If necessary)
vi /etc/xinetd.d/telnet
disable = no
chkconfig telnet on
chkconfig xinetd on
service xinetd restart

Install and configure NFS server

ARUN Post in BACKUP
0

yum install nfs-utils nfs4-acl-tools portmap

How to enable apachectl on server

ARUN Post in HTTPD
0

PLESK :

Go to httpd.conf

vi /etc/httpd/conf/httpd.conf

ExtendedStatus On

<Location /server-status>
    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
</Location>

It will show IP/server-status

How to increase the swap space in linux server

ARUN Post in DISK RELATED
0

To view the current swap partition and the swap usage :

swapon -s

dd if=/dev/zero of=/newswap bs=1M count=512

mkswap /newswap
swapon /newswap
swapon -s

How does ip/~username work in server

ARUN Post in HTTPD, WHM BACKEND, WHM FRONTEND
0

How does ip/~username point to public_html instead of /home/username in server.

Solution : Its done by “UserDir”

httpd.conf might have an entry as below :

=================

root@server [~]# grep UserDir /usr/local/apache/conf/httpd.conf
UserDir public_html
root@server [~]#
=========================
Thats what is specifying the document root.
By default "UserDir" is enabled.
To disable we can use :
UserDir disabled user4 user5 user6
http://httpd.apache.org/docs/2.0/mod/mod_userdir.html

scp and rsync timestamp

ARUN Post in GENERAL RULES, RSYNC
0

When a file is scp to a remote server, the time stamp of the file in remote server will be changed and hence the file will be created with new date and time.

When we rsync a file or a folder, time stamp will also be copied to new server.

ie. when a file created on jan 1st is moved to a remote server using rsync, then the remote server will show Jan 1st as the file creation date and not the new date.