2011-01-22 13 views
1

私はCodeigniter 1.7.2をWampで開発しました。今私はIIS 7でホストしようとしています(yes IIS!私に提供されているコントロールパネルにはIISしかないので)エラーが出ています。これは私が得るものです: -コードイグナイタの展開IIS 7での1.7.2アプリケーション

Warning: require(system/codeigniter/Common.php) [function.require]: failed to open stream: No such file or directory in c:\abc\wwwroot\system\codeigniter\CodeIgniter.php on line 38 

Warning: require(system/codeigniter/Common.php) [function.require]: failed to open stream: No such file or directory in c:\abc\wwwroot\system\codeigniter\CodeIgniter.php on line 38 

Fatal error: require() [function.require]: Failed opening required 'system/codeigniter/Common.php' (include_path='C:\Program Files (x86)\PHP\pear;./;./includes;./pear') in c:\abc\wwwroot\system\codeigniter\CodeIgniter.php on line 38 

言うまでもなく、私はそれが与えているものにエラー全く混乱していますと言って、私はそれを解決するために何をすべき。

私を助けてください。私はすでにそれをgoogled、それはいくつかのhtaccessの問題があることがわかった。これは私のhtaccessファイルです: -

Options +FollowSymLinks 
IndexIgnore */* 

<ifmodule mod_rewrite.c> 
RewriteEngine on 

    # if a directory or a file exists, use it directly 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 

    # otherwise forward it to index.php 
    RewriteRule ^(.*)$ index.php/$1 [L] 

</ifmodule> 

私はそれを変換し、web.configファイルに何を書くのか分かりません。どんな助けもありがとう。私はwebsitepanelをウェブサイトの展開に使用しています。事前に

感謝:)

+0

「/」ではなく「\」の使い方と同じように見えますが、やはり私はIISの人ではないので、私は実際には分かりません。 – jondavidjohn

+0

'c:\ abc \ wwwroot \ system \ codeigniter \ CodeIgniter.phpの38行目のファイルやディレクトリはありません。正しいディレクトリのすべてのファイルですか? – Ross

+0

@ロス: - そうです。そのようなファイルやディレクトリは間違ったメッセージです。私は単純に自分のフォルダ構造をサーバにコピーして、Common.phpとCodeIgniter.phpがサーバ上に存在することを二重チェックしました。 – TCM

答えて

2

多分これはそれですか? Webrootのindex.phpに以下のコードがあります。あなたは完全なサーバーパスを指定したのでしょうか? Webルートからだけでなく、index.phpファイルの* $ system_folder *および* $ application_folder *変数のドメインフォルダからフルサーバーパスを使用していることを確認してください。これが役に立ったら/

/* 
|--------------------------------------------------------------- 
| SET THE SERVER PATH 
|--------------------------------------------------------------- 
| 
| Let's attempt to determine the full-server path to the "system" 
| folder in order to reduce the possibility of path problems. 
| Note: We only attempt this if the user hasn't specified a 
| full server path. 
| 
*/ 
if (strpos($system_folder, '/') === FALSE) 
{ 
    if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE) 
    { 
     $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder; 
    } 
} 
else 
{ 
    // Swap directory separators to Unix style for consistency 
    $system_folder = str_replace("\\", "/", $system_folder); 
} 
+0

優れています。あなたがそれを知っていたか/推測したかわからない!私はあなたに私のポイントの半分を与えることができたらいいと思う。 – TCM

+0

ハハ。私はcodeigniterを使って新しいサイトを開始しています。私はちょうどあなたが尋ねたときのあなたの時点にあった。 – dgig

関連する問題