-bash: httpd: command not found

ARUN Post in Uncategorized
0

root@vps [~]# httpd -l
-bash: httpd: command not found
root@vps [~]#

Solution :

root@vps1 [/usr/bin]# ln -s /usr/local/apache/bin/httpd
root@vps1 [/usr/bin]# cd

/etc/cron.weekly/chkrootkit.sh: line 3: mail: command not found

ARUN Post in ERROR
0

/etc/cron.weekly/chkrootkit.sh:

/etc/cron.weekly/chkrootkit.sh: line 3: mail: command not found
/etc/cron.weekly/rkhunter.sh:

/etc/cron.weekly/rkhunter.sh: line 2: rkhunter: command not found

Solution :

yum install mailx.x86_64

/usr/bin/perl: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory

ARUN Post in ERROR, WHM BACKEND
0

Getting the below error in apache error logs and the website giving a Internal server error 500

Solution :

Check  RLimitMEM is enabled. If so disable and restart apache.

vi /usr/local/apache/conf/httpd.conf

 

test

ARUN Post in LOG ANALYSIS
0

test

Backend path where the plesk emails are stored

ARUN Post in MAIL, PLESK BACKEND, QMAIL
0

Plesk mail directory path :

/var/qmail/mailnames/DOMAIN.com/USERNAME

When we create a folder from within the webmail its created at the backend on

/var/qmail/mailnames/DOMAIN.com/USERNAME/Maildir/.FOLDER_NAME

ITS A HIDDEN FILE

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