ZoneMinderはコントロールパネルの代わりにコードを表示します。

ZoneMinderはコントロールパネルの代わりにコードを表示します。

今日インストールしましたゾーンマネージャ(望むよりGitHubそしてホームページ)いくつかの指示に従ってください(見たい場合は教えてください)。しかし、ウェブサイトを開こうとすると、パネルは開かれません。代わりにいくつかのPHPコードを開きます。この問題を解決する方法を教えてください。

<?php
//
// ZoneMinder main web interface file, $Date$, $Revision$
// Copyright (C) 2001-2008 Philip Coombes 
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
//

error_reporting( E_ALL );

$debug = false; 
if ( $debug )

ベストアンサー1

php.iniを解釈するには、Webサーバー(Webサーバーからファイルをインポートしていますか?)が必要です。おそらくPHPがインストールされていないでしょう。

たとえば、WebサーバーがDebianファミリシステムでApacheを使用している場合は、libapache2-mod-phpパッケージをインストールする必要があります。 nginxを使用している場合は、fastcgiなどで設定する必要があります。

正確な手順は、オペレーティングシステム、ディストリビューション、Webサーバーによって異なります。

おすすめ記事