0

昨日、transip で VPS を購入し、CentOS と DirectAdmin をインストールし、そこでドメイン名も購入しました。シンプルな .html および .php ファイルを使用して Web サイトをテストしてみましたが、すべて正常に動作します。Zend をアップロードしましたが、Web サイトをロードすると、500 内部エラーが発生します。構造は次のようになります。

  • .htpasswd
  • 応用
  • ドキュメント
  • 図書館
  • public_ftp
  • public_html
  • テスト

これは私のindex.phpです:

<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library/Zend'),
    get_include_path(),
)));

/** Zend_Application */
require_once '/Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();

これは私の.htaccessです:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

誰かが私を助けてくれることを願っています。

4

0 に答える 0