PHP5 設定

/etc/php5/apache2/php.ini をバックアップしたら

$ sudo gedit /etc/php5/apache2/php.ini

267, 270行目

max_execution_time = 30     ; Maximum execution time of each script, in seconds

memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)

を以下に変更

max_execution_time = 120     ; Maximum execution time of each script, in seconds

memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)

1158, 1163行目

;mbstring.language = Japanese

;mbstring.internal_encoding = EUC-JP

を以下に変更

mbstring.language = Japanese

mbstring.internal_encoding = utf8