Results 1 to 2 of 2

Thread: ZendFramework 2 on openSUSE

  1. #1
    Join Date
    May 2014
    Location
    Pécs, Hungary
    Posts
    5

    Default ZendFramework 2 on openSUSE

    Hi there,

    I've apache2 problem again.

    I want to create a new ZF 2 application in my desktop PC (openSUSE 13.2 is installed). I saw some instruction on the ZF's webpage, but if I follow the documentation I got an "Access forbidden!" error (403).
    I installed the yast2-httpd-server package to manage apache2 (v2.4.10) and I created one new vhost with it. It work for a little, but mod_rewrite was disabled and I got error again (404). After this I enable the rewrite module. If I set AllowOverride attribute to "FileInfo" the full webpage doesn't work again (403).

    Here is my current .conf file:
    Code:
    <VirtualHost *>
     DocumentRoot /home/richard/Projects/project_name/public
     ServerName project_name.dev
     ServerAdmin richard@localhost
     <Directory /home/richard/Projects/project_name/public>
      AllowOverride None
      Require all granted
     </Directory>
    </VirtualHost>
    It's created with Yast2, but the frontpage works just now, subpages gain 404 again.

    In the error.log I've a lot of line with:
    Code:
    [Thu Mar 05 23:13:31.695186 2015] [authz_core:error] [pid 25695] [client 127.0.0.1:59161] AH01630: client denied by server configuration: /home/richard/Projects/project_name/public/
    How can I configure apache2 to work with Zend Framework 2?
    If you need more information from either config file just say it.

  2. #2
    Join Date
    May 2014
    Location
    Pécs, Hungary
    Posts
    5

    Thumbs up Solved

    It's solved with this configuration:

    Code:
    <VirtualHost *>
     DocumentRoot /home/richard/Projects/project_name/public
     ServerName project_name.dev
     ServerAdmin richard@localhost
     <Directory /home/richard/Projects/project_name/public>
      AllowOverride All
      Require all granted
      Order allow,deny
      Allow from all
      Options All
     </Directory>
    </VirtualHost>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •