Tag Archive for Adesh Suryan

localhost/phpmyadmin is not working after the update of ubuntu 16.04/16.10

Initiation

phpmyadmin is not working. Every things are working fine like http://localhost, http://localhost/info.php but while accessing http://localhost/phpmyadmin it is giving HTTP ERROR 500 The localhost page isn’t working.

Error: Check the error.log (/var/log/apache2/error.log ) and fix the issue like below

# Type 1:

 

Solution: Please check the setup with setup blog. If you are using different version of php then update the php configuration with the help of “Step 2: Install PHP and add PPA”  from setup blog like below

 

 

#Type 2:

Failed opening required ‘/usr/share/php/php-gettext/gettext.inc

Solution: Run the below command and restart server.

 

 

Note: You can visit complete information in  debian bug details.

 

Magento export and import attributes from one magento to other setup

I am sharing with you few set of class by which you can export all attributes and their options (if it is a drop-down attribute) from the source website.

Build a php file in magento root like “export_all_attributes.php” and update with below code.

How to run via command: php -f export_all_attributes.php

Note: This will give a csv file [actually i used “|” to separate ;)].

now put the following code in MAGENTO_ROOT/var/Import** directory of the destination website