2016年10月28日金曜日

awsにおけるcakephpの設定

git cloneであるcakephp2のプロジェクトをawsのweb rootに追加したが、top以外のところにアクセスできない。以下のメッセージがでてきている。

URL rewriting is not properly configured on your server.

とりあえずcakephpのマニュアルを参照、httpd.conf(/etc/httpd/confの下)を一行修正したところ、上記メッセージが消えてないが、アクセスできるようになった


<Directory "/var/www/html">
    AllowOverride All #none->All
</Directory>

1 件のコメント:

  1. cd html

    sudo yum install git

    git clone {gitの場所}

    ls
    表示

    cd {フォルダ名}

    cd {app}

    mkdir tmp

    chmod -R {777} tmp

    cd {config}

    vi database.php
    編集。接続先とか。

    返信削除