2

Craft cms をインストールしようとしていますが、次のエラーが表示されます

Could not find your craft/ folder. Please ensure that $craftPath is set correctly in /var/www/index.php

これは、私のindex.phpフォルダーがどのように見えるかです

<?php

// Path to your craft/ folder
$craftPath = '../craft';

// Do not edit below this line
$path = rtrim($craftPath, '/').'/app/index.php';

if (!is_file($path))
{
        exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__);
}

require_once $path;

クラフト フォルダは、www の 1 つ上のディレクトリにあり、なぜ見つからないのかわかりません。

これが私のapache2.confファイルの一部であり、違いがあると思います.ファイルは大きく、nanoで全体をコピーする方法がわかりません.

Include /etc/phpmyadmin/apache.conf

DocumentRoot /var/www


ServerRoot "/etc/apache2"

ここに画像の説明を入力

4

2 に答える 2

0

これを使用してみてください:

$craftPath = './craft';

それ以外の

$craftPath = '../craft';
于 2014-02-16T03:07:21.390 に答える
0

ディレクトリへのアクセス権がない可能性があります。ディレクトリの権限を変更してみてください。

chmod a+x ../craft

それがうまくいかない場合は、それをwwwフォルダに移動して設定$craftPathするだけです'craft'

于 2014-02-16T03:33:42.413 に答える