Posts

Showing posts from March, 2012

Error: Exception printing is disabled by default for security reasons

Sometimes you will get the following error when accessing Magento sites: ~~~~~ There has been an error processing your request Exception printing is disabled by default for security reasons Error log record number: XXXXXXXXXXXXXXX ~~~~~ This point, you should check the error report that was generated. Magento 1.4.0.1 additional security enhancements which is why you see Exception printing is disabled by default for security reasons. Instead you need to go and look at the error report which can be found in var/reports/{report_id} in the Magento installation directory. Eg: /home/test/public_html/var/reports/533022418847 Here is the solution: 1. Navigate to the "errors" folder. 2. Change local.xml.sample to local.xml You should now see a new list of crazy errors all over the Magento page - this is okay. 3. Open magento/lib/Zend/Cache/Backend/File.php and look for: protected $_options = array( 'cache_dir' => 'null', Change it to: protected $_options = arr

How to enable custom flag like PCNTL in your cPanel server

Enabling custom flag like PCNTL in your cPanel server depends on what PHP you have and how you want to configure it. Here are a few options: If you want to add --enable-pcntl to all PHP4 compilations, do this: ~~~~~~~ Create a file called: /var/cpanel/easy/apache/rawopts/all_php4 Add this to the file: --enable-pcntl ~~~~~~~ If you want to add --enable-pcntl to all PHP5 compilations, do this: ~~~~~~~ Create a file called: /var/cpanel/easy/apache/rawopts/all_php5 Add this to the file: --enable-pcntl ~~~~~~~ If you want to add --enable-pcntl to a specific version of PHP, say 5.2.6 , do this: ~~~~~~~ Create a file called: /var/cpanel/easy/apache/rawopts/PHP-5.2.6 Add this to the file: --enable-pcntl ~~~~~~~ Its better to use "all_php*" option because when you will upgrade your PHP, you would not need to again create that file with current PHP version. The next step is to recompile Apache+PHP through the cPanel script "/script/easyapache". Af

How to enable wildcard subdomains for your website

Here are three ways to enable wildcard subdomains for your website: 1) The easiest way to enable wildcard subdomains is to create a subdomain *.yourdomain.com. You can do this from their cPanel > Subdomains. You should make sure that the subdomain's Document Root is public_html. 2) Log in to WHM and go to Edit DNS Zone. Select the domain you wish to modify from the list of available websites. Under Add New Entries Below this Line you should fill in the fields so that they look like: ~~~~~~~~~~~~~~ * 14400 IN A 1.2.3.4 ~~~~~~~~~~~~~~ where 1.2.3.4 is the IP of the account. 3) Another way to enable wildcard subdomains is to directly edit the httpd.conf file. Log in as root and open the httpd.conf file. Then find the VirtualHost entry for the website. It should look like: ServerAlias www.yourdomain.com ServerAdmin webmaster@yourdomain.com DocumentRoot /home/yourdoma/public_html/xyz ServerName yourdomain.com User yourdoma Group yourdoma BytesLog /usr/local

Spamd child process causing high server load

Sometimes, spamd child process for a particular user can cause high server load. This is a bug with spamassassin. To fix the issue, apply the patch mentioned in the bug. For cPanel servers, run the following scripts: /scripts/autorepair spamd_dbm_fix /etc/init.d/exim restart Thank you.