Graphic explanation of PHP development environment built under MacbookPro

Source: Internet
Author: User
Tool raw material Apache2.4.16PHPMacbookProMySQL5.7 start Apache first introduces several commands to start Apache service sudoapachectlstart restart Apache service sudoapachectlrestart stop Apach

The first time I learned how to build a PHP development environment on a Macbook, I recorded it and provided a reference for other students.

Tools/raw materials
  • Apache 2.4.16

  • PHP

  • Macbook Pro

  • For MySQL 5.7

Start Apache

First introduce several commands
// Start the Apache service
Sudo apachectl start
// Restart the Apache service
Sudo apachectl restart
// Stop the Apache service
Sudo apachectl stop
// View the Apache version
Httpd-v

Mac OS comes with Apache. you only need to start Apache.
1. open the terminal and enter the command: sudo apachectl start

Install MySQL and use MySQL Workbentch to manage databases on mac

The above is a detailed description of the text set up in the PHP development environment under the Macbook Pro. For more information, see other related articles in the first PHP community!

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.