Strona 1 z 1

Konfiguracja Apache2 dla Zend Framework

: 27 lutego 2012, 21:26
autor: istrd
Witam,
Mam problem zainstalowałem Apache2 na Debianie wrzuciłem projekt Zend Framework ale nie mogę wejść w żaden kontroler lub akcję. Wcześniej używałem tego projektu też na Debianie i Apache2 i wszystko działało. Właściwie działa tylko pierwsza strona pod adresem localhost/projekt/public/ gdy dodam już localhost/projekt/public/index dostaję

Kod: Zaznacz cały

 [color=#000000][font=Times New Roman]Not Found[/font][/color][color=#000000][font=Times New Roman]The requested URL /portfolio/public/index/ was not found on this server. 
Poniżej podaję moją konfigurację Apache2 oczywiście Mod_Rewrite włączyłem.

Kod: Zaznacz cały

cat /etc/apache2/sites-enabled/000-default [/font][/color]
<VirtualHost *:80>
ServerAdmin webmaster@localhost


DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>


ErrorLog ${APACHE_LOG_DIR}/error.log


# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn


CustomLog ${APACHE_LOG_DIR}/access.log combined


    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>


</VirtualHost>



[color=#000000][font=Times New Roman]

Kod: Zaznacz cały

root@debian:/etc/apache2/sites-available# cat default[/font][/color]
<VirtualHost *:80>
ServerAdmin webmaster@localhost


DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>


ErrorLog ${APACHE_LOG_DIR}/error.log


# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn


CustomLog ${APACHE_LOG_DIR}/access.log combined


    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>


</VirtualHost>


[color=#000000][font=Times New Roman]

Kod: Zaznacz cały

root@debian:/etc/apache2/sites-available# ls -l -a /etc/apache2/mods-enabled[/font][/color]
razem 8
drwxr-xr-x 2 root root 4096 lut 25 23:17 .
drwxr-xr-x 7 root root 4096 lut 25 22:27 ..
lrwxrwxrwx 1 root root   28 lut 25 22:27 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root   28 lut 25 22:27 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root   33 lut 25 22:27 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root   33 lut 25 22:27 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root   36 lut 25 22:27 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root   38 lut 25 22:27 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root   33 lut 25 22:27 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root   33 lut 25 22:27 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root   32 lut 25 22:27 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root   32 lut 25 22:27 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root   26 lut 25 22:27 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root   30 lut 25 22:27 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root   30 lut 25 22:27 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root   26 lut 25 22:27 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root   26 lut 25 22:27 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root   26 lut 25 22:27 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root   27 lut 25 22:27 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root   27 lut 25 22:27 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root   34 lut 25 22:27 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root   34 lut 25 22:27 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root   27 lut 25 22:27 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root   27 lut 25 22:27 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root   33 lut 25 22:27 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root   33 lut 25 22:27 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root   30 lut 25 23:17 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root   31 lut 25 22:27 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root   31 lut 25 22:27 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root   29 lut 25 22:27 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root   29 lut 25 22:27 status.load -> ../mods-available/status.load
root@debian:/etc/apache2/sites-available# 


[color=#000000][font=Times New Roman]
[/font][/color]