简体   繁体   English

如何在Ubuntu 14.04上安装Zend Framework

[英]How to install zend framework on ubuntu 14.04

I have install zend framework using skeleton application on my machine ie ubuntu 14.04 LTS. 我已经在机器上使用骨架应用程序安装了zend框架,即ubuntu 14.04 LTS。 I follow following steps. 我遵循以下步骤。

  1. create application base folder and run the following commands. 创建应用程序基本文件夹并运行以下命令。
  2. cd/myproject/dir cd / myproject /目录
  3. git clone git://github.com/zendframework/zendSkeletonApplication.git git clone git://github.com/zendframework/zendSkeletonApplication.git
  4. cd ZendskeletonApplication cd Zendskeleton应用程序
  5. php composer.phar self-update php composer.phar自我更新
  6. php composer.phar install php composer.phar安装
  7. using the apache web server set virtual host 使用apache网络服务器设置虚拟主机

     <VirtualHost *:80> ServerName zf2-tut.localhost DocumentRoot /var/www/html/zf2-tut/ZendSkeletonApplication/public SetEnv APPLICATION_ENV "development" <Directory /var/www/html/zf2-tut/ZendSkeletonApplication/public> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> 
  8. after i edit hosts page from etc folder and add there 127.0.0.1 zf2-tut.localhost localhost this line. 在我从etc文件夹编辑主机页面并在其中添加127.0.0.1 zf2-tut.localhost localhost之后

  9. at last run application as http://zf2-tut/localhost but it shows uable to connect server. 最后以http:// zf2-tut / localhost运行应用程序,但它显示了可以连接服务器的能力。

Tell me Where it go wrong. 告诉我哪里出了问题。
Help 救命

It' not ZF-related problem. 这不是与ZF相关的问题。

You have added zf2-tut.localhost to the hosts file, but you are trying to access it with http://zf2-tut/localhost instead of http://zf2-tut.localhost . 您已经将zf2-tut.localhost添加到hosts文件,但是您尝试使用http://zf2-tut/localhost而不是http://zf2-tut.localhost

Can you make sure that the domain is consistent - including webserver's vhost. 您可以确保域一致-包括Web服务器的虚拟主机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM