在安装过程结束时,按照这个文档http://docs.sulu.io/en/latest/book/getting-started.html,我得到了以下错误:
Target: cache
cache:clear ({"--no-optional-warmers":true,"--no-debug":true,"--no-interaction":true})
// Clearing the admin cache for the dev environment with debug true
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove directory "/home/vagrant/Code/sulu/var/cache/admin/de~/doctrine": .
sulu:build [-D|--nodeps] [--destroy] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--] <command> [<target>]在此之前,我试图使用以下内容设置文件权限:
HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var/cache var/logs var/uploads var/uploads/* web/uploads web/uploads/* var/indexes var/sessions
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var/cache var/logs var/uploads var/uploads/* web/uploads web/uploads/* var/indexes var/sessions还犯了以下错误:
setfacl: web/uploads: Operation not supported
setfacl: web/uploads/media: Operation not supported
setfacl: web/uploads/media: Operation not supported我的主机操作系统:Ubuntu16.04 Vagrant : v.1.9.3 VirtualBox : v.5 Homestead: v.5.2.1
有人成功地安装了Sulu吗?解决这些问题的选择是什么?Sulu看起来很有希望,但不幸的是,我无法在本地安装它,但仍有很多尝试。
更新在丹尼尔评论后,我尝试了其他方式安装Sulu,但在安装结束时再次出错:执行builders ==================
Target: cache
cache:clear ({"--no-optional-warmers":true,"--no-debug":true,"--no-interaction":true})
// Clearing the admin cache for the dev environment with debug true
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove directory "/home/vagrant/Code/sulu/app/cache/admin/de~/annotations": . 打开浏览器中的Symfony\Component\Debug\Exception\FatalThrowableError::致命错误:对/home/vagrant/Code/sulu/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Twig/Content/ContentPathTwigExtension.php中null的成员函数getLocale()的未登录的test.app调用,在第70行中,对/home/vagrant/Code/sulu/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Twig/Content/ContentPathTwigExtension.php中的成员函数getLocale()的调用
尝试手动删除缓存文件夹-相同的错误。所有控制台命令都正常工作。有什么想法吗?
我有一个良好的经验,安装其他基于Symfony的应用程序下的家园和一切顺利(Sylius,eZ等)。所以我很惊讶..。
发布于 2017-05-15 15:48:46
为了解决这个问题,你需要从主机上删除这个文件夹,因为它是前一个尝试设置东西的过程中的一个工件,它是上帝模式的,由一个已经不复存在的全能实体创建。
当时应该工作,最近遇到了同样的问题。
如果您使用的是宅基地改进,请使用内置的"sulu“项目类型来进行良好的Nginx自动设置:
sites:
- map: homestead.app
to: /home/vagrant/Code/Project/web
type: suluhttps://stackoverflow.com/questions/43829144
复制相似问题