How to install xampp in mac - macos

I am using MacBook Air. I installed the xampp but it's not working.
After some research, I found the URL http://localhost:8080/dashboard/ and I am getting the xampp. Now I am confused where should I get htdocs folder to add my code. Can anyone assist me?
Let's talk about in details
I downloaded the xampp from this link https://www.apachefriends.org/download.html
and I move it on the application. Now I am getting the xampp icon in application.
Then I open the xampp and I got a popup like and I click on start
I enable the 8080 port number.
Then I just I checked in the browser http://localhost:8080/dashboard/ and I found the xampp dashboard page.
Now I am not getting the htdocs folder. would you help me out in this?

I too have had lots of confusion setting up XAMPP on my Mac.
Things the docs said would work, just plain did not.
The short answer to your question: In MacOS X the htdocs dir of the virtual server is in:
/Users/<YOUR-USER-NAME>/.bitnami/stackman/machines/xampp/volumes/root/htdocs
More complete instructions for getting the server up:
Open up the XAMPP Application
Under General/Services start the XAMPP services
Under Network make sure to enable a port config (I chose localhost:8080->80)
In the Volumes "tab" click "Mount" beside /opt/lampp and then you can click "Explore" to open a finder window to the virtual server.
This will cause the virtual Network-Drive 192.168.xxx.yyy to show up in the Finder sidebar which has a single folder named lampp
Additionally a new external drive named lampp will also be available in Finder.
However you get to lampp, put your source-files in the htdocs folder.
Links that DID work for me on first launching:
http://localhost:8080/dashboard/
http://localhost:8080/phpmyadmin/
http://192.168.64.2/dashboard/
Links that did NOT work, in spite of docs claiming otherwise:
http://localhost/ or http://localhost/index.php
http://192.168.64.2/phpmyadmin/ <--Access Forbidden 403

A little late to the thread but I hit and solved this issue and I believe the OP had downloaded and installed the wrong version. At the time I am writing this, the link on the downloads page is for .dmg file is a VM file, or at least missing features of the full download. Instead of downloading that, go to the more downloads section
Once there, choose the version you need for your OS. This, and some mysql tweaks that are answered in multiple connected topics got me running.

Your XAMPP is working fine. You have to use Finder to go to htdocs.
Follow these steps -
Open the XAMPP application and hit "Start" button.
Make sure everything is proper by hitting "Go to Application".
Now you should see the dashboard on your browser, if not, restart the application and try again.
Go to Finder and on the sidebar you should see a volume labeled "192.168.64.2", go there and you will find a folder named "lamp".
See under the locations section
Inside lamp there will be htdocs, where you can place all the files you want the browser to access.Click on lamp

Related

Windows: XAMPP install folder ini file permission error, Access denied upon configuration save

