Run Apache/MySQL/PHP on Mac

Source: Internet
Author: User
Tags mcrypt drupal openldap startssl
Welcome to XAMPP for Mac OS X

XAMPP for Mac OS X is the simplest, most practical, and most complete web server solution on Mac OS X. This release includes an Apache 2 server that integrates the latest MySQL, PHP, and Perl. It is released as a Mac OS X installation package and contains all the necessary files without downloading anything else.

If you are an experienced web developer or a Mac enthusiast who needs to run a server, create dynamic web pages, or use a database, this is what you are looking for!

This version requires Mac OS X 10.4 (Intel & PPC) or higher.

The installation process is only 4 steps

 Step 1: Download
 BitNami Add-ons: WordPress, Drupal, Joomla! And more
 Step 2: Install
 Step 3: Get started
 Step 4: Test

Instructions for use

 Security issues (must read!)
 Advanced start and stop parameters
 What is there?
 Stop XAMPP
 Uninstall
 Thanks

The installation process is only 4 steps
 Step 1: Download
Just click on the link below. Downloading the latest version is always a good idea. :)

The complete download list (older version) can be found at SourceForge.

There is currently no version update history.

XAMPP for Mac OS X version 1.8.2, July 18, 2013

Version
Size
Related Information
 XAMPP
Mac OS X 1.8.3 PHP 5.4
Universal Binary 165 MB Apache 2.4.4, MySQL 5.5.32, PHP 5.4.16 & PEAR + SQLite 2.8.17 / 3.7.17 + multibyte (mbstring) support, Perl 5.16.3, ProFTPD 1.3.4c, phpMyAdmin 4.0.4 , OpenSSL 1.0.1e, GD 2.0.35, Freetype2 2.4.8, libjpeg 8d, libpng 1.5.9, gdbm 1.8.3, zlib 1.2.3,
expat 2.0.1, Sablotron 1.0.3, libxml 2.8.0, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, mod_perl 2.0.8, FreeTDS 0.91, gettext 0.18.1.1, IMAP C- Client 2007e, OpenLDAP (client) 2.4.21, mcrypt 2.5.8, mhash 0.9.9.9, eAccelerator 0.9.6.1, cURL
7.30.0, libxslt 1.1.28, libapreq 2.12, FPDF 1.7, bzip 1.0.6, ICU4C Library 4.8.1, APR (1.4.6), APR-utils (1.5.1)
MD5 value: 5e55da6e5169efb680f36ad4f017d84c
 XAMPP
Mac OS X 1.8.3 PHP 5.5
Universal Binary 118 MB Apache 2.4.4, MySQL 5.6.11, PHP 5.5.1 & PEAR + SQLite 2.8.17 / 3.7.17 + multibyte (mbstring) support, Perl 5.16.3, ProFTPD 1.3.4c, phpMyAdmin 4.0.4 , OpenSSL 1.0.1e, GD 2.0.35, Freetype2 2.4.8, libjpeg 8d, libpng 1.5.9, gdbm 1.8.3, zlib 1.2.3,
expat 2.0.1, Sablotron 1.0.3, libxml 2.8.0, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, mod_perl 2.0.8, FreeTDS 0.91, gettext 0.18.1.1, IMAP C- Client 2007e, OpenLDAP (client) 2.4.21, mcrypt 2.5.8, mhash 0.9.9.9, eAccelerator 0.9.6.1, cURL
7.30.0, libxslt 1.1.28, libapreq 2.12, FPDF 1.7, bzip 1.0.6, ICU4C Library 4.8.1, APR (1.4.6), APR-utils (1.5.1)
MD5 value: 2ecc1bc61b31abe83cca5fac60f35741
 BitNami Add-ons: WordPress, Drupal, Joomla! And more
BitNami provides a free all-in-one tool to install Drupal, Joomla !, WordPress and many other popular open source apps on top of XAMPP. Download
BitNami XAMPP

 Step 2: Install
After downloading, use Stuffit Expander or similar software to unzip it, and double-click the pkg file:

The MacOS installer launches and asks you to click "Continue". The installer will also ask you for the administrator password. After successful installation, XAMPP for MacOS X will be installed to / Applications / xampp
This is the end. XAMPP is installed in the / Applications / XAMPP directory.

 Step 3: Get started
After the installation is complete, start XAMPP with the following command:

Log in as the system administrator root under the terminal:
sudo su

Start XAMPP with the following command:
/ Applications / XAMPP / xamppfiles / xampp start

