Unable to Edit config.inc.php

前端 未结 2 501
醉话见心
醉话见心 2021-01-15 03:52

Running: macOS High Sierra Version 10.13.3, zsh w/ iTerm2

Trying to set up a local environment with xampp, which has worked just fine for me in the

相关标签:
2条回答
  • 2021-01-15 04:10

    I was able to resolve this by accessing the config.inc.php file via the terminal provided by xampp.

    First things first, the xampp-provided terminal needed nano (to edit the file) installed.

    apt-get update
    apt-get install nano
    

    I then navigated to the file:

    cd ../opt/lampp/phpmyadmin
    

    Then opened the file with nano:

    nano config.inc.php
    

    This finally allowed me to edit the config.inc.php file and successfully save.

    0 讨论(0)
  • 2021-01-15 04:19

    Great question. I had to work on this for an hour to figure it out too.

    Open Xaamp and go to "Open Terminal" on the main page. Make sure the server is running.

    You can run "apt-get update" like the other person said above me. The main one you want is "apt-get install nano"

    Then do "cd .." so you can back out of the file. The other person said "cd ../opt/... " but that command didn't work for me. What worked was doing "cd .."

    Then do cd again, type in "cd opt/lampp/phpmyadmin"

    Then type "nano config.inc.php"

    You should now be able to edit it. Hit control + o to save it.

    It worked for me. It took me an hour to figure it out.

    0 讨论(0)
提交回复
热议问题