It is currently Fri May 17, 2024 6:03 am

News News of Server Side Actions

Site map of Server Side Actions » Forum : Server Side Actions

Here you can find tutorials and notes for server-side maintenance/configuration
Forum rules
All information is given AS IS

Basical log file locations

Cheatsheet
From Wiki.bicketyt.com
Contents


* 1 Log Files /var/log
* 2 Log files /var/cpanel/logs
* 3 Log files /usr/local/cpanel/logs
* 4 Mysql
* 5 Apache
* 6 Exim
* 7 Security


Log Files /var/log

* maillog pop3 and imap login,logout and failure notices, also reports some spamd stuff
* exim_mainlog log for incoming and outgoing messages. corresponds with email headers.
* exim_rejectlog stuff rejected because of the RBL's
* exim_paniclog info about exim ...
Read more : Basical log file locations | Views : 2585 | Replies : 0


Basical Exim MTA commands

exim -qff => flush exim queue
exim -M email-id => Force delivery of one message
exim -qf => Force another queue run
exim -qff => Force another queue run and attempt to flush the frozen message
exim -Mvl messageID => View the log for the message
exim -Mvb messageID => View the body of the message
exim -Mvh messageID => View the header of the message
exim -Mrm messageID => Remove message without sending any ...
Read more : Basical Exim MTA commands | Views : 11926 | Replies : 4


Log files on a cPanel server

Log files on a cPanel server

Log file is a file which stores all the information of all files that are accessed, and they also have errors which help a system administrator to troubleshoot issues and fixing them to make the web server stable. Few logs can be found below:
Apache web server
/usr/local/apache/logs/access_log
/usr/local/apache/logs/error_log
/usr/local/apache/domlogs/domain.com
MySQL database server
/var/lib/mysql/server.hostname.com.err
Exim mail server
/var/log/exim_mainlog
/var/log/exim_paniclog
/var/log/exim_rejectlog
Courier-IMAP/Dovecot-IMAP
/var/log/maillog
cPanel control panel
/usr/local/cpanel/logs/error_log
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/license_log
/usr/local/cpanel/logs/login_log ...
Read more : Log files on a cPanel server | Views : 2910 | Replies : 0


Find an inode of a file

Find an inode of a file

In computing, an inode is a data structure on a traditional Unix-style file system such as UFS. An inode stores basic information about a regular file, directory, or other file system object.
Now in linux you want to check the inode of a file, so the command to find inode of a file is:
Code: Select all
# ls -li test.php
426137 -rw-r–r– 1 root root 0 May 05 03:14 test.php

Here, ...
Read more : Find an inode of a file | Views : 2167 | Replies : 0


Rootkit checks

Install chkrootkit

chkrootkit is a tool to locally check for signs of a rootkit. It contains:

chkrootkit: shell script that checks system binaries for rootkit modification.
ifpromisc.c: checks if the interface is in promiscuous mode.
chklastlog.c: checks for lastlog deletions.
chkwtmp.c: checks for wtmp deletions.
check_wtmpx.c: checks for wtmpx deletions. (Solaris only)
chkproc.c: checks for signs of LKM trojans.
chkdirs.c: checks for signs of LKM trojans.
strings.c: quick and dirty strings replacement.
chkutmp.c: checks for ...
Read more : Rootkit checks | Views : 3893 | Replies : 0


Downgrade MySQL 5 to MySQL 4.1 on cPanel server

Downgrade MySQL 5 to MySQL 4.1 on cPanel dedicated server

For some reason (mainly, due to different syntax of GRANT) you need to downgrade MySQL 5 to MySQL 4.1 to achieve this you will have to do the following:
To check the which all mysql rpm’s are available use the command:
Code: Select all
rpm -qa | grep -i mysql-

First of all take a backup of /var/lib/mysql, and also ask the other users to keep a backup ...
Read more : Downgrade MySQL 5 to MySQL 4.1 on cPanel server | Views : 2347 | Replies : 0


RvSiteBuilder install/update

RVSiteBuilder - Installation for cPanel server

1. If your server has RVSkin installed, please update RVSkin to v6.75 up. (Skip this step if you don't have it).
Code: Select all
perl /root/rvadmin/auto_rvskin.pl

2. After get the license confirmation, SSH to your cPanel server as root, download the installer using the command below:
Code: Select all
cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi
rm -f rvsitebuilderinstaller.tar

3. Open root WHM, at the bottom left menu under ...
Read more : RvSiteBuilder install/update | Views : 9816 | Replies : 6


OpenLDAP and php in easyapache - Centos 5

To install Openldap support in easyapache:

First we need to install the openldap rpms:

WHM>Software>Install RPM
- installed openldap
- installed openldap-servers
- installed openldap-devel - if it is not installed, you'll get "Cannot find ldap.h" error while recompiling - this also needs cyrus-sasl-devel installed
(If cyrus-sasl-devel won't install - find your existing version and download it from the centos mirror
- installed openldap-clients - for working from command line

if you are using php5, ...
Read more : OpenLDAP and php in easyapache - Centos 5 | Views : 3557 | Replies : 0


cPanel SPF and Domain Keys install

You can install domain keys on a cPanel server easily for a single domain, in this tutorial I am using cPanel 11.
Run the following command shown below:
Code: Select all
/usr/local/cpanel/bin/domain_keys_installer username

(i.e.: /usr/local/cpanel/bin/domain_keys_installer afrizal)

It will automatically installing Domain Key for the domain (maindomain.net) successfully.
Now you can verify it from the db record of the domain. The following new entry will be added in the db record.
Code: Select all
vi /var/named/maindomain.net.db

Now run commands below:
rndc reload ...
Read more : cPanel SPF and Domain Keys install | Views : 5013 | Replies : 1


Exim error (...local_delivery...never_users list)

If you get "User 0 set for local_delivery transport is on the never_users list" error on exim_paniclog, you can try to fix it.
The issue appears to be with some of the libraries the following commands should fix it:
Code: Select all
ln -s libdb2.so.3 libdb.so.3
/scripts/eximup --force
/etc/rc.d/init.d/exim restart
Read more : Exim error (...local_delivery...never_users list) | Views : 9792 | Replies : 1


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron