2013-02-05 29 views
1

我开始玩Zend FrameWork,但是我遇到了麻烦。我尝试按照超级指南From Zero To Zend Framework in 10 minutes,但它没有任何结果。无法访问Linux上的本地LAMP服务器上的索引Mint

我也渐渐认为annyoing消息

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName两次。

而我设法修复that,这是我的本地服务器的样子。 enter image description here

这就是我的/etc/hosts的样子。

127.0.0.1 localhost 
127.0.0.1 prueba.local 
127.0.1.1 dradis 

# The following lines are desirable for IPv6 capable hosts 
::1  ip6-localhost ip6-loopback 
fe00::0 ip6-localnet 
ff00::0 ip6-mcastprefix 
ff02::1 ip6-allnodes 
ff02::2 ip6-allrouters 

而且,根据1,我的虚拟主机配置应该如何。这是在/sites-avaliable,但符号链接到/sites-enabled

prueba.local

<VirtualHost *:80> 
    ServerName prueba.local 
    DocumentRoot /home/seba/solartekka/test/prueba/public 
</VirtualHost> 

/home/seba/solartekka/test/prueba是在那里我有我的项目。

我已经完成了两天的战斗,我的精神已经破灭。有没有人有可能发生什么的想法?

我试着给我提供尽可能多的相关信息,但如果您需要更多,我会高兴地提供它。

谢谢!

+1

有时,我遇到了权限问题。作为一个测试,尝试设置'chmod 0777 public/index.php'。此外,您可以尝试直接浏览到“http:// prueba.local/index.php”。 –

+0

就是这样! index.php! Weid。谢谢,不幸的是,我可以接受你的评论作为答案。 – Sebastialonso

+1

我会将其添加为答案。 ;-)保持精神状态。 ZF有时会感觉像是陡峭的爬坡,但这是一个很棒的框架--ZF2更好 - 我从中学到了很多东西。 –

回答

1

有时,我遇到了权限问题。作为测试,请尝试设置chmod 0777 public/index.php

此外,您可以尝试直接浏览http://prueba.local/index.php

1

你应该看看Apache日志文件的消息,他们会给你一个提示:

tail /var/log/apache2/error.log 

常见的问题是缺少的Zend库。

尝试将此代码添加到您的虚拟主机文件:

<Directory "/home/seba/solartekka/test/prueba/public/"> 
     Options Indexes FollowSymLinks MultiViews 
     AllowOverride all 
     Order allow,deny 
     Allow From all 
</Directory> 

不要忘了重新启动Apache。

+0

虚拟主机文件已被使用。 Apache重新启动。没有变化。 这会出现在error.log中: '[Tue Feb 05 20:48:32 2013] [error] [client 127.0.0.1]尝试服务目录:/ home/seba/solartekka/test/prueba/public /' 重复至少4次。 – Sebastialonso

+1

看看:http:// serverfault。“/ home/seba/solartekka/test/prueba/public是我拥有我的项目的地方。”#:388378/what-attempt-to-serve-directory-error-means-in-apache-log – nataliastanko

+0

- 您的项目应该位于/ home/seba/solartekka/test/prueba/public有关vhost内容的/ home/seba/solartekka/test/prueba /和index.php。 – nataliastanko

相关问题