Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Ubuntu上缺少CakePHP元素_Git_Ubuntu_Cakephp_Project - Fatal编程技术网

Git Ubuntu上缺少CakePHP元素

Git Ubuntu上缺少CakePHP元素,git,ubuntu,cakephp,project,Git,Ubuntu,Cakephp,Project,我刚刚安装了一个Ubuntu18.04服务器,在上面安装了Apache和PHP。我想运行一个CakePHP项目,所以我将repo从GitLab克隆到/var/www/html/ 我已经安装了composer,然后在上面的路径中运行composer安装。我修改了/etc/apache2/sites enabled/000 default.conf,为DocumentRoot(/var/www/html/playgrounds/webroot)提供了正确的路径,启用了apache2重写,然后重新启动

我刚刚安装了一个Ubuntu18.04服务器,在上面安装了Apache和PHP。我想运行一个CakePHP项目,所以我将repo从GitLab克隆到
/var/www/html/

我已经安装了composer,然后在上面的路径中运行
composer安装。我修改了
/etc/apache2/sites enabled/000 default.conf
,为DocumentRoot(
/var/www/html/playgrounds/webroot
)提供了正确的路径,启用了apache2重写,然后重新启动了apache服务器

当我尝试访问URL时,遇到以下错误:

(缺少元素文件)

所有元素都在那里,没有遗漏任何东西。我怎样才能解决这个问题


谢谢。

输入我的“default.ctp”布局。将元素调用为
$this->element(“页面/主菜单”)
,将其更改为
$this->element(“页面/主菜单”)
修复了它。

混乱。如果通过composer安装,为什么需要从gitlab克隆repo?我已经使用git clone从gitlab克隆了项目-
composer安装在此之后是必需的。