It is currently Tue May 11, 2021 6:29 am

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

Перенос рабочей системы с HDD на RAID 1 (FreeBSD)

Перенос рабочей системы с HDD на RAID 1

Задача:
Перенести рабочую систему с FreeBSD 7.0 (винт 80 Гбайт) на RAID 1(3ware 320 Гбайт)

Имеем в наличии:
1. 3ware Escalade ATA RAID Controller 8006-2LP с 2-мя SATA винтами по 320 Гбайт
2. 80 Гбайт винчестер (работающая FreeBSD 7.0)

1. Установка 3ware Escalade SATA RAID Controller 8006-2LP с 2мя SATA винчестерами по 320 Гбайт

Грузимся в 3ware Configuration Screen
1.1 Жмем Alt-3
1.2 Выбираем HDD для рейда ...


Eaccelerator guide/tips

Homepage: http://eaccelerator.net/

Choose the preferable version and install it:
Code: Select all
cd /usr/local/src
    wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2
    bzip2 -d eaccelerator-0.9.5.2.tar.bz2
    tar xvf eaccelerator-0.9.5.2.tar
    cd eaccelerator-0.9.5.2

Check if all needed modules presented in the system:

    * apache >= 1.3,
    * mod_php >= 4.1,
    * autoconf,
    * automake,
    * libtool,
    * m4

Sometimes php-devel package needed, because phpize function is used to compile php:
Code: Select all
yum install php-devel
whereis phpize


Commonly it`s in /usr/bin/phpize.
In this situation we should do ...
Read more : Eaccelerator guide/tips | Views : 1511 | Replies : 0 | Forum : Server Side Actions


Install Zend Optimizer on cPanel server

It is very easy to install zend optimizer on a cPanel based web servers, the steps are as below:

Login to your web server as root

Execute the script:
Code: Select all
/scripts/installzendopt
Read more : Install Zend Optimizer on cPanel server | Views : 4595 | Replies : 1 | Forum : Server Side Actions


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 : 2107 | Replies : 0 | Forum : Server Side Actions


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 : 11206 | Replies : 4 | Forum : Server Side Actions


ImageMagick install with yum

First of all you may ask what is ImageMagick? It is a software suite for image manipulation and display, ImageMagick supports hundreds of image formats on a dedicated server on which it is installed.

Following are the commands to install ImageMagick using yum
root# yum install glib
root# yum install glib2
root# yum install libpng
root# yum install libjpeg
root# yum install libtiff
root# yum install ghostscript
root# yum install freetype
root# yum install ImageMagick ...
Read more : ImageMagick install with yum | Views : 1706 | Replies : 0 | Forum : Linux specific


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 : 2410 | Replies : 0 | Forum : Server Side Actions


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 : 1698 | Replies : 0 | Forum : Server Side Actions


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 : 3421 | Replies : 0 | Forum : Server Side Actions


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 : 1782 | Replies : 0 | Forum : Server Side Actions


 

Login  •  Register


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron