Unable to edit config.inc.php in the phpmyadmin configuration
I'm trying to edit a file on my mac. The file is config.inc.php
of XAMPP located in /opt/lampp/phpmyadmin
.
Permission of the folder and file:
Phpmyadmin -> drwxr-xr-x 12 root wheel 4096
Config.inc.php -> -rw-r--r-- 1 daemon daemon 5109 config.inc.php
I tried to open file with: sudo nano config.inc.php
but it doesn't change it because it says i don't have permission to do it.
To changing the privileges with: sudo chmod 777 config.inc.php
, but it doesn't make me modify it.
To reset privileges of the computer and create a new administrator User, but he doesn't want to know about changing the permissions.
I'm freaking out can anyone help me out?
Here a screenshot of the Terminal error:
XAMPP-VM runs within a Linux VM, so you can't access the config files directly within the macOS filesystem. To access the VM either open Terminal from the XMPP launcher
or run
ssh -i ~/.bitnami/stackman/machines/xampp/ssh/id_rsa -o StrictHostKeyChecking=no [email protected]
By default the XAMPP VM doesn't include any editor at all so you need to install one using apt-get
:
apt-get update
apt-get install nano
Afterwards you can run nano /opt/lampp/phpmyadmin/config.inc.php
to edit the file.
PS: Based on https://stackoverflow.com/questions/52932609/unable-to-edit-config-inc-php