LOCALHOST Mac OS
By default, XAMPP has no passwords set and it is not recommended to run XAMPP with this configuration as it is accessible to others.
Simply type the following command (as root) to start a simple security check:
sudo /Applications/XAMPP/xamppfiles/xampp security
One of the entries you’ll find in the file is 127.0.0.1 localhost. The first section with numbers is the local IP address for your Mac. The second section where it has the host name is what you use to access that IP address. The above two parts, when combined together, redirect all the localhost queries to the IP address 127.0.0.1. Download XAMPP for Windows, Linux, and OS X. Older versions of Solaris are also available. # localhost is used to configure the lookback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost. 255.255.255.255 broadcasthost::1 localhost. While this might or might not work, there is a better preventative way of making sure you don’t end up somehow crushing your system — creating consistent backups.
Hostname Mac Os
Now you should see the following dialog on your screen:
XAMPP: Quick security check...
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the passworde somewhere down to make sure you won't forget it!!!
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Setting new MySQL root password.
XAMPP: Setting phpMyAdmin's root password to the new one.
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password: ******
XAMPP: Password (again): ******
XAMPP: Reload ProFTPD...
XAMPP: Done.
Mac Os Localhost
(1) Setting a password will protect the XAMPP demo pages (http://localhost/xampp/) using this password. The user name is 'lampp'!
After running this command, your XAMPP installation should be more secure.