apache2.4に上げた際に困ったのでメモ
$ httpd -v
Server version: Apache/2.4.16 (Amazon)
Virtualhostの設定
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/home/ec2-user/hoge/public"
<Directory "/home/ec2-user/hoge/public">
Require all granted
Allow from All
DirectoryIndex index.php index.html index.htm
</Directory>
ServerName hoeg.com
ErrorLog logs/hoge.com-error_log
CustomLog logs/hoge.com-access_log common
</VirtualHost>
timezoneの設定
/etc/php.iniの以下の所を編集
date.timezone ="Asia/Tokyo"
リスタート
sudo service httpd restart
参考:http://itrestaurant.hatenablog.com/entry/2012/12/08/090230