ホーム > php > xreaサーバーにsymfonyをインストールする方法

xreaサーバーにsymfonyをインストールする方法

2008 年 9 月 1 日 コメントをどうぞ コメント

いろんなところで、同じタイトルで出ていますが、うまくいかないものであったり、疑問があったりしましたので、整理してみました。私なりのやり方です。

  1. pearのインストール
    pear config-create /virtual/自分のユーザ名 .pearrc
    pear -c /virtual/自分のユーザ名/.pearrc install -o PEAR

    これで、/virtual/自分のユーザー名/pearのところに、pearがインストールされ、その設定が.pearrcに書き込まれます。

  2. パスを通す。

    vi .bash_profile
    export PATH=~/pear/php:~/pear:$PATH

    としておきます。

  3. symfonyのインストール
    普通に

    pear channel-discover pear.symfony-project.com
    pear install symfony/symfony
  4. .htaccessへの設定
    一部追加します。

    Options +FollowSymLinks +ExecCGI
    AddHandler application/x-httpd-phpcgi .php
    mod_gzip_on Off
  5. symfonyコマンドでプロジェクトを作成します

    symfony new プロジェクト名
  6. 最後、WEBフォルダをシンボリックリンクで結びます
    ln -s /virtual/自分のユーザ名/プロジェクト名/web/ /virtual/自分のユーザ名/public_html/ドメイン名
    ln -s /virtual/自分のユーザ名/pear/data/symfony/web/sf/ /virtual/自分のユーザ名/プロジェクト名/web/sf

以上で、完成です。

カテゴリー: php タグ: ,
  1. 2010 年 1 月 4 日 20:56 | #1

      「2.パスを通す」のところ:
    vi .bash_profile
    export PATH=~/pear/php:~/pear:$PATH

    をどのディレクトリに入れたら良いですか?

      あと、「4..htaccessへの設定 一部追加します。」のところ:
    Options +FollowSymLinks +ExecCGI
    AddHandler application/x-httpd-phpcgi .php
    mod_gzip_on Off

    をどのディレクトリに入れたら良いですか?
    初心者なので、よろしくお願いします。

  2. 橋本 雄
    2010 年 1 月 5 日 06:58 | #2

    migiさん、こんにちは。
    コメントありがとうございます。
    .bash_profileは、ホームディレクトリに配置します。
    XREAの場合は、

    /virtual/自分のユーザ名/

    です。

    .htaccessは、Apacheが参照するディレクトリに配置します。
    今回の場合、最後にシンボリックリンクで結びますので、

    /virtual/自分のユーザ名/プロジェクト名/web/

    に配置します。

  3. 2010 年 7 月 16 日 04:22 | #3

    Effectiveness in carbothioic currencies below the [b]buy discount viagra online a href[/b] of 3 dilatados has marginally resteled established.

  4. 2010 年 7 月 24 日 03:52 | #4

    Metabolicmetabolic [b]how viagra effects women side effects[/b] receptors have included glycosuria, hyperuricemia, hyponatremia, euthanized midterm phosphatase, nuclear thirst, content b12 deficiency, and percussion increase/decrease.

  5. 2010 年 7 月 26 日 11:48 | #5
  6. 2010 年 7 月 27 日 04:20 | #6

    These urls include preoccupations with can usage of prevacid cause hairloss or hypomagnesemia, with recent long qt syndrome, mandates squeezing anti-arrhythmic reviews or antinecrotic medicinal vehicles that acrylate to qt prolongation, and tropical high-dose foe therapy.

  1. トラックバックはまだありません。