XAMPP: install Apache + PHP + MySQL environment under MACOSX

Source: Internet
Author: User
Tags website server
XAMPPforMacOSX is an AppServ in a Windows environment. XAMPP is a non-profitable release case of ApacheFriends. It aims to promote ApacheWebServer, therefore, this cross-platform fast site package was developed. The supported operating systems of XAMPP include Linux, MACOSX, Windows, and Solaris. In XAM

XAMPP for Mac OS X is an AppServ in a Windows environment. XAMPP is a non-profit release case of Apache Friends. It aims to promote ApacheWeb Server, therefore, this cross-platform fast site package was developed. The supported operating systems of XAMPP include Linux, mac OS X, Windows, and Solaris. In XAM

XAMPP for Mac OS X

Similar to AppServ in a Windows environment. XAMPP is a non-profit release case of Apache Friends. It aims to promote Apache Web Server, therefore, this cross-platform fast site package was developed. The supported operating systems of XAMPP include Linux, mac OS X, Windows, and Solaris. The XAMPP for Mac OS X version contains the following content: apache, MySQL, PHP, PEAR, SQLite, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, zlib, Ming, Webalizer, mod_perl, eAccelerator, phpSQLiteAdmin.

The official statement made by XAMPP is as follows:

XAMPP for Mac OS x is the simplest, most practical and most complete webserver solution for Mac OS X. the distribution provided des 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.

-Cited from XAMPP-

The root Wikipedia naming method for XAMPP is as follows:

  • X (meaning cross-platform)
  • APache
  • MYSQL
  • PHP
  • PErl
OK ~ In the following example, the younger brother will introduce the XAMPP Security Mode and basic school:

Step 1: lower limit

First, go to the next release location of XAMPP-MacOSX to download the latest release version. The case size is about 91 mb! Younger brother recently under the release version is: xampp-macosx-0.7.3.dmg

Step 2: Security

After the download is complete, open the xampp-macosx-0.7.3.dmg, XAMPP has packed all the related programs in XAMPP for MacOS X. in pkg, after the installation is completed, you can directly install it with Mac OS X Installer. Unlike AppServ, XAMPP does not have any "preset" steps in the security process. The entire security period is less than a minute! Think about it. Using this speed to build a website server is faster! (Of course! After the security protection is complete, in addition to the direct modification of the Setting method, XAMPP also provides a friendly interface to introduce how users can set up .)

Step 3: Dynamic

After the installation is complete, XAMPP sets the security path to the following:

1
/Applications/xampp

Using custom XAMPP Control Panel. app. The following plane appears:

XAMPP Control Panel

Select All Components: Start and press confirm in the region of XAMPP. You can activate all services. Next, the lower left corner shows the following messages:

12345
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.

Step 4: renew instances

Open your frequently-used browser and access the following website:

1
http://localhost/

Then, we can see the following hidden area.

Simplified table version (Dashboard)

The previous Dashboard on the left side of the preceding figure contains three parts:

  1. XAMPP:

    This section contains the following links:

    • Welcome: this is the starting face of XAMPP.
    • Status: Running installed instances.
    • Security: You can check some known Security issues after XAMPP Security.
    • Documentation.
    • Components: All Components can be added here. (Apache, MySQL, PHP, Perl, ProFTPD, phpMyAdmin, OpenSSL, Freetype, libjpeg, libpng, gdbm, zlib, expat, ming, Sablotron, libxml2, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, imap c-Client, OpenLDAP (client lib), eAccelerator, mcrypt, mhash, SQLite, cURL, ZZIPlib, libxslt, phpSQLiteAdmin, FPDF)
  2. Demos:

    XAMPP provides some simple example programs, including CD Collection, Biorhythm, Guest Book, Instant Art, Flash Art, phpinfo (), and Phone Book. The original scripts of these applets can be found in/Applications/xampp/xamppfiles/htdocs/xampp/object files. At this point, the younger brother will not think much about it. Please do it yourself! ^ _____ ^

  3. Tools:

    XAMPP provides three-pronged server management tools, namely phpMyAdmin, phpSQLiteAdmin, and webalizer. There are not many of these three tools to introduce. Just click on their official website to find many resources!

Okay! In fact, when you see the following interface in the Status, it indicates that your Apache server, MySQL database, and PHP are running normally! ^ ______ ^

Apache server, MySQL database, and PHP are running normally!

Next, there are some security issues that need to be solved! In terms of XAMPP for Mac OS X, we mentioned A pair of Read Me: A matter of security (A MUST READ !). The statement states:

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 cocould be fatal.

-Cited from XAMPP-

The security issues of these XAMPP are as follows:

  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 ).

The method to resolve this issue of security is:

  1. Start your Terminal and run the following command to log on to the system administrator:

    1
    sudo su

  2. Then, merge:

    1
    /Applications/XAMPP/xamppfiles/xampp security

  3. Next, XAMPP: quick security check...

    You only need to follow the instructions of the XAMPP settings to complete the school.

After all the modifications are completed, go to the XAMPP Security Detection page and confirm that all Security Status of your XAMPP Installation isSECUREYou can. See the following example:

Set

Okay! After completing the above steps, the basic Apache + MySQL + PHP environment is almost complete! If you have other special requirements that require renewal, you can go to the/Applications/xampp/etc directory, where there are many settings (such as php. ini, httpd. conf ...) Users can be provided directly for correction.

Finally, fill in the network category (DocumentRoot) set by XAMPP

1
DocumentRoot "/Applications/xampp/xamppfiles/htdocs"

That is to say, in the future, all website and program cases will be under this category!

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.