My Weblog

Just another weblog

Install Xampp on Mac OS

XAMPP for Mac OS X is the simplest, most practical and most complete webserver solution for Mac OS X. The distribution includes an Apache 2 web server, integrated with the latest builds of MySQL, PHP (both 4 and 5) and Perl. It comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies.

To install XAMPP just do the following:
* Open the DMG-Image.
* Drag’n’Drop the XAMPP folder into your Applications folder.

Notice: all old installations of XAMPP for MacOS X will be overwritten!
That’s all. XAMPP is now installed below the /Applications/XAMPP directory.

* Step 3: Start
To start XAMPP simply open XAMPP Control and start Apache, MySQL and ProFTPD.

* Step 4: Test
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.

* A matter of security (A MUST READ!)
As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be as open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.

Here a list of missing security in XAMPP:
1. The MySQL administrator (root) has no password.
2. The MySQL daemon is accessible via network.
3. ProFTPD uses the password “xampp” for user “nobody”.
4. PhpMyAdmin is accessible via network.
5. MySQL and Apache running under the same user (nobody).

To fix most of the security weaknesses simply call the following command:
/Applications/XAMPP/xamppfiles/xampp security
It starts a small security check and makes your XAMPP installation more secure.
* Advanced start and stop parameters
With /Applications/XAMPP/xamppfiles/xampp you can not just start and stop XAMPP für Mac OS X, you can do loads more. To see what else you can do, just read below.
Start : Starts XAMPP.
Stop : Stops XAMPP.
Restart : Stops and starts XAMPP.
Reload : Apache, MySQL and – if started – ProFTPD reload their 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. Via FTP you can upload files for your web server (user “nobody”, password “xampp”). This command activates the ProFTPD permanently, e.g. if you restart XAMPP in the future FTP will stay activated.
Stopapache : Stops the Apache.
Stopssl : Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restart XAMPP in the future SSL will stay deactivated.
Stopmysql : Stops the MySQL database.
Stopftp : Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restart XAMPP in the future FTP will stay deactivated.
Reloadapache : The Apache webserver reloads its config files.
Reloadmysql : The MySQL database reloads its config files.
Reloadftp : ProFTPD reloads its config files.
For example: To start Apache with SSL support simply type in the following command (as root):
sudo /Applications/XAMPP/xamppfiles/xampp startssl
You can now also access your Apache server via SSL under https://localhost.

/Applications/XAMPP/xamppfiles/bin : The XAMPP commands home.
/Applications/XAMPP/xamppfiles/bin/mysql for example calls the MySQL monitor.
/Applications/XAMPP/htdocs/ :  The Apache DocumentRoot directory.
This is where the webpages belong.
/Applications/XAMPP/etc/httpd.conf : The Apache configuration file.
/Applications/XAMPP/etc/my.cnf : The MySQL configuration file.
/Applications/XAMPP/etc/php.ini : This File is to configure your php options.
/Applications/XAMPP/etc/proftpd.conf : ProFTPd configuration file.
* Stopping XAMPP : To stop XAMPP simply stop Apache, MySQL and ProFTPD in XAMPP Control.
* Uninstall : To uninstall XAMPP just stop it and move it to the Trash.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: