How to configure Litespeed to behave as suphp.

ARUN Post in Lite Speed, WHM BACKEND, WHM FRONTEND
0

I have enabled suphp on our server with litespeed installed. But I can still access 777 file permission. How to fix this

Solution :

Login to litespeed admin panel   >> conf >> server >> security

Change below values to :

Script Restricted Permission Mask                    022

cript Restricted Directory Permission Mask       022

How to change the litespeed admin password

ARUN Post in LITESPEED
0

/usr/local/lsws/admin/misc/admpass.sh

There was an error sending your message: Failed to set sender: [email protected] [SMTP: Failed to write to socket: not connected (code: -1, response: )]

ARUN Post in MAIL, MAIL ERROR
0

Most probably the problem is with firewall

Try stopping firewall and see if that works.

If so problem is with

SMTP_BLOCK = “1″    It should be  ”0″ for  emails to work.

How to run backup on plesk 10+ servers

ARUN Post in BACKUP, PLESK BACKEND
0

cd /usr/local/psa/bin/

./pleskbackup –help

TAKE BACKUP SERVER WIDE :

./pleskbackup server -vv

TAKE BACKUP DOMAIN WISE :

./pleskbackup domain-name

Disable mod_security on a domain in cpanel server.

ARUN Post in MOD_SECURITY, WHM BACKEND
0

vi /usr/local/apache/conf/modsec2.user.conf

On top of that file insert the below rule

SecRule SERVER_NAME “domain.com” phase:1,nolog,allow,ctl:ruleEngine=off

Another FFMPG installation that worked for me !!!!!

ARUN Post in INSTALLATION
0

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-re

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm    —-> 64 bit

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm              —–> 32 bit

yum install ffmpeg ffmpeg-devel

Depending on your arch use

==================================================
yum install libogg.i386 libogg-devel.i386

or

yum install libogg.x86_64 libogg-devel.x86_64

==================================================
yum install libvorbis.i386 libvorbis-devel.i386

OR

yum install libvorbis.x86_64 libvorbis-devel.x86_64
===================================================
Install ffmpeg-php
cd /usr/src

wget http://superb-sea2.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
tar xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
phpize
./configure --prefix=/usr --enable-shared
make
make install
Add extension=ffmpeg.so  to php.ini if REQUIRED

Cpanel script to run webalizer manually.

ARUN Post in STATS
0

/scripts/runweblogs USERNAME

Command sed

ARUN Post in LINUX COMMANDS
0

How to replace a string using sed command.

cd /folder/

sed -i ‘s/string_to_be_replaced/new string/g’ *               —> Without SPACES in between.

cd /var/named/

sed -i ‘s/86400/300/g’ *.db

How to transfer addon domain email accounts to a main domain in cpanel.

ARUN Post in WHM BACKEND
0

Go to  cd /home/USERNAME/etc/domain.com/

rsync all the files under that folder to new account.

Copy all the mails to new account.

cp /home/USERNAME/mail/domain.com/ /home/NEW-USER/mail/

 

Restarting network in direct admin disabled all dedicated IPS

ARUN Post in DIRECT ADMIN, IP ADDRESS
0

After network is restarted in direct admin servers no dedicated IPs are visible.

Solution :  /etc/init.d/startips

Something similar to /etc/init.d/ipaliases restart