Answer the question
In order to leave comments, you need to log in
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
<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>
include_path = ".:/usr/share/php://var/www/zf2test.local/public_html/vendor/zendframework/zendframework/library"
Answer the question
In order to leave comments, you need to log in
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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question