Unable to find htdocs on xampp - macos

I have installed XAMPP for macOS Sierra.
I have one icon in application for XAMPP.
I am able to run the server & it's services but I am not able to find the htdocs folder.
I have not found it under \Library\Webserver

I was able to find the htdocs directory. On mac,Under volume tab there is button called 'explore' from there there is the directory.

Just found out that XAMPP nfs mounts on MacOS are located in following path:
/Users/my_name/.bitnami/stackman/machines/xampp/volumes/root/htdocs

The new version of XAMPP uses a VM for its content, you need to mount the Volume to access htdocs.
More info about differences between old XAMPP and XAMPP-VM:
XAMPP-VM for Mac

In other to locate the right and active htdocs directory of your XAMPP for macOS Sierra, follow the three steps below;
Launch your XAMPP and click on the "Start" button,
Wait for the Status indicator bubble to change from the orange colour to green, then click on the "Volumes" tab (between the "Network" and "Log" tabs),
Proceed to click on the "Mount", then "Explore" button;
From the resulting window, you can easily locate your htdocs folder.
More details available here.

Delete the xampp.app, download the new one(I use 5.6.31 php ver) then reinstall it.

You can also mount it on your own mac :
hatem#Mac:/opt$ sudo mkdir lampp
hatem#Mac:/opt$ sudo mount -t nfs -o resvport,rw 192.168.64.2:/opt/lampp /opt/lampp
Then ls and you will find the entire lampp from the VM mounted locally.

I found out that the NEW xampp has file explorer link on it click it and boooooooooom htdocs is there

/Applications/XAMPP/xamppfiles
That's where you will find htdocs.

Related

XAMPP doesn't work after update to macOS Big Sur

