묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
한서버에 여러개의 홈페이지를 구동중
2016.07.29 19:43
한서버에 여러개의 홈페이지를 구동중에 있습니다
근데 서버이전 작업을 하였는데
5개중 3개는 정상작동이 되는데 2개는 index.php 내용이 뜨네요
<?php /** * @file index.php * @author NHN (developers@xpressengine.com) * @brief Start page * * Find and create module object by mif, act in Request Argument \n * Set module information * * @mainpage XpressEngine * @section intro introduction * XE is an opensource and being developed in the opensource project. \N * For more information, please see the link below. * - Official website: http://www.xpressengine.com(korean), http://www.xpressengine.org(english) * - SVN Repository: http://xe-core.googlecode.com/svn/ * \n * "XpressEngine (XE)" is free software; you can redistribute it and/or \n * modify it under the terms of the GNU Lesser General Public \n * License as published by the Free Software Foundation; either \n * version 2.1 of the License, or (at your option) any later version. \n * \n * This library 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 * Lesser General Public License for more details. * \n * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * **/ /** * @brief Declare constants for generic use and for checking to avoid a direct call from the Web **/ define('__XE__', TRUE); define('__ZBXE__', TRUE); // deprecated : __ZBXE__ will be removed. Use __XE__ instead. /** * @brief Include the necessary configuration files **/ require dirname(__FILE__) . '/config/config.inc.php'; /** * @brief Initialize by creating Context object * Set all Request Argument/Environment variables **/ $oContext = &Context::getInstance(); $oContext->init(); /** * @brief If default_url is set and it is different from the current url, attempt to redirect for SSO authentication and then process the module **/ if($oContext->checkSSO()) { $oModuleHandler = new ModuleHandler(); if($oModuleHandler->init()) { $oModule = &$oModuleHandler->procModule(); // var_dump($oModule); // exit; $oModuleHandler->displayContent($oModule); } } $oContext->close(); /* End of file index.php */ /* Location: ./index.php */
뭐가 잘못된걸까요
댓글 3
-
SimpleCode
2016.07.29 19:57
-
녹차닢
2016.07.29 20:13
현재 아파치로 운영중인데
site-enabled 에서 DocumentRoot /home/sample/public_html/
현재 이렇게 설정해놓았는데 무슨문제일까요 저 public_html안에
/home/sample/public_html$ ls
LICENSE common files m.layouts addons config index.php modules widgets
admin content1.jpg layouts phpDoc widgetstyles classes content2.jpg libs themes파일들이 이렇게있는데
-
기진곰
2016.07.30 02:17
되는 3개와 안되는 2개의 아파치 설정 부분을 나란히 놓고 비교해 보세요.
차이가 있다면 그 부분이 문제겠지요.
PHP를 PHP로 인식하지 못하는 경우입니다.
아파치인지 엔진엑스인지 모르겠으나, VirtualHost로 사이트를 나누면서 지정된 폴더 내에서만 PHP가 실행되게 해서 그런 듯 합니다. 서버 설정을 점검해보시기 바랍니다.