Q&A

라이믹스 홈디렉터리 연결시 자꾸 다운되는데 뭔지 아시는분 계신가요

2021.05.06 05:18
1,084
0
CMS/프레임워크 Rhymix 2.0
개발 언어 PHP 7.4

nginx 쓰는데, A레코드 추가해서 사이트 하나 더만들고 있는데 자꾸 다운로드 되면서 연결이 안됩니다.

 

conf 추가후 홈디렉터리까지 연결했는데 뭐가 다운됩니다.

 

권한문제도 아닌것같은데 다운되는 내용은 아래 내용입니다.

 

<?php
/**
 * -----------------------------------------------------------------------------
 * 
 *        R H Y M I X  :  C O N T E N T  M A N A G E M E N T  S Y S T E M
 * 
 *                            https://www.rhymix.org
 * 
 * -----------------------------------------------------------------------------
 * 
 *  Copyright (c) Rhymix Developers and Contributors <devops@rhymix.org>
 *  Copyright (c) NAVER <http://www.navercorp.com>
 * 
 *  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, see <http://www.gnu.org/licenses/>.
 * 
 * -----------------------------------------------------------------------------
 * 
 *  Rhymix is a derivative work of XpressEngine (XE) version 1.x.
 *  The license has been changed from LGPL v2.1 to GPL v2 in accordance with
 *  section 3 of LGPL v2.1. This change is irreversible and applies to all of
 *  Rhymix, including parts that were copied verbatim from XpressEngine.
 * 
 * -----------------------------------------------------------------------------
 */

/**
 * Include the autoloader.
 */
require dirname(__FILE__) . '/common/autoload.php';

/**
 * @brief Initialize by creating Context object
 * Set all Request Argument/Environment variables
 **/
Context::init();

/**
 * @brief Initialize and execute Module Handler
 **/
$oModuleHandler = new ModuleHandler();
$oModuleHandler->init() && $oModuleHandler->displayContent($oModuleHandler->procModule());

Context::close();

/* End of file index.php */
/* Location: ./index.php */
 

 

 

URL: stock.24post.co.kr 접속시 다운로드됩니다. 

댓글 4

  • 2021.05.06 05:28 #1566806

    nginx 에서 php-fpm 등 설정을 안하신거 같네요^^

    nginx.conf 나 버츄얼 호스트 설정 파일을 보여주세요.

  • 2021.05.06 05:37 #1566811

    dd.PNG

     

    conf 내용입니다.!

  • 2021.05.06 12:08 #1566861
    아래 람보님이 알려주신 링크에서 보듯이
    # location 구문을 사용하는 다른 설정은 반드시 라이믹스 rewrite 규칙보다 나중에 선언해야 합니다.
    location ~ \.php$ {
    fastcgi_pass unix:/run/php/php7.4-fpm.sock; # PHP-FPM을 유닉스 소켓으로 연동하는 경우
    fastcgi_pass 127.0.0.1:9000; # PHP-FPM을 로컬 포트로 연동하는 경우
    include snippets/fastcgi-php.conf;
    }
    이러한 .php 확장자에 대한 연동 설정이 필요합니다.
    nginx + php-fpm 등으로 검색하셔서 참고하세요!!
  • 2021.05.06 05:49 #1566816

    php가 연결이 안된것 같습니다.

    해당 PHP부터 nginx 연동세팅 먼저 해주세요.

    단순 코드로는 답변드리기 어렵고, php-fpm관련 연동 설정을 구글에서 검색하여 처리하시면 될 것 같아요.

     

    https://github.com/rhymix/rhymix-docs/blob/master/ko/introduction/nginx.md