Archive for September, 2008

421 unable to read controls (#4.3.0)

Qmail Logo

After installing Qmail on Gento distro, i try to check if the service smtp running, by doing this

# nc localhost 25
# 421 unable to read controls (#4.3.0)

damn,
google come in rescue, found the solution by adding this files on /var/qmail/control

defaultdelivery
defaultdomain
me
rcpthosts

Installing Zend Optimizer on cPanel

One of my customer need to upload his PHP script encoded by Zend Guard, my default install cPanel doesn’t include the extension.
here’s the step

/scripts/installzendopt
Downloading tarball for Zendopt
Fetching http://httpupdate.cpanel.net/cpanelsync/easy/targz/Cpanel/Easy/Zendopt.pm.tar.gz.linux-generic-64 (0)....@208.109.109.239......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
[/scripts/updatephpconf]: Improper PHP installation prefix /usr/local/php4. Not a directory, check your installation.
Installing Zendopt
Preconfiguring Zend Optimizer installer
Running Zend Optimizer installer for /usr/local
Please, wait ...
 
 
Welcome to the Zend Optimizer 3.3.3 Installation!
 
For more information regarding this procedure, please see the
Zend Optimizer Installation Guide.
 
[To continue, press Enter]
 
IMPORTANT:
BY SELECTING THE 'YES' OPTION BELOW, DOWNLOADING, INSTALLING, OR
OTHERWISE USING THIS SOFTWARE, YOU ACKNOWLEDGE THAT YOU HAVE READ THE
LICENSE AGREEMENT, AND THAT YOU AGREE TO BE BOUND BY ITS TERMS AND
CONDITIONS.
IF YOU DO NOT AGREE TO ALL OF THE TERMS AND CONDITIONS OF SUCH AGREEMENT,
YOU ARE NOT AN AUTHORIZED USER OF THE SOFTWARE AND IT IS YOUR
RESPONSIBILITY TO EXIT THIS DOWNLOADING/INSTALLATION PROCESS WITHOUT
DOWNLOADING OR INSTALLING THE SOFTWARE BY SELECTING THE 'NO' OPTION BELOW,
AND TO DELETE THE SOFTWARE FROM YOUR COMPUTER.
 
 
Do you accept the terms of this license?
Answer (yes or no) [YES]: 
 
Please specify the location for installing Zend Optimizer [/usr/local/Zend]: 
 
 
Installing 5_2_x_comp/TS/ZendOptimizer.so           \  [100%]             
 
 
The following configuration changes have been made:
 
- The php.ini file has been relocated from /usr/local/lib to /usr/local/Zend/etc
 
- A symbolic link for the php.ini file has been created in /usr/local/lib.
 
- The original php.ini was backed up to
 /usr/local/lib/php.ini-zend_optimizer.bak
 
[To continue, press Enter]
 
The installation has completed successfully.
[To continue, press Enter]
Relocating php.ini file
Cleaning up
Skipping install to /usr/local/php4, missing php.ini

then chek your installation with this command

# php -v
PHP 5.2.0 (cli) (built: Jan 19 2007 19:47:10) 
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies