5

I have installed xampp on Ubuntu 15.04 and after starting the server, I get:

phpMyAdmin - Error
Wrong permissions on configuration file, should not be world writable!

How should I proceed?

  • 2
    It is complaining that you changed the config file and made its permissions "777". Remove it and install our native LAMP stack with sudo apt-get install lamp-server^. Less hassle, more secure and made to work out of the box. – Rinzwind Jul 16 '15 at 19:02
  • @Rinzwind: Could you please convert that to an answer so that schmucks like me who go around hunting for unanswered questions don't have to look at this one any more? ;-) (And I'll upvote if you drop me a note and it's a good one too!) – Fabby Jul 16 '15 at 20:25
1

As per comments:

xampp is complaining that you changed the config file and made its permissions 777. (world readable and writeable)

Remove it and install the Ubuntu native LAMP stack with:

sudo apt-get install lamp-server

Less hassle, more secure and made to work out of the box.

| improve this answer | |
7

if you are running XAMPP on 14.04
this must work

sudo chmod 644 /opt/lampp/phpmyadmin/config.inc.php
| improve this answer | |
  • This command also work on Linux Mint. Thanks guys. – Kailas Nov 30 '17 at 11:27
2

Its late but may help someone in future.

If you are using Bitnami LampStack, then you'll find the file config.inc.php in

install-directory/apps/phpmyadmin/htdocs/

So for changing its permission, open a terminal and excecute:

sudo chmod 755 install-directory/apps/phpmyadmin/htdocs/config.inc.php

Then try to reload localhost/phpmyadmin.

| improve this answer | |
0

I solved this question by typing this command that changes the permission of phpMyadmin. open terminal and type:

$ sudo chmod -R 644 /opt/lampp/phpmyadmin/setup/frames/
| improve this answer | |
0

Press Ctrl+Alt+T to open a terminal window.

  1. Run sudo chmod 777 /opt/lampp/phpmyadmin/config.inc.php.

  2. Open config.inc.php in a text editor.

  3. (i) Change config to cookie on the line that reads:

    $cfg['Servers'][$i]['auth_type'] = 'config';
    

    (ii) Keep the next line the same. Do not change it from:

    $cfg['Servers'][$i]['user'] = 'root';
    

    (iii) Change '' to 'root' on the line that says:

    $cfg['Servers'][$i]['password'] = '';
    
  4. Save config.inc.php.

  5. Run sudo chmod 644 /opt/lampp/phpmyadmin/config.inc.php.

  6. Restart XAMPP and check phpMyAdmin.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.