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!