Command to change the date on linux server

ARUN Post in LINUX COMMANDS
0

[   date –set=”10 Jan 2012 21:08:50″    ]

Moodle admin login page gives blank page after logged in.

ARUN Post in ERROR, INSTALLATION
0
Moodle admin login page gives blank page after logged in.
Solution :
open moodle config file
vi config.php
and insert the below at the end of file
=============================================================
ini_set ('error_reporting', E_ALL);
ini_set ('display_errors', 1);
ini_set ('display_startup_errors', 1);
ini_set ('log_errors', 1);
ini_set ('error_log', 'syslog');

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

Access site and you can see the error. Comment out the lines giving errors and see
To commnet out you can use
/**  PHP CODE */

How to install uploadprogress

ARUN Post in INSTALLATION
0

pecl install uploadprogress

Create a su user disable root login and secure a server.

ARUN Post in SSH
0

groupadd su_user

useradd -g su_user su_user

passwd su_user

cp -ar /etc/group /etc/group.bak7

vi /etc/group
Search for wheel, then append “,su_user”

EG :     “root,su_user”

vi /etc/ssh/sshd_config

PermitRootLogin  no

Scroll to the bottom of file

AllowUsers   su_user

You need to install the LWP perl module (libwww-perl) and then install csf

ARUN Post in FIREWALL, INSTALLATION
0

yum install perl-libwww-perl

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

Script Restricted Directory Permission Mask       022

Restricted Permission Mask  0111

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