使图像出现在Symfony 1.4.8中出现错误 [英] Error getting images to show up in Symfony 1.4.8
问题描述
我下载了Symfony 1.4.8的沙盒,并将文件复制到我的网络服务器。不幸的是,当我尝试访问 / symfony / sf_sandbox / web /
(我安装它)时,我得到以下内容:
看起来像图像不显示。根据文本:
如果您在此页面中看不到任何图像,则可能需要配置Web服务器,以使其能够访问
symfony_data / web / sf /
目录。
但是,当我尝试要找到上面提到的文件夹,它不存在:
sf_sandbox
web
css /
图像/
js /
上传/
frontend_dev.php
index.php
robots.txt
如您所见, web /
下没有 sf /
目录。我在做什么错?
注意:我正在使用Apache在Ubuntu 10.04 64位上安装。
所有的图像都位于Symfony源目录中。
我将尝试在名为 sf 的网络文件夹中创建一个符号链接,指向以下内容:
lib \\ vendor \symfony\data\web\sf
应该有权访问所需的图像。
Note: It was tough deciding whether this belonged here or ServerFault, but it seemed like a programming problem, so if it's out of place, feel free to migrate it.
I downloaded the sandbox of Symfony 1.4.8 and copied the files to my webserver. Unfortunately, when I try to access /symfony/sf_sandbox/web/
(where I installed it), I get the following:
It seems like the images aren't showing. According to the text:
If you see no image in this page, you may need to configure your web server so that it gains access to the
symfony_data/web/sf/
directory.
However, when I try to locate the folder referenced above, it does not exist:
sf_sandbox web css/ images/ js/ uploads/ frontend_dev.php index.php robots.txt
As you can see, there is no sf/
directory under web/
. What am I doing wrong?
Note: I am installing this on Ubuntu 10.04 64-bit using Apache.
All the images are located in the Symfony source directory.
I would try creating a symbolic link in the web folder called sf pointed to the following: lib\vendor\symfony\data\web\sf
It should have access to the needed images at that point.
这篇关于使图像出现在Symfony 1.4.8中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!