LoginSignup
0
0

More than 5 years have passed since last update.

FuelPHPをec2に導入する

Last updated at Posted at 2015-11-28

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0