2

我正在尝试安装工艺 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上面的一个目录,不明白为什么找不到它。

这是我的 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 回答