You should see a prompt similar to the following on the screen:

Starting XAMPP for MacOS X 1.8.2 ...
XAMPP: Starting Apache with SSL (and PHP5) ...
XAMPP: Starting MySQL ...
XAMPP: Starting ProFTPD ...
XAMPP for MacOS X started.

All right. Apache and MySQL are running.

If you encounter any error messages, check the MacOS X FAQ.

 Step 4: Test
OK, this is simple, but how do you detect if all components are working properly? Just enter the following link in your browser:

http: // localhost

You should now see the XAMPP start page with links to detect the working status of the installed software and some sample programs.

Instructions for use
 Security issues (must read!)
As mentioned earlier, XAMPP is not suitable for production environments, but only for development environments. XAMPP is set to be as open as possible and provide the developer with whatever he / she wants. This is great for development environments, but can be fatal for production environments.

Here is a list of XAMPP's lack of security:

1. The MySQL administrator (root) has no password.
2. MySQL is accessible via the network.
3. ProFTPD uses "xampp" as the password for the username "nobody".
4. PhpMyAdmin can be accessed through the network.
5. MySQL and Apache run under the same username (nobody).
To fix most security weaknesses, simply execute the following command:

/ Applications / XAMPP / xamppfiles / xampp security
It enables a small security check to make your XAMPP installation more secure.

 Advanced start and stop parameters
With / Applications / XAMPP / xamppfiles / xampp, you can not only start and stop the MacOS X version of XAMPP, but also do more. Read on to see what else you can do.

Advanced start and stop parameters

Parameter
description
start
Start XAMPP.
stop
Stop XAMPP.
restart
Restart XAMPP.
reload
Apache, MySQL, and ProFTPD (if running) reload their respective configuration files
startapache
Start only Apache.
startssl
Enable Apache's SSL support. This command will continue to activate SSL support. For example, after executing this command, if you close and restart XAMPP, SSL will still be activated.
startmysql
Only start the MySQL database.
startftp
Start the ProFTPD server. Through FTP, you can upload files to your web server (username "nobody", password "xampp"). This command will continue to activate ProFTPD. For example, after executing this command, if you close and restart XAMPP, FTP will still be activated.
stopapache
Stop Apache.
stopssl
Stop Apache's SSL support. This command will continuously stop SSL support. For example, after executing this command, if you close and restart XAMPP, SSL will still be stopped.
stopmysql
Stop the MySQL database.
stopftp
Stop the ProFTPD server. This command will stop ProFTPD continuously. For example, after executing this command, if you close and restart XAMPP, FTP will still be stopped.
reloadapache
The Apache server reloads its configuration file.
reloadmysql
The MySQL database reloads its configuration file.
reloadftp
The ProFTPD server reloads its configuration file.
Example: To start an Apache server with SSL support, simply enter the following command (as root):
/ Applications / XAMPP / xamppfiles / xampp startssl
You can now access the Apache server via https: // localhost in SSL.

 What is there?
Important files and directories

File Directory
use
/ Applications / XAMPP / xamppfiles / bin
XAMPP command library.
For example / Applications / XAMPP / xamppfiles / bin / mysql executes the MySQL monitor.
/ Applications / XAMPP / htdocs /
Apache document root directory.
This is the web document location
/Applications/XAMPP/etc/httpd.conf
Apache configuration file.
/Applications/XAMPP/etc/my.cnf
MySQL configuration file.
/Applications/XAMPP/etc/php.ini
PHP configuration file.
/Applications/XAMPP/etc/proftpd.conf
ProFTPD configuration file.
 Stop XAMPP
To stop XAMPP, just enter the following command:

/ Applications / XAMPP / xamppfiles / xampp stop
You should now see:

Stopping XAMPP for MacOS X 1.8.2 ...
XAMPP: Stopping Apache with SSL ...
XAMPP: Stopping MySQL ...
XAMPP: Stopping ProFTPD ...
XAMPP stopped.
Then the MacOS X version of XAMPP stopped working.

 Uninstall
To uninstall XAMPP, just enter the following command in the terminal as administrator root:

sudo rm -rf / Applications / xampp
Uninstallation is complete. :)

 Thanks
We thank Kai "Oswald" Seidler, Kay Vogelgesang, and the entire Apache Friends team, of course It also includes our users who helped us make Apache Friends today.

Kristian Marcroft
February 2005
 

Join us on
Last Modified: Thu Aug 1 20:15:59 2013


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.