dtuzjzs3853 2016-10-04 11:08
浏览 29

zend docroot不会改变

Just now I have start with zend framework, I have succesfully install zend framework, I followed the quick start guide I am stuck with doc root.

Short description of what I have done

1) Install lamp and zend framework

2) cd /var/www

3) zf create project quickstart

4) cd quickstart/library/

5) ln -s /usr/share/php/libzend-framework-php/Zend .

6) vi /etc/apache2/apache2.conf

<VirtualHost *:80>
    ServerName zend.gworks.mobi
    DocumentRoot /var/www/quickstart/public

    SetEnv APPLICATION_ENV "development"

    <Directory /var/www/quickstart/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

note: also I tried with /etc/apache2/sites-enabled/000-default.conf but no luck

7) service apache2 restart

But still my browser point /var/www/html/index.html not /var/www/quickstart/public/index.php, I'm out of ideas. can anyone help me what I miss?


Solution (update)

I did right. when I restart vagrant, document root problem got solved, I don't know why it is not work previosly. but it throws .htaccess: Invalid command 'RewriteEngine' then I run this command sudo a2enmod rewrite && sudo service apache2 restart now it shows zend framework welcome page

  • 写回答

1条回答 默认 最新

  • dporb84480 2016-10-04 11:29
    关注

    You need to edit /etc/hosts file and add below line then do apache2 restart..

    127.0.0.1 zend.gworks.mobi

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制