配置選項:
1. php.ini文件的 ;extension=php_pdo_myssql.dll [去掉分號]
2. httpd.conf文件下開啟Apache的rewrite模塊 LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride None => AllowOverride ALL
3. 配置虛擬主機
# Virtural hosts啟動虛擬主機的配置
Include conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "E:/skydao/apache2/htdocs/zendTest/public"
ServerName zendTest.com
ServerAlias www.zendTest.com
DirectoryIndex index.php
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
在hosts文件中加dns
127.0.0.1 zendTest
127.0.0.1 www.zendTest.com
4. 重啟Apache