Today I updated my mac to macOS Big Sur and I can't open XAMPP. When I click on app it doesn't give any response.
Do you know how solve this problem?
You can do a clean installation, but you will lose all your old files and databases. I suggest making a backup of this data.
Uninstall old versions of xampp.
Installation of Xampp by the brew
brew install --cask xampp
If you don't have the brew installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
HomeBrew
After Big Sur installation if XAMPP is not opening, get newest version of XAMPP (7.4.12) from their web site.
If you end up with error "Error starting “XAMPP” stack: cannot calculate MAC address: signal killed". After installing the latest version, do following:
Go to terminal ->
cd ~/.bitnami/stackman/helpers
Mv hyperkit hyperkit_backup
After that XAMPP opens and tells its the first time opening, but at least I found all the files etc as before Big Sur upgrade.
Install XAMPP 7.4.12, works perfectly in MacOS Big Sur
I had Xampp 7.4.9 and update Mac OS to Big Sur. Xampp didn't want to launch after that. I lost access to all my projects inside of /htdocs folder hidden somewhere in path structure of my virtual machine.
Kindly note I used version 7.4.9-VM (not 7.4.9-Installer) that is why all my files blocked inside of
/Users/'your_user_name'/.bitnami/stackman/machines/xampp/vm/machine.qcow2
Actually all files are important here:
/Users/'your_user_name'/.bitnami/stackman/machines/xampp
not only machine.qcow2
My solution is kind a mix of before mentioned solutions because they didn’t help in full.
First of all make a backup - copy old structure (with blocked files) to some directory - all this structure:
/Users/'your_user_name'/.bitnami/stackman/machines/xampp
(To see hidden files in MacOS use [Command]+[Shift]+[.])
You also can just rename
/Users/'your_user_name'/.bitnami/
to something like
/Users/'your_user_name'/.my_blocked_files_bitnami/
As programmers here advised to install 7.4.12-VM I installed this version. Very important to install "Virtual Machine" version (as you can see there are 2 installers for each version of Xampp)
Right after I launched 7.4.12-VM the new directory was created here:
/Users/'your_user_name'/.bitnami/
and Xampp will work properly but with no your old projects.
Do not do this step: As programmers here advised to change only one file
/Users/'your_user_name'/.bitnami/stackman/machines/xampp/vm/machine.qcow2
for me it was not enough - Xampp failed with an error:
ERROR: Error starting "XAMPP" stack: cannot start stack: ssh not accessible
My solution was put whole structure from folder xampp
/Users/'your_user_name'/.my_blocked_files_bitnami/stackman/machines/xampp
to here:
/Users/'your_user_name'/.bitnami/stackman/machines/xampp
You may before rename your current folder
/Users/'your_user_name'/.bitnami/stackman/machines/xampp
to something like
/Users/'your_user_name'/.bitnami/stackman/machines/new_xampp_without_my_projects
Then launch Xampp (Xampp should say something about incopatible versions but allows to continue), start all services, mount the disk. press "Expore" and you should see all your old projects.
Thank you.
You can solve this problem by updating xampp ver 7.2.34 .
https://www.apachefriends.org/download.html
Same thing happened to me but the version 7.4.12 seems to be working. I download it from the link I'll but below. I've been reading and the problem seems to be that Big Sur changes some paths that are set by default and so the apps won't launch. Same thing happened to Apache NetBeans.
XAMPP Download Link:
(https://sourceforge.net/projects/xampp/files/XAMPP%20Mac%20OS%20X/7.4.12/)
I had the same problem. This is how I solved it:
First, be sure that you back up your files in XAMPP VM. Your files are in
/Users/'your_user_name'/.bitnami/stackman/machines/xampp/vm/machine.qcow2
Then you can reinstall XAMPP again. I have installed 7.4.12 and it worked fine.
If you see stack error message, this is what you have to do:
Close XAMPP
Open a terminal and remove the stack folder with the following code:
rm -rf ~/.bitnami/stackman
Open XAMPP and check if a new stackman folder is created.
/Users/'your_user_name'/.bitnami/stackman/
If it does not, then start XAPP and stop again. When the stackman folder is created, override the file below with your backup file.
/Users/'your_user_name'/.bitnami/stackman/machines/xampp/vm/machine.qcow2
Close XAMPP again and restart again.
Voila! Here are your files...
I tried reinstalling XAMPP on MACos Big Sur, and it worked. However, my files are not recovered.
you can type this code in terminal
before this code you should close xampp
rm -rf ~/.bitnami/stackman
if you are getting error message saying:
Cannot calculate MAC Address: Using fd 10 for I/O notifications hv_vm_create HV_ERROR (unspecified error)
you need to download new hyperkit from bitnami and replace the current one
cd /tmp
curl -LJO "https://downloads.bitnami.com/files/hyperkit/hyperkit-testing-`20210430"`
mv /tmp/hyperkit-testing-20210430 ~/.bitnami/stackman/helpers/hyperkit
chmod +x ~/.bitnami/stackman/helpers/hyperkit
read tutorial here:
https://floyk.com/en/post/xampp-doesnt-work-after-update-to-macos-big-sur

Mac apache2 local host and reinstalling

after all kinds of editing :( :/ yea....
1: localhost will open it works! and when you refresh the page it does not work and refresh the page again and it shows up again.
2: even after running sudo apachectl stop localhost still shows it works
3: running in terminal jobs shows 9 sudo vi /etc/apache/httpd.conf
4: at one time https.config had php7 now only shows php5 after some other edits
?????any way to complete just remove apache and reinstall the hole apache?????
after a lot of editing files around found out the solution was:
for
#3 on unix ie Mac
1....( run the command in terminal) rm .httpd.conf.swp
2.... (then going back in and editing files as follows run ..... )
nano /etc/apache2/httpd.conf
3.... (change the text of ((LoadModule php5_module libexec/apache2/libphp5.so)) just change the 5 to a 7 then hit control o then enter then control x
4.... run. apachectl restart and open web browser run localhost
now if you want php add the phpmyadmin folder downloaded from phpmyadmin
first rename the folder to phpmyadmin after it has been unzipped and move it into the folder located at your Mac harddrive/Library/webserver/document you should also see your index.html.en
by the way editing this index.html.en file will let you know when you run localhost if this is intact the location it is rendering. another problem some have if they use other things like node.js mongodb and so forth and or files moved around.

Error starting "XAMPP" stack: cannot calculate MAC address: signal killed

I recently installed XAMPP-VM on my Mac. I am encountering a problem whenever I click Start in the General tab. Log tab shows that...
INFO: Starting "XAMPP" stack
ERROR: Error starting "XAMPP" stack: cannot calculate MAC address: signal: killed
As an individual who is not knowledgeable of such error, could someone explain what this error means and how to fix it?
I had the same problem and fixed it.
You have to close xampp, then type on your terminal:
rm -rf ~/.bitnami/stackman
And open xampp again.
Hope it works for you :) .
Make sure you have these requirements to use XAMPP-VM platform:
OS X 10.10.3 Yosemite or later
a 2010 or later Mac (i.e. a CPU that supports EPT)
UPDATE:
Unfortunately you can not use XAMPP-VM if you don't have this requirements but you can use the regular OS X native installer available at https://www.apachefriends.org/download.html
For people using Apple silicon chips, using installer.dmg instead of vm.dmg works.
For example, I used the following link for version 8.4.1:
https://sourceforge.net/projects/xampp/files/XAMPP%20Mac%20OS%20X/8.1.4/xampp-osx-8.1.4-0-installer.dmg/download
Hitting the same error. However, I pressed start after a while it works. lol...
Running Mac OS 10.12.6 (16G29) and XAMPP 7.2.0
Anyone is still facing the issue of macOS Big Sur. Below I have attached few commands please follow the same.
Important: Make sure to take the backup of the working projects manually.
#create a backup of your contents inside htdocs
cp -rp ~/.bitnami ~/.bitnami.back
#note: this command enters tmp folder if you are in Users/ directory
cd ../../tmp
#installs hyper kit
curl -LJO "https://downloads.bitnami.com/files/hyperkit/hyperkit-testing-20210430"
#Check the hash
md5 /tmp/hyperkit-testing-20210430
#move the hyper kit
mv /tmp/hyperkit-testing-20210430 ~/.bitnami/stackman/helpers/hyperkit
#give permission for hyper kit
chmod +x ~/.bitnami/stackman/helpers/hyperkit
Also I have attached the video link: https://www.youtube.com/watch?v=FfQHNQTj28c
Another solution for Big Sur (probably works up to, but not including, Ventura) if you are trying to get the contents of your VM working as well.
Rename the current .bitnami/stackman folder to something else like stackman_old
Open up the Bitnami VM and it should rebuild the stackman folder and reassign a new localhost IP address.
Make sure that VM works by starting it up and checking it's all green
If good, quit the VM again
Move the stackman_old/machines/xampp/ssh folder into the same place into the new stackman folder.
Move the stackman_old/machines/xampp/vm folder into the same place into the new stackman folder.
After doing these two folder replacements, open up the VM again and it should start up fine, just will have the new IP address so if you are referencing that ip in your etc/hosts file, you'll have to update those so it's pointing to the right place.
Hopefully this helps someone!

Setup discourse docker on mac os

I'm following standard guide to install discourse on my local mac.
After launching the setup tool ./discourse-setup I've got error message:
cd /pups && git pull && /pups/bin/pups --stdin
/usr/local/bin/docker: Error response from daemon: Mounts denied: er.com/docker-for-mac/osxfs/#namespaces for more info.
.
r/discourse/shared/standalone/log/var-log
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
Initially I've tried to install to my work directory inside /Users. This folder is in File Sharing.
Then I installed to /var/discourse folder, the same error. I assumed that var folder is not in Docker File Sharing so I tried to add /var folder to Docker's Sharing Files and got message
The path /var is reserved by Docker
What might be a problem here?
Go to Docker icon in the top of the screen and click on Preferences -> File Sharing and add an other folder different than /var, eg: /Applications/htdocs/myproject/ every folder should be dedicated to a project.

How to copy folder from Ubuntu to mac

I have a virtual box installed with Ubuntu on it. I want to copy a folder from Ubuntu to my local machine i.e. Macbook.
Is there a way to do so?
Yes, there is. I do it to copy files from Windows to my Ubuntu virual machine. To do so, you have to:
1) Once you have launched your VM, in the top menu, select "Devices -> Install Guest Additions". After that, the Guest Additions .iso will be loaded.
2) You will see the .iso loaded as a CD image. Run it and it will launch the install process in a Terminal. Follow the instructions until the end of the install process.
3) Reboot your VM.
4) Run you VM, in the top menu, select "Devices -> Shared Folder Settings", click in to add a new folder, and select the name and the route of the Shared Folder (for example, a folder with name LINUX created in your Mac).
5) Now, go back to your Ubuntu VM, open a terminal and write (again, the name of the folder is just an example. In this case, both folders, Mac and Ubuntu shared folders share the same name):
$ sudo mkdir /media/LINUX
$ sudo mount -t vboxsf LINUX /media/LINUX
6) Finally, if you want to mount the shared folder automatically every team you run your VM, do:
$ gksudo gedit /etc/init.d/rc.local
And add the following line:
$ sudo mount -t vboxsf LINUX /media/LINUX
Hope it works!

Resources