Category: Uncategorized
-
Kloxo/Lxadmin giving Zend Error
ERROR: [bash] [root@server ~]# /etc/init.d/kloxo restart Stopping kloxo: Waiting for the process to die….. 2733 Waiting for the process to die….. Stopped kloxo Starting kloxo: Failed loading /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so: /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied Zend [/bash] Solution: Turn off the SeLinux. [bash] [root@server ~]# setenforce 0 [/bash] Also set it “selinux=disabled” in…
-
Detailed inode usage of current directory
Below command will display the detailed inode usage of current directory [bash] root@server1 [~]# echo "Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n" Inode…
-
Error: no secure shell available plesk
In Plesk 11 you can run the below command to fix it [bash] [root@server ~]# /usr/local/psa/bootstrapper/pp11.0.9-bootstrapper/bootstrapper.sh repair Changing shell for popuser. Shell not changed. Changing shell for mhandlers-user. Shell not changed. ===> Preparing upgrade Stopping psa… done psa is stopped Stopping psa… done ===> Cumulative database upgrade has been started ===> Upgrade completed. ===> Cumulative…
-
Iptables – restorecon: command not found
Today I got below error when saving iptables on on openvz centos 6 vps. [bash] iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found [/bash] This is due to the missing restorecon file. [bash] root@server [~]# ls -la /sbin/ | grep -i restore lrwxrwxrwx 1 root root 14 Sep 2 18:55…
-
How to install MP4Box
Install the dependencies first [bash] yum install zlib* freeglut freeglut-devel [/bash] Download the source files, extract, compile and install [bash] wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz tar -zxf gpac-0.4.5.tar.gz tar -zxf gpac_extra_libs-0.4.5.tar.gz cd gpac_extra_libs cp -r * ../gpac/extra_lib cd ../gpac chmod +x configure ./configure make lib make apps make install lib make install [/bash] Copy the library…
-
Migrate/Move accounts to new Linux Server
One of our client had a CentOS Server with no control panel and we were managing it. Now he bought a new powerful server and wanted us to migrate all the data to new server. So we did some research and were able to successfully able to migrate all his data to new server. First…
-
Find Spammer in Plesk Qmail
SMTP Spamming If the spammer is sending emails using SMTP (not some php or perl scripts) then you can can run the below commands to the users sending large number of emails [bash] grep -I smtp_auth /usr/local/psa/var/log/maillog |grep -I user |awk ‘{print $11}’ |sort |uniq -c |sort -n [/bash] PHP Script Spamming Create a /var/qmail/bin/sendmail-wrapper…
-
How to Install HyperVM
Below are the steps to install HyperVM with OpenVZ virtualization. HyperVM is free opensource control panel Pre-installation steps. Open 8888 and 8887 port in the firewall [bash]iptables -I INPUT -p tcp –dport 8888 -j ACCEPT itpables -I INPUT -p tcp –dport 8887 -j ACCEPT[/bash] Disable selinux by editing /etc/sysconfig/selinux and changing the line to selinux=disabled…