如何在Windows上的xampp中设置现有的yii项目

时间:2015-06-26 11:42:21

标签: php yii

我在服务器中运行yii框架项目成功运行。

但请告诉我它在Windows上如何设置xammp服务器(本地)。 以这种方式检查了我自己:

  1. 更改了php.exe文件路径本地服务器路径。
  2. 也改变了环境变量
  3. 像这样http://127.0.0.1/htmlhttp://localhost/html
  4. 运行

    但它总是说找不到对象 请建议程序。

1 个答案:

答案 0 :(得分:0)

检查您的.htaccess文件。默认文件内容:

RewriteEngine On
RewriteBase /connect_donors
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]