Magento: Call to undefined function mcrypt_module_open()

Problem: Magento Shopping cart displays blank page when items are clearly in the cart. Server Error log will display the following message: Call to undefined function mcrypt_module_open()

Solution: PHP mcrypt() Module is not installed, install mcrypt to resolve this issue.

To install mCrypt for PHP5 on your Ubuntu Linux system:

sudo apt-get install php5-mcrypt

Then restart Apache with:

sudo /etc/init.d/apache2 restart

Additionally, this problem can present itself in the admin panel as blank pages that don’t resolve, and it also throws a function error on every login.

Plesk: Unable update mailbox: mailmng failed: Empty error message from utility

Symptom: When attempting to add a new mail account you receive the following error message: Unable update mailbox: mailmng failed: Empty error message from utility

Solution: The error is caused by a security update released in Ubuntu for mysql 5.1.66, there is currently no Plesk fix for this error as of Nov. 13th, 2012. In order to resolve the error you must roll back 5.1.66 to 5.1.63.

Instructions can be found here for the temporary fix: Parallels Forum

Note: If Ubuntu 10.04 LTS is set to automatically install updates, every time it checks for updates it will patch 5.1.63 to 5.1.66 again.

Joomla: Proper permissions for configuration.php

Symptom: What is the proper permissions for Joomla’s configuration.php?

Solution: The proper setting is 0644

owner: read and write permissions,
group: only read permissions,
others: only read permissions.

To change from SSH/Telnet
: chmod 644 configuration.php

Always check the configuration.php permissions after a fresh install as some servers require it to be set to 777 prior to completing the configuration.

Plesk: DNS Server installed but Bind9 won’t load

Symptom: Plesk 11 comes installed with Bind9 but the DNS Server will not start.

Solution: There is a known conflict with apparmor in Ubuntu 10.04 LTS

1. sudo /etc/init.d/apparmor stop

2. Add the following to the apparmor profile: /etc/apparmor.d/usr.sbin.named

# plesk runs bind in chroot, need perms
/var/named/run-root/** rw,

3. sudo /etc/init.d/bind9 start

4. sudo /etc/init.d/apparmor start

5. sudo /etc/init.d/psa stop

6. sudo /etc/init.d/psa start

Bind9 / DNS Service should now be enabled in the control panel.

Magento: Stuck in Maintenance Mode

Symptom: Magento reports that it is in maintenance mode. This often occurs after system updates. “Service Temporarily Unavailable The server is temporarily unable to service your request”

Solution: Login to the FTP and brows to the main web directory for your Magento installation, locate maintenance.flag and remove the file.  The site should be live again.