Run PHP
Install MySQL
Using phpMyAdmin
Configure the MCrypt extension library of PHP
Set up a virtual host
Start Apache
There are two ways:
Open system preferences->; "* * * share"->; "Network sharing".
Open the terminal, and then (note: the password required by sudo is the password of the system root account).
Run "sudo apachectl start", and then enter the account password, so Apache will run.
Run "sudo Apache CTL-v" and you will see the Apache version number in Mac OS X 10.6.3:
Server version: Apache/2.2. 14 (Unix)
Server manufacturing: feb11201014: 40: 31
Enter "in the browser like this.
document root "/usr/docs/dummy-host . example . com "
Server name dummy-host.example.com
error log "/private/var/log/Apache 2/dummy-host . example . com-error _ log "
CustomLog "/private/var/log/Apache 2/dummy-host . example . com-access _ log " common
& lt/virtual host & gt;
& ltvirtual host *:80 & gt;
Server Management webmaster@dummy-host2.example.com
document root "/usr/docs/dummy-host 2 . example . com "
Server name dummy-host2.example.com
error log "/private/var/log/Apache 2/dummy-host 2 . example . com-error _ log "
CustomLog "/private/var/log/Apache 2/dummy-host 2 . example . com-access _ log " common
& lt/virtual host & gt;
In fact, these two virtual hosts do not exist. If no other virtual host is configured, the following prompt may appear when accessing the local host:
forbidden
You don't have permission to access /index.php on this server.
The easiest way is to add a # in front of each line and comment it out, so that it can be used as a reference without causing other problems.
Add the following configuration
The code is as follows:
& ltvirtual host *:80 & gt;
Document root "/ User/[User Name]/Site "
ServerName website
error log "/private/var/log/Apache 2/sites-error _ log "
CustomLog "/private/var/log/Apache 2/sites-access _ log " common
& lt/virtual host & gt;
Save to exit and restart Apache.
Run "sudo vi /etc/hosts", open the configuration file of the host, and add "127.0.0. 1 sites", so that the virtual host of the site can be configured, so that it can be accessed with "http://sites", and the content and "http://localhost"
This configuration is realized through the native support of Mac OS X 10.6.3. You can also refer to Mac OS X Leopard: configuring Apache, PHP, SQLite, MySQL and phpmyadmin (I) and Mac OS X Leopard: configuring Apache, PHP, SQLite, MySQL and phpmyadmin (II).
Kindergarten class work plan 1
I. Guiding ideology
Children are the future and hope of the country, and early childhood is the initial period