作者libraghost (无脑热血控)
看板PHP
标题[请益] WIN7 PHP的config.php哪里寻
时间Sun Dec 2 12:34:42 2012
刚开始用Win7 就遇到下面问题
简单的说就是找不到 Win7 php环境下的"/config/config.php" 设定档
整个问题详述如下
我环境为:
Win 7
appserv-win32-2.5.10
使用phpMyAdmin正常
开启在 自订的 网页路径 会出现以下讯息
500 Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
上网查了一下解决方法应该是
http://yiyingloveart.blogspot.tw/2012/09/codeigniter500-internal-server-error.html
还有
http://stackoverflow.com/questions/6674689/codeigniter-500-internal-server-error
缩网址
http://ppt.cc/CH~q
其中後者那个里面 提到
create ".htaccess" on root directory
------------------
DirectoryIndex index.php
RewriteEngine On
RewriteCond $1 !^(index\.php|themes|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
------------------
是指在 httpd.conf 里面加入这段文字吗 因为我已经加入了
但还是有错误讯息
应该是下面的步骤没做
Make change on CodeIgniter config file
「/config/config.php」
change index.php to empty.
------------------
|--------------------------------------------------------------------------
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
-------------------
但是我一直找不到文中的 "/config/config.php" 在哪里
有朋友知道在哪里吗?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.40.84.16
1F:→ tyf99:Make change on CodeIgniter config file 12/02 20:53
2F:推 cychi:要你改CI的config.php档 看你已经改好了 12/02 23:42
3F:→ cychi:还有你有装modrewrite吗 要打开 把写有rewrite rule的 12/02 23:43
4F:→ cychi:.htaccess档放在网站的根目录 12/02 23:44
5F:推 cychi:CI的config档预设是在application/config/config.php 12/02 23:45
6F:→ cychi:要建立.htaccess请用编辑器开一个纯文字文件 把你中间那段 12/02 23:48
7F:→ cychi:rewrite的规则写入然後存成.htaccess 注意不要有附档名.txt 12/02 23:49