Modify the file 'config.inc.php' for XAMPP, PHPMyAdmin & MySQL setup

Sam Wood

I installed XAMPP and subsequently set a password for PHPMyAdmin & MySQL, which requires me to modify the file 'config.inc.php' to add my password to it. However, I simply can't find a way to successfully edit the file without getting a permission or operation error.

No matter what I try, I cannot modify the file to set up a password for PHPMyAdmin.

  1. I have tried logging in as root user using nano to modify the file and I still get permission errors.

  2. I've tried using my normal account and using sudo nano config.inc.php.

  3. I've tried changing permissions on the file to 755 and 777 i.e. chmod 755 config.inc.php.

Currently, due to these issues I can't access PHPMyAdmin at all now. Hoping someone can provide a solution to this nightmare.

Thanks!

EDIT

I'm running MacOS Mojave version 10.14.2, should have specified that my apologies!

When doing an ls -l on the file, I get:

-rw-r--r-- 1 daemon daemon 5109 18 Jan 09:40 config.inc.php

baelx

Thanks for the info so far, Sam.

The permissions on that file correspond to 644. I would try to run the commands you've listed again, prefacing with sudo as necessary. Here are some steps to correct the issue:

1. Switch the owner of the config.inc.php file with:

sudo chown youruser:youruser config.inc.php

To be sure, you can find your user name by simply running whoami beforehand.

You will be asked to enter your root password for this operation. Make sure you enter it successfully and the command completes. Then run ls -l again and you should see:

-rw-r--r-- 1 youruser youruser 5109 18 Jan 09:40 config.inc.php

This should be plenty for you to be able make use of the file to solve your underlying issue.


2. Try accessing it with the nano command.

3. If for some reason you're denied. Try changing the permissions:

sudo chmod 755 config.inc.php

And ls -l again to make sure it worked.

4. Now try accessing the file again with the nano command.


All of these commands should run and take effect no problem as long as you got the root password correct. If they didn't, that would be really odd and by all accounts shouldn't really happen. If somehow that's the case, please post the exact error message and what step it occurred at. Your system quietly not responding to a sudo authenticated command to simply change a file's permissions would be bizarre.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Update phpmyadmin config.inc.php file in bash

From Dev

phpMyAdmin permissions for config.inc.php

From Dev

phpMyAdmin config.header.inc.php broken

From Dev

phpmyadmin is working fine but I can't find config.inc.php file?

From Dev

Dose phpMyAdmin works without config.inc.php?

From Dev

How can phpMyAdmin be restarted after /etc/phpmyadmin/config.inc.php is changed?

From Dev

Access denied for phpMyAdmin after changing password,config.inc.php only readable

From Dev

xampp mysql and phpmyadmin dont work

From Dev

XAMPP - mysql and phpmyadmin not displaying images

From Dev

Phing + PHPDocumentor: BuildException: Error including PhpDocumentor setup class file "Setup.inc.php"

From Dev

phpMyAdmin not using config file

From Dev

Modify keyboard config file

From Dev

modify KMail config file

From Dev

Modify keyboard config file

From Dev

What is the advantage of using xampp? Why not directly install Apache, PHP, composer, MySQL and phpmyadmin?

From Dev

XAMPP MySQL password setting (Can not enter in PHPMYADMIN)

From Dev

Coverting a .BAK file into a .SQL for use in XAMPP phpmyadmin

From Dev

Android, php, MySQL, and phpMyAdmin

From Dev

Android, php, MySQL, and phpMyAdmin

From Dev

PHP Code (With XAMPP) Config.php

From Dev

Modify git config file globally

From Dev

Modify config file during release

From Dev

XAMPP - my ip directs to router setup config instead of home server

From Dev

How to get xampp running an older version of mySQL and/or phpMyAdmin

From Dev

How to get xampp running an older version of mySQL and/or phpMyAdmin

From Dev

Changing PHP file path in XAMPP

From Dev

MySQL query works in PHPMyAdmin but not PHP

From Dev

php, mysql and phpmyadmin, MAMP or homebrew

From Dev

mySQL inserts failing in PHP but not in phpmyadmin

Related Related

  1. 1

    Update phpmyadmin config.inc.php file in bash

  2. 2

    phpMyAdmin permissions for config.inc.php

  3. 3

    phpMyAdmin config.header.inc.php broken

  4. 4

    phpmyadmin is working fine but I can't find config.inc.php file?

  5. 5

    Dose phpMyAdmin works without config.inc.php?

  6. 6

    How can phpMyAdmin be restarted after /etc/phpmyadmin/config.inc.php is changed?

  7. 7

    Access denied for phpMyAdmin after changing password,config.inc.php only readable

  8. 8

    xampp mysql and phpmyadmin dont work

  9. 9

    XAMPP - mysql and phpmyadmin not displaying images

  10. 10

    Phing + PHPDocumentor: BuildException: Error including PhpDocumentor setup class file "Setup.inc.php"

  11. 11

    phpMyAdmin not using config file

  12. 12

    Modify keyboard config file

  13. 13

    modify KMail config file

  14. 14

    Modify keyboard config file

  15. 15

    What is the advantage of using xampp? Why not directly install Apache, PHP, composer, MySQL and phpmyadmin?

  16. 16

    XAMPP MySQL password setting (Can not enter in PHPMYADMIN)

  17. 17

    Coverting a .BAK file into a .SQL for use in XAMPP phpmyadmin

  18. 18

    Android, php, MySQL, and phpMyAdmin

  19. 19

    Android, php, MySQL, and phpMyAdmin

  20. 20

    PHP Code (With XAMPP) Config.php

  21. 21

    Modify git config file globally

  22. 22

    Modify config file during release

  23. 23

    XAMPP - my ip directs to router setup config instead of home server

  24. 24

    How to get xampp running an older version of mySQL and/or phpMyAdmin

  25. 25

    How to get xampp running an older version of mySQL and/or phpMyAdmin

  26. 26

    Changing PHP file path in XAMPP

  27. 27

    MySQL query works in PHPMyAdmin but not PHP

  28. 28

    php, mysql and phpmyadmin, MAMP or homebrew

  29. 29

    mySQL inserts failing in PHP but not in phpmyadmin

HotTag

Archive