Archive for December, 2011

How to check server 32 or 64 bit?

Its very common issue, every new techie not sure about server bit at that time simply run following command to get bit information. getconf LONG_BIT  

Three steps to mount remote directory on Linux Server

We can mount the remote directory on the Linux Server by using the following three simple commands only. Login in to the server as a root user and run the commands one by one and make sure that you are using your own remote server ip instead of our test server ip198.168.0.2 yum install fuse-sshfs […]

/scripts/fixquotas gives error “edquota: Quota file not found or has wrong format”?

After running /scripts/fixquotas it gives following error message and showing unlimited disk space in WHM >> Main >> List account. root@server [/]# /scripts/fixquotas –force Installing Default Quota Databases……Done Linux Quota Support Quotas are now on Resetting quota for user23 to 1000 M edquota: Quota file not found or has wrong format. No filesystems with quota […]

How to add nameservers from shell.

Most of the time on cPanel dedicated server we add nameservers from WHM but some time we are not able to access WHM. In that case we can add nameservers from shell by using root login details. Login in to server as root user and run following commands. root@server[~]#/scripts/adddns –domain ns1.your_domain.com –ip=111.222.222.1 root@server[~]#/scripts/adddns –domain ns2.your_domain.com […]

Install GIT on cPanel server.

We can install the GIT on the cPanel server by using the yum. Login in to the server as root user and run the following command. yum –disableexcludes=main install git -y  

Secure Joomla site.

To avoid Joomla site to be hacked follow the following steps. Disable RG_EMULATION for Joomla. When this option is enabled even the latest Joomla is vulnerable to some variable injections. It can be disabled by placing the following line in your configuration.php: if(!defined(‘RG_EMULATION’)) { define( ‘RG_EMULATION’, 0 ); } ————- Secure your administrator’s area. This […]

user_password_dynamic_validation() error while installing Drupal 6.15

I have faced a big problem while installing Drupal. I am receiving following error message [Sun Feb 28 10:00:20 2010] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function _user_password_dynamic_validation() in /usr/share/drupal/install.php on line 710, referer: http://localhost/drupal/install.php? profile=default&localize=true To resolve above issue we need to manually update the table values From shell run following […]

Joomla “Not a valid image” issue

While uploading images we are receiving “Not a valid image” error message. To resolve error message refer following steps. First login into Joomla admin section and check box following option. Global Config > System – restrict uploads = No – check mime types = No Second edit configuration.php file and change. From var $ftp_enable = […]

Joomla “404 component error”

While browsing Joomla site “404 component error” message refer following steps to resolve issue. Login into Joomla admin section Then select Menus >> Menu Item Manager Check box “Home” option from list and then only click on the YELLOW star icon in the upper-right corner. Now browse your site and if you are still having […]

Magento “Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ “

After upgrading the Magento mostly the following error is occurred. Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ in /home/test123/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 123 Solution : To resolve the above error refer the following steps. 1st take backup for the file /app/code/core/Mage/Adminhtml/helper/Data.php 2nd) Change the following line in the file /app/code/core/Mage/Adminhtml/helper/Data.php   From class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract {protected $_pageHelpUrl; To class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract {const XML_PATH_ADMINHTML_ROUTER_FRONTNAME   = ’admin/routers/adminhtml/args/frontName’; const XML_PATH_USE_CUSTOM_ADMIN_URL         = ’default/admin/url/use_custom’; […]