XAMPP VM and Text Editors: Best Practices

apachePHPterminalvirtualization

I recently installed XAMPP for OS X (XAMPP VM PHP 7.2.1) which now virtualizes the entire box for obvious benefits of higher security. Although I admire the new concept and see its benefits, I cannot put my head around one thing that puzzles me.

I would like to enable the PHPMyAdmin tool, which requires me to change a file, based on this well described set of instructions:

http://localhost:8080/dashboard/docs/access-phpmyadmin-remotely.html

This document basically describes the steps needed to relax the security concept that prevents directly accessing the PHPMyAdmin login. It asks you to edit the /opt/lampp/etc/extra/httpd-xampp.conf file in order to allow access to PHPMyAdmin. One can get to the file system via the stack manager. In this file, the following block:

<Directory "/opt/lampp/phpmyadmin">
  AllowOverride AuthConfig
  Require local
  ...

needs to be changed into:

<Directory "/opt/lampp/phpmyadmin">
  AllowOverride AuthConfig
  Require all granted
  ...

Strangely, and I am extremely puzzled by it and cannot actually believe it, I seem to not be able to find neither pico, vi, vim, or nano (all very standard editors in any Linux distribution) on this virtual machine. Since I am on the VM, I have no access to tools on my own machine (i.e. everything in /Applications).

Did I overlook something? What is going on?

Best Answer

As the documentation suggests, you need to locate and edit the file: /opt/lampp/etc/extra/httpd-xampp.conf

The hard part for me was locating this file. The solution I found was to ensure the stack volume was mounted:

enter image description here

From there, you can click the explore button, which will open /opt/lampp/. You can then navigate to etc/extra/httpd-xampp.conf from the Finder window that is opened and edit with any editor you want.

Alternatively, once the drive is mounted, you should be able to access the volume through Finder:

enter image description here

Hopefully, this helps.