Technology Insights

Linux CentOS 5 Server: YUM Repository to Install Zend Optimizer

I recently needed to install Zend Optimizer which was required by a ZenCart addon using Zend Guard. Zend Guard encrypts some or all of a PHP application to help protect its contents from being copied or modified. So I was typically like to install everything on CentOS using the yum package manger to make sure that updates for all applications are uniform and easy to do.

The actual package that needs to be installed to install Zend Optimizer is called php-zend-optimizer and isn’t readily available in many yum repositories. On a typical CentOS installation I add a couple extra yum repos including rpmforge and a repo that provides ruby based packages for CentOS. Anyhow after awhile of searching I finally located the atomic repository which did include the php-zend-optimizer package.

Details
Technology Errors

ZenCart Ecommerce Store: Web Page Redirect Loop Error, CEON advshipper

During verifying some upgrades I had made to a ZenCart store I ran into some issues during checkout with a couple accounts. The issue was that my browser would get caught in a redirect loop after I added contents to my shopping cart and then attempted to checkout. At first I thought the issue may be with the checkout_process.php file as it was one of the files I had upgraded recently though after a more troubleshooting I determined this was not the case. 

ZenCart Checkout: Browser Redirect Loop Error

Locating the Issue:

Details
Technology Errors

PHP Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 491520 bytes) in /path/to/file

I received the below error during the process of a ZenCart shopping cart upgrade. The error was noticed when navigating through the ZenCart store admin via a web browser. I wanted to post a resolution because I wasn’t able to locate the exact resolution to my answer online and it took me awhile to locate the issue. Most of the resolutions I located on the Internet talked about modifying the post_max_size or other options located in the php.ini file however no matter what I changed these to I ended up receiving the same error.

Error: PHP Fatal error:  Allowed memory size of 25165824 bytes exhausted (tried to allocate 491520 bytes) in /path/to/file

Details
Technology Insights

Delete All Mail Using the mail Command From the CLI of a Linux Server

Deleting mail from a Linux users local account is easy using the mail command line utility. The mail command can also be used to perform any other functions that you can think of to manage email such as replying to messages, reading messages, or just sending messages. It is very basic in nature but it does provide a great utility for simple mail tasks.

Typically most of the mail that ends up in a user account on a Linux server that I might manage comes from a cronjob or some various task that is run on a server under a users name. It is important to understand and review these messages from time to time as they may have important information in them.

Details