After installing XAMPP to Windows 10 (all default/recommended installation attributes), I now have an issue changing its configuration after opening it.
Error: Cannot create file "C:\xampp\xampp-control.ini".
Access is denied
Clicking Save to a change in Configuration of Control Panel:
This "Configuration of Control Panel" box opens after clicking the "Config" button at the top right of the running XAMPP app:
I've tried a suggestion to run the XAMPP app with Administrator (elevated) access… but that seems like a major security issue, considering I don't know exactly what XAMPP would or could do with my files that require that permission, whether intended by the people who run XAMPP or not.
I've tried re-installing to another folder, like to C:\Users\Me, or a sub-folder like Documents or a custom one, but I just got different permissions issues that I struggled to figure out.
If you know a solution that worked for you, that avoided running XAMPP with Admin privileges, please let me know. I've gone through a handful of seemingly-related questions here but they seem to be related to MySQL/PHP questions and not Windows file system permissions.
I found a solution after noticing that the file already existed from apparently a past workaround I tried with running XAMPP as Admin... based on the permissions of the file being different than its parent folder. I discovered this by right-clicking the xampp folder or the xampp-control.ini file then selecting Properties and clicking the Security tab, then clicking into each attached user account's permissions.
So, my C:\xampp folder has these permissions: for Admin, basically full access; for my user account, Read, Execute, and Write.
The xampp-control.ini file has only Admin permissions; my user account is not attached to it.
Adding my user account to the xampp-control.ini file's Security, and adding Write permission then allowed XAMPP's config panel to save my changes.
Note that I typed my username into the "Enter the object names to select" box, then clicked Check Names; this auto-populated my username reference (?), though I'm not sure how it would work if it finds multiple results. Then I could click OK to get back to the Permissions box to add "Modify" and "Write" for it. I'm completely OK giving my user account permission to modify and write to this file through the XAMPP app.
Now, that fixes that file for that scenario; now I'm wondering if there will be other permissions issues with other files, because I noticed some other files (that I checked randomly) don't all share the same permissions for my user account!
Maybe I should have instead modified the xampp folder's permissions recursively to give my user account Write and/or Modify access (I'm not sure of the difference, Windows permissions seem far more complicated to understand and use than Linux's and Mac's do).
I think the file permissions were all set by XAMPP during install; I don't know yet that expanding permissions on certain files will not create new problems...
I found a solution after noticing that error, here is my solution
go to xampp installation folder on the c drive
Xampp Destination
then find xammp control panel.exe
Xampp Control Panel
then right click and go to properties(or press ALT+ENTER)
Click Properties
then go to compatibility and enable Run this program as an administrator
Compatibility tab
Your Problem is now fixed

I couldn't change php.ini in Xampp

For some reason I should change some values in my php.ini but when I applied changes nothing happened.I Google that problem but I realized Apache need to restart but after restart my Apache nothing happened.
I really need to solve in this problem .I installed VMware before I installed xampp in my computer i tell that because i guess xampp and vmware are not working
well together.
have you opened the php.ini in and administration mode? Sometimes a simple notepad is not saving the file properly. Try installing Notepad++ and open the php.ini and while you're saving a prompt should pop-up asking for admin privilege and reopen the file.

Where does MAMP keep its web server config file?

I'm using Mac OS X, and I use MAMP for local development.
I want to modify my web server(nginx.conf or .htaccess) configuration, and not sure which one/where MAMP place their web server config.
How do I find out ?
Any hints ?
For MAMP 4.2 the path is: /Applications/MAMP/conf/nginx/nginx.conf
Open Finder and click on the Application Tab, scroll to find the icon shown below:
Then double click this icon to get folder you want.
Just to clarify for future readers using MAMP PRO:
The base config template is located at ./MAMP/conf/nginx/nginx.conf, but the real/final config is located at /Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf
This is the config that includes any of the custom settings for individual Hosts, which might be useful for review/comparison purposes.
For anyone using MAMP PRO 6, according to the logs you can find the actual (non-template) NGINX config file at:
/Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf

Mac terminal Chrome Apps.localized

For some strange reason the Applications folder for a user login has changed itself.
It seems to have created an Alias for the real Applications folder and then stuck in Chrome Apps.locaslized in the original folder of applications.
This means I can no longer access my applications via the terminal. This is inconvient as I edit the Vhosts file of MAMP this way.
Can anyone shed some light as to how this might have happened and how I can revert it back so that Applications are put back into the applications folder as they should be
I have added an image so u can see what I mean
Type in:
cd /Applications
It will take you back to your list of all apps. I don't have an explanation but after playing around with the same issue I got back to my apps folder like that.
I'm having this same problem and this is the only other instance of it I found on google. Has anyone else encountered this or found a fix? After installing MAMP my Applications folder is now at /Applications instead of /Users/[username]/Applications
/Users/[username]/Applications now only contains Chrome Apps.localized

Wamp Server shortcut is missing

The Wamp Server icon(shortcut), that was im my Desktop, is missing.
The folder still there (C:\wamp).
I restarted my PC and it was no longer there.
Any idea why did it happen?
My computer it is not shared, and there are no .exe in wamp folder.
I'm using W7
You can always create a new chortcut by right clicking on desktop and New -> Shortcut... and the path put in C:\WAMP\WAMP.EXE. The why it happened... if the computer is a shared computer it could of been removed by another person.

Resources