各種設定ファイルの場所

apacheの設定

$ /opt/local/apache2/conf/httpd.conf
主な追加箇所
LoadModule php5_module        modules/mod_php54.so

AddDefaultCharset utf-8
<IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
</IfModule>
Include conf/extra/mod_php54.conf

AliasMatch ^/phpmyadmin(?:/)?(/.*)?$ "/opt/local/www/phpmyadmin$1"

<Directory "/opt/local/www/phpmyadmin">
    Options -Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    LanguagePriority en de es fr ja ko pt-br ru
    ForceLanguagePriority Prefer Fallback
</Directory>

PHPの設定

$ /opt/local/etc/php54/php.ini
主に設定する箇所
date.timezone = "Asia/Tokyo"

pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock

mysql.default_socket = /opt/local/var/run/mysql55/mysqld.sock

mysqli.default_socket = /opt/local/var/run/mysql55/mysqld.sock

phpMyAdminの設定

$ /opt/local/www/phpmyadmin/config.sample.inc.php