Showing error "Connection string is empty" in magento

Prince Kumar picture Prince Kumar · Jul 15, 2014 · Viewed 16.7k times · Source

When i am installing an extension in my magento admin,it shows Connection string is empty. I don't know why this problem occurs. I cleared the cache also then also the problem is same. If anyone knows how to do this,please help me out. Thanks!

Answer

pablofiumara picture pablofiumara · Sep 3, 2014

To solve this problem, follow the steps below (I suppose you are using Ubuntu):

1) sudo chmod -R 777 /var/www/html/magentoInstallationFolder/

2) Install Magento Extension

3) Restore correct permissions for directories and files respectively

sudo find /var/www/html/magentoInstallationFolder/ -type d -exec chmod 775 {} \;
sudo find /var/www/html/magentoInstallationFolder/ -type f -exec chmod 664 {} \;

Read more about why 777 permissions are bad and you need to restore good permission code (775) after you install the extension: https://askubuntu.com/a/30635