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)
Any operation on a VE gives me “Cannot lock VE”.
Any operation on a VE gives me “Cannot lock VE“. VE is locked when some operation (backup, migration, start / stop, etc.) with this VE is in progress. You can determine which process is holding VE #111 using the following command on the hardware node: # cat /vz/lock/111.lck 16824 backing-up You can kill that process… Continue reading Any operation on a VE gives me “Cannot lock VE”.
Service Unavailable error message on a server with Plesk Windows
Plesk Error : Service Unavailable Error under Event Viewer : The identity of application pool ‘PleskControlPanel’ is invalid, so the World Wide Web Publishing Service can not create a worker process to serve the application pool. Therefore, the application pool has been disabled. Try Plesk Reconfigurator > Repair Plesk Installation with checked option Plesk Services… Continue reading Service Unavailable error message on a server with Plesk Windows
Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required
Sometimes, you can get the following error on VPS while running easy apache. You can fix by simple following steps. Login in to main VPS and edit the variable PRIVVMPAGES accordingly /scripts/easyapache Use of uninitialized value in pattern match (m//) at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 436. !! Critical Error (VZ): You are only only allowed to use… Continue reading Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required
DirectAdmin License Shows To Be Expired (Early License)
DirectAdmin is fully installed but we are unable to login and access the host. Steps to try and resolve this problem. Verify IP information bound to the host matches the data in /usr/local/directadmin/scripts/setup.txt Confirm the date is correct. # date Sun Jan 4 03:14:22 CST 2004 If not then set the date with ‘rdate’ or… Continue reading DirectAdmin License Shows To Be Expired (Early License)
Need to change IP address in FreeBSD
Issue: A change of IP address is needed in FreeBSD. Solution: If you do not have the root password boot into Single User mode [option 4]. Procced to step 1. If you have the root password procced to step 2. 1. mount -o (if you get a read-only error, you will have to run fschk… Continue reading Need to change IP address in FreeBSD
iptables string match to drop malicious urls
iptables string match to drop malicious urls ================================== Usually modsecurity rules can help filter many malicious url attack patterns combined with apache on apache port (http|https). But what if a malicious attack using a vulnerable url pattern, that exposes or tries to break into your system is coming onto another port? This is where iptables… Continue reading iptables string match to drop malicious urls
Performance tuning tools: ps, top, sar, iostat, and vmstat
Performance tuning tools :by Matt Frye P.S.—I want to see my processes Being on top Sar, yes, sar! Check your system, STAT! About the author As a system administrator, part of your daily duties is to monitor systems for performance and to tune systems where necessary. While there are expensive software products and benchmarking tools… Continue reading Performance tuning tools: ps, top, sar, iostat, and vmstat
Hotlink protection: How-To prevent people from stealing your files
Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.
WHM : Spamassassin / spamd not working
Spamassassin / spamd not working — solution 1. When restarting exim it will show [root@server ~]# /scripts/restartsrv_exim Starting exim: [ OK ] Starting exim-smtps: [ OK ] Starting antirelayd: [ OK ] Starting spamd: Can’t locate Cpanel/SpamAssassinSandBox.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at /usr/bin/spamd… Continue reading WHM : Spamassassin / spamd not working