Install Asterisk/PBX in Centos servers using yum, asterisk installation yum, yum install asterisk, asterisk easy installation, Easy asterisk

Certain packages are needed in order to install astersik properly. please run the below commands for installing the below packages uing yum.
rpm –import
http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 (Centos4)
rpm –import
http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 (Centos5)
yum -y install screen kernel-devel
yum -y install kernel-source bison openssl-devel mysql
yum -y install mysql-server mysql-devel gcc libtermcap
yum -y install libtermcap-devel newtnewt-devel zlib-devel
yum -y install ncurses-devel gcc-c++ compat-gcc-32
yum -y install compat-gcc-32-c++

Now create and setup the yum repositories for asterisk installation, I have found it to be an easy method of asterisk installtion using …

Read On »

Basic mysql commands and mysql basics

mysql -u root db_name < file.sql
Dump a Database (with special characters):
mysqldump -Q –add-drop-table db_name > file.sql
Dump a Database, 4.0 compatible:
mysqldump –compatible=mysql40 –add-drop-table –quote-name db_name > file.sql
Dump Multiple Databases:
mysqldump -Q –add-drop-table –databases db_name1 db_name2 > file.sql
Restore Multiple Databases (must be done as root):
mysql -u root < file.sql
Log into MySQL prompt as the user (or root):
mysql -u username -p
Show Databases: (will only show databases the user has access to. Root has all.)
show databases;
Drop a …

Read On »

Cpanel Errors, WHM errors

error 1)
cpanel is showing diskusage full
solution
#find / -user username -ls  >> used  to find the files that are owned by that user
#find / -user uid   -ls     >> used to find the files that are owned by the user by looking the uid. The uid can  found from/etc/passwd
error 2)
whm is not showing correct disk space
before running this Go to cPanel Update Config, and change config to auto update to last STABLE release and  /scripts/upcp –force
/scripts/fixquotas
/usr/local/cpanel/cpkeyclt –sync

Read On »

Useful Cpanel commands

On a RedHat,Centos, fedora CPanel servers, here are the useful services:
bandmin
chkservd
cpanel
crond
exim
httpd
mysql
named
proftpd
CRON INFO:
Root crontab:
crontab -e
To edit a users cron jobs
crontab -u username -e
Replace username with the actual username of the client you want to edit.
/scripts/adddns Add a Dns Entry
/scripts/addfpmail Install Frontpage Mail Exts
/scripts/addservlets Add JavaServlets to an account (jsp plugin required)
/scripts/adduser Add a User
/scripts/admin Run WHM Lite
/scripts/apachelimits Add Rlimits (cpu and mem limits) to apache.
/scripts/dnstransfer Resync with a master DNS Server
/scripts/editquota Edit A User’s Quota
/scripts/finddev Search For Trojans in /dev
/scripts/findtrojans …

Read On »

 Page 1 of 3  1  2  3 »