發表文章

目前顯示的是 1月, 2015的文章

OS X Yosemite 10.10.1 + Apache + PHP + MariaDB

圖片
作業系統:Mac OS X Yosemite 10.10.1 系統已經內建 Apache 和 PHP Apache $sudo apachectl start PHP 編輯Apache設定檔 $sudo vim /etc/apache2/httpd.conf 下面是放置網頁的路徑,可以修改至/Users/使用者名稱/網頁資料夾 DocumentRoot "/Library/WebServer/Documents" <Directory "/Library/WebServer/WebSites"> 把#拿掉 LoadModule php5_module libexec/apache2/libphp5.so 產生php設定檔 $sudo cp /etc/php.ini.default /etc/php.ini MariaDB 首先要已經安裝好homebrew $brew doctor $brew update $brew info mariadb: stable 10.0.15 (bottled) http://mariadb.org/ Conflicts with: mysql, mysql-cluster, mysql-connector-c, percona-server Not installed From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/mariadb.rb ==> Dependencies Build: cmake ✘ Required: openssl ✔ ==> Options --enable-local-infile Build with local infile loading support --universal Build a universal binary --with-archive-storage-engine Compile with the ARCHIVE storage engine enabled --with-bench Keep benchmark app when installing --with-blackh...