1. activate web share
2. test apache by using test.html
- computer doc root /Library/WebServer/Documents/
- current user doc root ~/Sites/
3. test php by using phpinfo()
4. install MySQL
5. config MySQL
- /usr/local/mysql/bin/mysqladmin -u root password
- /usr/local/mysql/bin/mysqladmin -u root -p password
- sudo chmod 777 php.ini
- edit /etc/php.ini (using what ever editor)
-> session.auto_start = 1
-> session.save_path = /tmp
-> mysql.default_socket = /tmp/mysql.sock
-> mysqli.default_socket = /tmp/mysql.sock
6. copy phpMyAdmin to computer doc root
7. config apache alias
- sudo chmod 777 httpd.conf
- edit /etc/apache2/httpd.conf
-> Alias /artmate "/<folder>"
-> <Directory "/<folder>">
-> Options Indexes FollowSymLinks MultiViews
-> AllowOverride None
-> Order allow,deny
-> Allow from all
-> </Directory>
- sudo chmod 644 httpd.conf