Using XAMPP on Mac
Ranked #1,969 in Computers & Electronics, #33,867 overall
XAMPP is like WAMP (Windows Apache MySQL PHP), LAMP (Linux Apache MySQL PHP), and MAMP (Mac Apache MySQL PHP) only it's cross platform.
Contents at a Glance
Installing XAMPP
and Starting XAMPP
Why not just run MAMP?Several reasons:
1. MAMP itself doesn't have many features and you have to pay for MAMP Pro
2. Whenever I download MAMP off their website it always ships with a missing MySQL .sock file...
3. XAMPP comes with a very hand web dashboard
Sounds cool! Where can I download XAMPP?
You can download XAMPP for Mac here
Installation from Command Line
Click edit above to add content to this empty capsule.
If you prefer to install XAMPP from the command line run the following:
sudo su
cd
tar xfvz xampp-macosx-0.7.3.tar.gz -C /
Starting XAMPP
Click edit above to add content to this empty capsule.
After running the XAMPP installer located on the downloaded disk image go to your Applications folder and look for a folder called "XAMPP".
Open up the XAMPP folder and run the XAMPP control panel
Authenticate if required
Then start All Components
Now direct your web browser to "localhost/xampp"
Welcome to the XAMPP web interface!
Starting XAMPP from the Command Line
Click edit above to add content to this empty capsule.
To start XAMPP from the command line simply run:
sudo su
/Applications/xampp/xamppfiles/mampp start
and it should respond:
Starting XAMPP for MacOS X 0.7.3...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.
Security
and XAMPP commands
Security
After installation XAMPP is unsecure:
The MySQL administrator (root) has no password.
The MySQL daemon is accessible via network.
ProFTPD uses the password "xampp" for user "nobody".
PhpMyAdmin is accessible via network.
MySQL and Apache running under the same user (nobody).
To fix this open up terminal and run:
sudo su
/Applications/xampp/xamppfiles/mampp security
Then follow the instructions on the screen.
XAMPP Commands
Here is the full list of XAMPP commands, there are two ways to execute them:
1. sudo /Applications/xampp/xamppfiles/mampp *insert parameter here*
2. sudo su /Applications/xampp/xamppfiles/mampp *insert parameter here*
start - Starts XAMPP.
stop - Stops XAMPP.
restart - Stops and starts XAMPP.
reload - Reloads Apache, MySQL and ProFTPD config files
startapache - Only starts the Apache.
startssl - Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restart XAMPP in the future SSL will stay activated.
startmysql - Only the MySQL database ist started.
startftp - Only the ProFTPD Server is started. Using FTP you can upload files for your web server using user "nobody" password "xampp"
stopapache - Stops the Apache.
stopssl - Stops the Apache SSL support.
stopmysql - Stops the MySQL database.
stopftp - Stops the ProFTPD server.
reloadapache - The Apache webserver reloads its config files.
reloadmysql - The MySQL database reloads its config files.
reloadftp - ProFTPD reloads its config files.
After installation XAMPP is unsecure:
The MySQL administrator (root) has no password.
The MySQL daemon is accessible via network.
ProFTPD uses the password "xampp" for user "nobody".
PhpMyAdmin is accessible via network.
MySQL and Apache running under the same user (nobody).
To fix this open up terminal and run:
sudo su
/Applications/xampp/xamppfiles/mampp security
Then follow the instructions on the screen.
XAMPP Commands
Here is the full list of XAMPP commands, there are two ways to execute them:
1. sudo /Applications/xampp/xamppfiles/mampp *insert parameter here*
2. sudo su /Applications/xampp/xamppfiles/mampp *insert parameter here*
start - Starts XAMPP.
stop - Stops XAMPP.
restart - Stops and starts XAMPP.
reload - Reloads Apache, MySQL and ProFTPD config files
startapache - Only starts the Apache.
startssl - Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restart XAMPP in the future SSL will stay activated.
startmysql - Only the MySQL database ist started.
startftp - Only the ProFTPD Server is started. Using FTP you can upload files for your web server using user "nobody" password "xampp"
stopapache - Stops the Apache.
stopssl - Stops the Apache SSL support.
stopmysql - Stops the MySQL database.
stopftp - Stops the ProFTPD server.
reloadapache - The Apache webserver reloads its config files.
reloadmysql - The MySQL database reloads its config files.
reloadftp - ProFTPD reloads its config files.
Files
and Uninstalling
Files
Click edit above to add content to this empty capsule.
The webpages you wish to display should be placed in
/Applications/XAMPP/xamppfiles/htdocs
Configuration files:
/Applications/xampp/etc/httpd.conf - The Apache configuration file.
/Applications/xampp/etc/my.cnf - The MySQL configuration file.
/Applications/xampp/etc/php.ini - The PHP configuration file.
/Applications/xampp/etc/proftpd.conf - The ProFTPd configuration file.
Uninstall XAMPP
Click edit above to add content to this empty capsule.
To uninstall XAMPP run:
sudo rm -rf /Applications/xampp
Click edit above to add content to this empty capsule.
The webpages you wish to display should be placed in
/Applications/XAMPP/xamppfiles/htdocs
Configuration files:
/Applications/xampp/etc/httpd.conf - The Apache configuration file.
/Applications/xampp/etc/my.cnf - The MySQL configuration file.
/Applications/xampp/etc/php.ini - The PHP configuration file.
/Applications/xampp/etc/proftpd.conf - The ProFTPd configuration file.
Uninstall XAMPP
Click edit above to add content to this empty capsule.
To uninstall XAMPP run:
sudo rm -rf /Applications/xampp
by Hyrule
Hello World! I'm Hyrule. Nintendo and Apple are awesome :)
- 1 featured lens
- Winner of 2 trophies!
- Top lens » Using XAMPP on Mac
Feeling creative?
Create a Lens!