APF “Unable to load iptables module” Error

Upon upgrading the Linux Kernel version (usually in CentOS 4.6 – 5) you may get the following error when trying to start APF: Unable to load iptables module (ipt_state), aborting. To fix this, open /etc/apf/internals/functions.apf and locate the following lines: ml ipt_state 1 ml ipt_multiport 1 And replace them with: ml xt_state ml xt_multiport Then… Continue reading APF “Unable to load iptables module” Error

Yum ‘rpmdb’ Error

To our surprise a bad yum release hosed several of our systems.  While the errors varied, the common link between them was the frightful message: rpmdb: PANIC: fatal region error detected; run recovery This problem can usually be corrected by running the following commands: cd /var/lib/rpm rm -f __db* rpm –rebuilddb -vv

CentOS Yum GCC-Dummy Error

The following error has been reported while doing yum updates on CentOS 4.x systems: –> Processing Dependency: glibc-common = 2.3.4-2.25 for package: glibc-dummy-centos-4 –> Finished Dependency Resolution Error: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc-dummy-centos-4 To fix this error, the the following commands: yum remove glibc-dummy-centos-4 yum install gcc & yum install… Continue reading CentOS Yum GCC-Dummy Error

MySQL Cheat Sheet

SSH repair and optimize all MySQL databases: # /usr/bin/mysqlcheck –repair –all-databases –password=xxxxxx # /usr/bin/mysqlcheck –optimize –all-databases –password=xxxxxx Upgrade/Downgrade to MySQL 4.x: backup database: # cd /root # /usr/bin/mysqldump –create-options –compatible=mysql40 –all-databases –force –user=root –password=xxxx > backup.sql

MySQL Optimization (my.cnf)

# vi /etc/my.cnf #opteron 852 4GB RAM [mysqld] safe-show-database max_connections = 500 key_buffer = 150M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 1M table_cache = 1024 thread_cache_size = 100 wait_timeout = 300 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 1M query_cache_size = 32M query_cache_type = 1 skip-innodb… Continue reading MySQL Optimization (my.cnf)

Optimize sysctl.conf

# vi /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Disables packet forwarding net.ipv4.ip_forward=0 # Disables IP source routing net.ipv4.conf.all.accept_source_route = 0 net.ipv4.conf.lo.accept_source_route = 0 net.ipv4.conf.eth0.accept_source_route = 0 net.ipv4.conf.default.accept_source_route = 0 # Enable… Continue reading Optimize sysctl.conf

Easy apache error on a VPS – !! Warning (VZ): You are only only guaranteed xx Megabytes of ram! xxx Megabytes is recommended. !!

Easy::Apache v3.2.0 Build 4310 !! Warning (VZ): You are only only guaranteed 224 Megabytes of ram! 512 Megabytes is recommended. !! If you get above memory error on VPS while running easy apache,  You can fix by using following steps. Login in to main VPS and edit the variable OOMGUARPAGES accordingly. OR OpenVZ Users :… Continue reading Easy apache error on a VPS – !! Warning (VZ): You are only only guaranteed xx Megabytes of ram! xxx Megabytes is recommended. !!

Published
Categorized as Virtuozzo

How to install Zend Optimizer with the (IonCube) Loader? (RHEL, Plesk)

How to install Zend Optimizer with the (IonCube) Loader? wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz tar zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz cd ZendOptimizer-3.3.3-linux-glibc23-i386 php -v (Check php version note it down) php -i | grep php.ini (note down the php.ini path) httpd -v (Check version) ./install After the above it will prompt for various path of apache, php php -v (if it… Continue reading How to install Zend Optimizer with the (IonCube) Loader? (RHEL, Plesk)

Published
Categorized as Plesk