C
C
Chvalov2015-01-22 01:06:34
Apache HTTP Server
Chvalov, 2015-01-22 01:06:34

How to migrate project to ZF2 on ubuntu, 403 error?

A project from xampp that was raised on win 7 was transferred to ubuntu
But when you enter the address, 403 appears

Forbidden

You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at ovis-control.local Port 80

Here are my configs:
zf2test.local.conf
<VirtualHost *:80>
 ServerName zf2test.local
 ServerAlias www.zf2test.local
 ServerAdmin [email protected]
 DocumentRoot /var/www/zf2test.local/public_html/public

 <Directory "/var/www/zf2test.local/public_html/public">
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
 </Directory>
</VirtualHost>

In /etc/php5/apache2/php.ini Specified include
include_path = ".:/usr/share/php://var/www/zf2test.local/public_html/vendor/zendframework/zendframework/library"

mod_rewrite Enabled, .htaccess is in the public folder What's
the problem ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav, 2015-01-22
@hedint

I have never configured ZF2 in my life, and have not touched Apache for more than three years, but they have a slightly different config in the manual

<VirtualHost *:80>
     ServerName zf2-tutorial.localhost
     DocumentRoot /path/to/zf2-tutorial/public
     SetEnv APPLICATION_ENV "development"
     <Directory /path/to/zf2-tutorial/public>
         DirectoryIndex index.php
         AllowOverride All
         Order allow,deny
         Allow from all
     </Directory>
 </VirtualHost>

from here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question