2013-02-01 39 views
0

我有这个致命的错误,我的第一次尝试笨警告:致命错误部署笨时:无法打开核心/ Codeigniter.php

Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/htdocs/codeigniter/core/CodeIgniter.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\admin\index.php on line 202

什么会导致此?我不确定从哪里开始看。

+0

请发布什么是“C:\ xampp \ htdocs \ admin \ index.php 202行” – tomexsans

回答

0

您是否使用index.php作为您项目的默认索引页面?

如果不使用的.htaccess文件和文件夹/project/config还编辑的config.php文件

确保您所有的航线喜欢你的配置文件中声明正确:routes.php文件等等。

+0

感谢KAsh的回复。 BT u能澄清WOT使用.htaccess文件,我没有发现麻糍文件夹smthing喜欢的DAT ... –

+0

你必须在你的项目文件夹 外部添加这种文件包含像一些信息: 'RewriteEngine叙述在 #认沽你的安装目录在这里:# 如果你的URL是www.example.com/,使用/ #如果你的URL是www.example.com/site_folder/,使用/ site_folder/ RewriteBase/project_folder_name #不要启用重写存在的文件或目录 RewriteCond%{REQUEST_FILENAME}!-f RewriteCond%{REQUEST_FILENAME}!-d #For reue sts那不是实际的文件或目录, #rewrite to index.php/URL RewriteRule ^(。*)$ index.php/$ 1 [PT,L]' – KAsh

+0

:)谢谢... nw它的罚款.. –

0
RewriteEngine On 

# Put your installation directory here: 
# If your URL is www.example.com/, use/
# If your URL is www.example.com/site_folder/, use /site_folder/ 

RewriteBase /project_folder_name 

# Do not enable rewriting for files or directories that exist 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

# For reuests that are not actual files or directories, 
# Rewrite to index.php/URL 
RewriteRule ^(.*)$ index.php/$1 [PT,L] 

.htaccess看起来像这样。

1

在您的文件夹项目的终端变更许可:

sudo chmod -R 755 project_path/ 

我希望这会为你工作。

相关问题