Change ‘md5′ to ‘trust’.
It should look like :
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
$path_to_upload_script = '/phpmotion/cgi-bin/uu_upload.pl'; $path_to_ini_status_script = '/phpmotion/cgi-bin/uu_ini_status.pl';
#----- if phpmotion is installed in a sub directory edit the RewriteBase as follows -----# # EXAMPLE => RewriteBase /phpmotion # EXAMPLE => RewriteBase /phpmotion RewriteBase /
For trouble sooting common errors in phpmotion,
http://wiki.phpmotion.com/CommonInstallationErrors
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=34.123.111.21
NETMASK=255.255.255.0
ONBOOT=yes
[root@server ~]#
d /etc/sysconfig/network-scripts/
– this is where the network settings are being searched for [root@server network-scripts]# vi ifcfg-eth0-range0
– this will be the file where we define the new IP class(considering that our main interface is called eth0)IPADDR_START=192.168.0.1
IPADDR_END=
192.168.0.
.28
CLONENUM_START=1
NETMASK=255.255.255.240
# yum install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd
# mysqladmin -u root password NEWPASSWORD
Create cacti MySQL database# mysql -u root -p -e 'create database cacti'
# mysql -u root -p
mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'zYn95ph43zYtq'; mysql> FLUSH privileges; mysql> \q
# yum install net-snmp-utils php-snmp net-snmp-libs
# vi /etc/snmp/snmpd.conf
com2sec local localhost public group MyRWGroup v1 local group MyRWGroup v2c local group MyRWGroup usm local view all included .1 80 access MyRWGroup "" any noauth exact all all none syslocation Unknown (edit /etc/snmp/snmpd.conf) syscontact RootSave and close the file. Turn on snmpd service:(configure /etc/snmp/snmp.local.conf) pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
# /etc/init.d/snmpd start
# chkconfig snmpd on
# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.10.10.29.68 = INTEGER: 2 IP-MIB::ipAdEntIfIndex.67.yy.zz.eee = INTEGER: 3 IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
# yum install cacti
To install
EPEL repohttp://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/
# rpm -ql cacti | grep cacti.sql
/usr/share/doc/cacti-0.8.7d/cacti.sqlType the following command to install cacti tables (you need to type the cacti user password):
# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.7d/cacti.sql
# vi /etc/cacti/db.php
/* make sure these values refect your actual database/host/user/password */ $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "zYn95ph43zYtq"; $database_port = "3306";Save and close the file.
# vi /etc/httpd/conf.d/cacti.conf
# # Cacti: An rrd based graphing tool # Alias /cacti /usr/share/cactiAnother option is create /usr/share/cacti/.htaccess file and password protect the directory. Finally, restart httpd:Order Deny,Allow Deny from all Allow from 10.0.0.0/8
# service httpd restart
# vi /etc/cron.d/cacti
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1Save and close the file.
http://your.example.com/cacti/
http://your.server.ip.address/cacti/
.
Now, in almost all cases, Apache should start properly. If it doesn't,
you may just be completely out of available semaphores. You may want to
increase your available semaphores, and you'll need to tickle your
kernel to do so. Add this to /etc/sysctl.conf:
kernel.msgmni = 1024 kernel.sem = 250 256000 32 1024
And then runsysctl -p
to pick up the new changes.
================Restart ftp and this should fix the issue.
AllowRetrieveRestart on
AllowOverwrite on
AllowStoreRestart on
================
unsigned long avenrun[3]; static inline void calc_load(unsigned long ticks) { unsigned long active_tasks; /* fixed-point */ static int count = LOAD_FREQ; count -= ticks; if (count < 0) { count += LOAD_FREQ; active_tasks = count_active_tasks(); CALC_LOAD(avenrun[0], EXP_1, active_tasks); CALC_LOAD(avenrun[1], EXP_5, active_tasks); CALC_LOAD(avenrun[2], EXP_15, active_tasks); } }
define FSHIFT 11 /* nr of bits of precision */ define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */ define LOAD_FREQ (5*HZ) /* 5 sec intervals */ define EXP_1 1884 /* 1/exp(5sec/1min) as fixed-point */ define EXP_5 2014 /* 1/exp(5sec/5min) */ define EXP_15 2037 /* 1/exp(5sec/15min) */ define CALC_LOAD(load,exp,n) \ load *= exp; \ load += n*(FIXED_1-exp); \ load >>= FSHIFT;
count
being equal to the desired block size: dd if=/dev/zero of=/swapfile bs=1024 count=65536
mkswap /swapfile
swapon /swapfile
/etc/fstab
to include the following entry: /swapfile swap swap defaults 0 0
The next time the system boots, it enables the new swap file. cat /proc/swaps
or free
. [Sat Oct 10 00:11:01 2008] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run? semget: No space left on device