[PHP] OSX Mountain Lion (Apache, PHP)
$ httpd -v
$ php -v
$ sudo apachectl start
$ sudo apachectl stop
$ vi /etc/apache2/httpd.conf
DocumentRoot "/Library/WebServer/Documents"
LoadModule php5_module libexec/apache2/libphp5.so
$ cp /etc/php.ini.default /etc/php.ini
$ chmod 644 /etc/php.ini
#MYSQL 연동
$ vi /etc/php.ini
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mysqli.dll
주석해제
---------------------------------------------
아파치 웹루트 변경
vi /etc/apache2/httpd.conf
DocumentRoot "/Users/bookpro/Sites"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
sudo apachectl restart
댓글