apache php zend 设置

apache 配置支持php的zend framework 需要进行以下设置

1、设置apache的  AllowOverride All 最好搜索AllowOverride都设置为All

2、设置.htaccess但是其中不要包含Order allow,deny


\httpd.conf


    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    #Deny from all
    Satisfy all
    Allow from all        

NameVirtualHost *:80

 ServerName *
 DocumentRoot "/htdocs"
 
  Options All FollowSymLinks IncludesNOEXEC Indexes
  DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
  AllowOverride All
  Order Deny,Allow
  Allow from all
  php_admin_value safe_mode On
 




\.htaccess

RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|php)$ index.php
php_flag magic_quotes_gpc off
php_flag register_globals off


你可能感兴趣的:(其它)